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

  1. allow access http:// localhost:8080/login user
  2. user pass username , password in body
  3. authenticate user database entry
  4. create access token , send response
  5. using access token user interact secure api.

i provide source code if need.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -