Skip to content

Explore this Java Spring Boot REST API repo on GitHub! This comprehensive project utilizes MySQL to handle user sign-up, login, authorization, and authentication seamlessly. With Role-Based Access Control (RBAC) implementation, it ensures secure user management through the database.

Notifications You must be signed in to change notification settings

pratikshakh01/Login-Signup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Use postman API to test the application as explained below:
To signup a new user use POST request with api/auth/signup and pass required information as raw JSON in the request body.The role can be admin, mod(moderator), or user which will determine the access to the info.
image

You can access the public content directly as shown:
image

To Login as a existing user use POST method with username and password values as raw JSON data in the request body with api/auth/signin as shown. You will recieve response as the user details with the role assigned to it.
image
You can also check for cookies.
image

Once logged in you can access resource of the particular role using api/test/[role].
image

You can Logout of using the POST method with api/auth/signout.
image

You can change the database connection properties and values in application.properties file.

About

Explore this Java Spring Boot REST API repo on GitHub! This comprehensive project utilizes MySQL to handle user sign-up, login, authorization, and authentication seamlessly. With Role-Based Access Control (RBAC) implementation, it ensures secure user management through the database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages