Obtaining an access token

To get an access token, we call the authorization server (http://localhost:8080/oauth/token), providing the client authentication details in the basic authentication mode and the user credentials as part of the form data. The following screenshot shows how we can configure the client authentication details in basic authentication:

The following screenshot shows how to configure the user authentication details as part of the POST parameters:

We are using grant_type ;as the password, indicating that we are sending the ...

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.