Spring Security to Validate login RestAPI -
i know question asked many times did not answer required.
i want link can me create spring security framework, in donot whant login form validation.
it should done login restapi. hit url like-
http://localhost:8080/login
post request containing username , password , return json response sucess or failure status
if sucess able hit secure api requests.
i using spring , spring security since 1 , half year spring security develop rest api use below technique user authentication follow below steps
- allow access http:// localhost:8080/login user
- user pass username , password in body
- authenticate user database entry
- create access token , send response
- using access token user interact secure api.
i provide source code if need.
Comments
Post a Comment