java.lang.Object
edu.internet2.middleware.grouper.authentication.GrouperOidc

public class GrouperOidc extends Object
  • Constructor Details

    • GrouperOidc

      public GrouperOidc()
  • Method Details

    • externalSystemConfigIdForUi

      public static String externalSystemConfigIdForUi()
    • main

      public static void main(String[] args)
    • assignBearerTokenHeader

      public GrouperOidc assignBearerTokenHeader(String theBearerTokenHeader)
      string like: Bearer jwtTrusted_configId_abc123def456
      Parameters:
      theBearerTokenHeader -
      Returns:
      this for chaining
    • getGrouperOidcResult

      public GrouperOidcResult getGrouperOidcResult()
      result of decoding jwt
      Returns:
      result
    • getGrouperOidcConfig

      public GrouperOidcConfig getGrouperOidcConfig()
    • getAccessToken

      public String getAccessToken()
      access token from code
      Returns:
    • setAccessToken

      public void setAccessToken(String accessToken)
      access token from code
      Parameters:
      accessToken -
    • decodeAccessToken

      public void decodeAccessToken()
      get an access token, unwrap it and get the attributes from the access token e.g. sub -> mchyzer, name -> Hyzer, Chris, employee_number -> 10021368, given_name -> Chris, family_name -> Hyzer, email -> mchyzer@upenn.edu, username -> mchyzer@upenn.edu
    • retrieveAccessToken

      public void retrieveAccessToken()
      get an access token from the code, assign to field in this object
    • retrieveIdToken

      public void retrieveIdToken()
      get an id token from the code, assign to field in this object
    • retrieveAndParseTokens

      public void retrieveAndParseTokens()
    • decode

      public Subject decode()
      Returns:
      the subject
    • assignExternalSystemConfigId

      public GrouperOidc assignExternalSystemConfigId(String clientConfigId)
    • generateLoginUrl

      public String generateLoginUrl()
      Deprecated.
    • generateLoginUrl

      public String generateLoginUrl(javax.servlet.http.HttpServletRequest httpServletRequest)
    • retrieveResponseType

      public String retrieveResponseType()
    • findSubjectClaim

      public String findSubjectClaim()
    • getClaimSourceAttributes

      public Map<String,String> getClaimSourceAttributes()
    • findSubject

      public Subject findSubject()
    • assignAuthorizationCode

      public GrouperOidc assignAuthorizationCode(String authorizationCode)
    • assignWs

      public GrouperOidc assignWs(boolean isWs)
    • assignExpectedNonce

      public GrouperOidc assignExpectedNonce(com.nimbusds.openid.connect.sdk.Nonce expectedNonce)