ibuetler / docker-keycloak-traefik-workshop

Docker with Keycloak and Traefik Workshop
243 stars 43 forks source link

unable to verify the id token using Keycloak 9.0.2 (with solution) #11

Closed andersonDadario closed 4 years ago

andersonDadario commented 4 years ago

The error

unable to verify the id token   {"error": "oidc: JWT claims invalid: invalid claims, 'aud' claim and 'client_id' do not match, aud=account, client_id=webapp"}

The solution:

Use Client --> Mapper --> Create Protocol Mapper instead of Client Scope.

Ref: https://stackoverflow.com/questions/53550321/keycloak-gatekeeper-aud-claim-and-client-id-do-not-match/53627747#53627747