Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

javaforest/SpringWebflux-SecurityWithJWT-PostgressDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

7 Commits

Repository files navigation

SpringWebflux-SecurityWithJWT-PostgressDB

Spring webflux security application with JWT and R2DBC Postgress

To run the project

spring.r2dbc.url=r2dbc:postgresql://localhost/javaforest
spring.r2dbc.username=postgres
spring.r2dbc.password=12345

Change this credentials according your local

Testing the functionality

Code will insert 1 data when start Email : abc.test@abc.com password : 12345

cURL : curl -v -X POST http://localhost:8080/login -H "Content-Type: application/json; charset=UTF-8" -d "{"username" :"abc.test@abc.com","password" :"12345"}"
After geting the token check this endpoint for secure data
cURL : curl -v -X GET http://localhost:8080/resource/user -H "Authorization: Bearer {token}"

Signup new user

cURL : curl -v -X POST http://localhost:8080/signup -H "Content-Type: application/json; charset=UTF-8" -d "{"email" : "mahade@gmail.com","password" : "12345","firstName" : "mahade","lastName" :"hassan","roles" : ["ROLE_USER"],"address": "Bheramara", "enabled": true}"

About

Spring webflux security application with JWT and R2DBC Postgress

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

AltStyle によって変換されたページ (->オリジナル) /