Skip to content
Ameen Abozaid
Planned lessonJNR-039-L07

Demo: Keycloak setup and the authorization code + PKCE flow

  • Lesson 7 of 8
  • Junior
On This Lesson 3 topics

This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.

In this lesson

run Keycloak and get tokens with the code flow. Prepares JNR-039-LAB1.

Draft outline details

Step by step

  1. Start Keycloak locally with Docker; verify image and version before recording.
  2. Create a realm shop, a client with PKCE enabled, realm roles customer and admin, and two users.
  3. In Postman, use the OAuth 2.0 authorization code with PKCE option and log in.
  4. Decode the access token and find iss, aud, and the roles.
  5. Planned mistake: a wrong redirect URI in the client setup gives an "invalid redirect" error. Fix: register the exact URI.
  6. Compare the access token with the ID token.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Continue to next lesson

Type to search levels, phases, modules and lessons.