Spring webflux security application with JWT and R2DBC Postgress
spring.r2dbc.url=r2dbc:postgresql:https://localhost/javaforest
spring.r2dbc.username=postgres
spring.r2dbc.password=12345
Change this credentials according your local
Code will insert 1 data when start Email : [email protected] password : 12345
cURL : curl -v -X POST https://localhost:8080/login -H "Content-Type: application/json; charset=UTF-8" -d "{"username" :"[email protected]","password" :"12345"}"
After geting the token check this endpoint for secure data
cURL : curl -v -X GET https://localhost:8080/resource/user -H "Authorization: Bearer {token}"
cURL : curl -v -X POST https://localhost:8080/signup -H "Content-Type: application/json; charset=UTF-8" -d "{"email" : "[email protected]","password" : "12345","firstName" : "mahade","lastName" :"hassan","roles" : ["ROLE_USER"],"address": "Bheramara", "enabled": true}"