This project is the basic Oauth2 authentication server implementation.
./gradlew clean bootrun
Send HTTP request to get "access_token"
- In order to get Authorization header, set
Basic Auth: username: crown, password: thisissecret
curl --location --request POST 'http://localhost:8080/auth/oauth/token' \
--header 'Authorization: Basic Y3Jvd246dGhpc2lzc2VjcmV0' \
--header 'Content-Type: multipart/form-data; boundary=--------------------------101092311882977839110112' \
--form 'grant_type=password' \
--form 'scope=webclient' \
--form 'username=john.carnell' \
--form 'password=password'
For further reference, please consider the following sections:
These additional references should also help you: