SAML 2.0 Addon Error

Problem statement

When I try to Debug the Keycloak Application SAML 2.0 Addon, I get the following error:

access_denied: Cannot read property ‘endsWith’ of undefined

Solution

Steps that can be taken to identify and verify the problem, including links to internal resources.

It seems the issue can be coming from rules that handle adding roles to access tokens and ID tokens. Try switching it off and checking if that’s the case. Adding null check to the rule can also help! Thank you!