Coder Social home page Coder Social logo

security-with-springboot's Introduction

security-with-springboot

Spring Boot server with secure user auth(jwt) using H2 Database

To setup and run this project, please follow these instrustions:

Step1

clone the repository

Step1

Follow editor procedures to install Maven Dependencies included in pom.xml

Step1

use this command to run the server on port 8080

./mvnw spring-boot:run

Step4

Go to this url and set confirm the User Model in the H2 Database

http://localhost:8080/h2-ui

And you are all set

API Endpoints:

1. /api/auth/signup
2. /api/auth/signin
3. /api/auth/signout
4. /api/hello

Description:

Implements a REST API that includes endpoints for user login and signup functionality.
The login endpoint verifies user credentials and generate a web token upon successful authentication.
The signup endpoint allows users to create new accounts and store their information securely in the H2 database.
There is a hello endpoint which works only post the Auth and returns “Hello from Tanmay”

Security and Web Tokens:

Implements appropriate security measures to protect user data and prevent unauthorized access.
Uses web tokens (JWT - JSON Web Tokens) for user authentication and authorization.
Ensures that only authenticated users can access protected resources.

Database:

Utilizes the H2 database for storing user account information.

security-with-springboot's People

Contributors

tanmay4u02 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.