Skip to content

Lab#37 Authorization Code grant type flow

Step#1 Create a new client in KeyCloak

Keycloak New Client

Figure 1. Keycloak New Client

Create Client 2 Capability Config

Figure 2. Create Client 2 Capability Config

Create Client 3 Login Settings

Figure 3. Create Client 3 Login Settings

Credentials

Figure 4. Credentials

Users

Figure 5. Users

Create User

Figure 6. Create User

Details

Figure 7. Details

Credentials

Figure 8. Credentials.png

Set Password

Figure 9. Set Password

Users

Figure 10. Users

Configure New Token

Figure 11. Configure New Token

Configure New Token

Figure 12. Configure New Token

Close KeyCloak browser session or change your default browser to bing temporarily if you have issues.

Get New Access Token

Figure 13. Get New Access Token

Generate a new access token in Postman. You will be re-directed to KeyCloak to login. Enter the login details for the user that you created (not your Keycloak login).

Keycloak Login

Figure 14. Keycloak Login

You will be re-directed back to Postman

Postman Re-direct

Figure 15. Postman Re-direct

Get New Access Token

Figure 16. Get New Access Token

Use Token

Figure 17. Use Token

POST

Create New Account

Figure 18. Create New Account

Status 201

Figure 19. Status 201 Account Created Successfully