SAML 2.0 Addon Error

Overview

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

log_id: 90020221213165243469000000000000000007008473793299480576

 

Symptoms

The customer receives an error when clicking debug for the SAML 2.0 addon.

endsWith-Error (2).PNG 

Steps to reproduce

1. Click on "Keycloak" Auth0 Application
2. Click on Addons
3. Click on SAML 2.0 (not disable, click on the text)
4. Scroll down and click Debug.
5. New page opens with error.

Applies To

  • SAML Addon
  • access_denied 

Cause

The issue is coming from the rule “Adding Roles to Access Token and ID Token” specifically line 19 

user.issuer.endsWith(endsWith)

Solution

1- disable the rule and test 
2- add a null check to line 19

Recommended content

No recommended content found...