November 2017
Intermediate to advanced
542 pages
14h 24m
English
Now that we have enabled our @EnableOAuth2Client annotation and set up a ResourceOwnerPasswordResourceDetails object, we need to configure the properties used to connect to the resource server and authentication server:
//src/main/resources/application.yml oauth: url: ${OAUTH_URL:http://localhost:8080} token: uri: ${OAUTH_URL:http://localhost:8080}/oauth/token resource: id: microservice-test # Client BASIC Authentication for Authentication Server client: id: ${OAUTH_CLIENT_ID:oauthClient1} secret: ${OAUTH_CLIENT_SECRET:oauthClient1Password} # Resource Password Credentials user: id: ${OAUTH_USER_ID:user1@example.com} password: ${OAUTH_USER_PASSWORD:user1}
We now have the pieces in place and can start making ...
Read now
Unlock full access