Skip to content

Build JWT based Authentication & Authorization example using Spring Boot, Spring Security, Spring Data Mongo.

Notifications You must be signed in to change notification settings

subha81788/my-secured-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my-secured-app

To start docker mongo and load data

docker run -d --rm --name mongo-docker -p 27017:27017 mongo

To test using Postman

http://localhost:8080/api/auth/signup

Method: POST
Content-Type: Application/json

Payload
{ "username": "subha81788", "email": "subha81788@gmail.com", "password": "topsecret12345", "roles": ["user","moderator","admin"] }

http://localhost:8080/api/auth/signup

Method: POST
Content-Type: Application/json

Payload
{ "username": "juhi92", "email": "sanjukta92nbdp@gmail.com", "password": "pa$$word@123", "roles": ["user","moderator"] }

http://localhost:8080/api/auth/signup

Method: POST
Content-Type: Application/json

Payload
{ "username": "sarmi83", "email": "sarmi83@gmail.com", "password": "saltlakeboater", "roles": ["user"] }

http://localhost:8080/api/auth/signup

Method: POST
Content-Type: Application/json

Payload
{ "username": "subhnath", "email": "subhashis.a.nath@capgemini.com", "password": "ilovecoding", "roles": ["user"] }

About

Build JWT based Authentication & Authorization example using Spring Boot, Spring Security, Spring Data Mongo.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages