waqasdilawar / authorizationserver_latest

Spring Boot with OAuth2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

To obtain JWT

curl --location --request POST 'http://localhost:8085/oauth/token' \ --header 'Authorization: Basic Y2xpZW50OnNlY3JldA==' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'grant_type=password' \ --data-urlencode 'username=admin@TEST01.com' \ --data-urlencode 'password=password'

To obtain JWT using RefreshToken

curl --location --request POST 'http://localhost:8085/oauth/token?grant_type=refresh_token&refresh_token=$REPLACE_WITH_REFRESH_TOKEN' \ --header 'Authorization: Basic Y2xpZW50OnNlY3JldA=='

About

Spring Boot with OAuth2


Languages

Language:Java 100.0%