Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-9357

Upgrading to 13.x does not populate Subject Type in OAuth2Client config, causing an NPE

    Details

    • Sprint:
      AM Sustaining Sprint 27, AM Sustaining Sprint 28, AM Sustaining Sprint 29
    • Support Ticket IDs:

      Description

      Create a working OAuth2Client profile in a pre-13 OpenAM.
      Upgrade to 13.
      Notice that the new 'Subject Type' option which has 2 possible values Public and Pairwise is not populated.
      One of the 2 radio buttons MUST be selected in normal circumstances. The default value is Public.

      Stacktrace from oauth2/userinfo:

      Caused by: java.lang.NullPointerException
              at org.forgerock.openam.oauth2.OpenAMClientRegistration.getSubjectType(OpenAMClientRegistration.java:602)
              at org.forgerock.openam.oauth2.OpenAMClientRegistration.getSubValue(OpenAMClientRegistration.java:749)
              at org.forgerock.openam.oauth2.OpenAMScopeValidator.getUserInfo(OpenAMScopeValidator.java:218)
              at org.forgerock.openam.oauth2.OpenAMOAuth2ProviderSettings.getUserInfo(OpenAMOAuth2ProviderSettings.java:446)
              at org.forgerock.openidconnect.UserInfoServiceImpl.getUserInfo(UserInfoServiceImpl.java:91)
              at org.forgerock.openidconnect.restlet.UserInfo.getUserInfo(UserInfo.java:76)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
      

        Attachments

          Activity

            People

            • Assignee:
              sachiko Sachiko Wallace
              Reporter:
              joe.starling Joe Starling
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: