Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-8901

Identity Provider : UserInfo response as JWT Token not supported

    Details

    • Sprint:
      Keycloak Sprint 15
    • Story Points:
      1
    • Steps to Reproduce:
      • Use an identity provider that sends JWT Token for UserInfo Request
      • Log in using this identity provider
      • The error is displayed on the callback
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      If the identity provider userinfo endpoint returns a JWT Token an error is raised by KeyCloak with the following stacktrace.

      _Caused by: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'xxxxxxxxx': was expecting ('true', 'false' or 'null')
      at [Source: (String)"xxxxxxxxx.yyyyyy.zzzzz"; line: 1, column: 37]
      at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1804)
      at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:673)
      at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._reportInvalidToken(ReaderBasedJsonParser.java:2835)
      at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue(ReaderBasedJsonParser.java:1889)
      at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:747)
      at com.fasterxml.jackson.databind.ObjectMapper._readTreeAndClose(ObjectMapper.java:4030)
      at com.fasterxml.jackson.databind.ObjectMapper.readTree(ObjectMapper.java:2539)
      at org.keycloak.broker.provider.util.SimpleHttp$Response.asJson(SimpleHttp.java:289)
      at org.keycloak.broker.oidc.OIDCIdentityProvider.extractIdentity(OIDCIdentityProvider.java:394)
      at org.keycloak.broker.oidc.OIDCIdentityProvider.getFederatedIdentity(OIDCIdentityProvider.java:351)_

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pcraveiro Pedro Igor Silva
                  Reporter:
                  sgremion S├ębastien Gremion
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: