Skip to content

sachinsac/spring-oauth-security

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

spring-oauth-security

To get Token call -

Post call - http://localhost:8081/oauth/token

Header - Authorization : Basic {value} - value is basic encoding of clientId:Secret. ex: dGVzdENsaWVudDpzZWNyZXQ= for testClient:secret

Body - Form-urlencoded grant_type - client_credentials

Use access_token to make request to secured resources. Pass the access_token in header as Authorization Bearer type