Class GrouperOidc
java.lang.Object
edu.internet2.middleware.grouper.authentication.GrouperOidc
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassignAuthorizationCode
(String authorizationCode) assignBearerTokenHeader
(String theBearerTokenHeader) string like: Bearer jwtTrusted_configId_abc123def456assignExpectedNonce
(com.nimbusds.openid.connect.sdk.Nonce expectedNonce) assignExternalSystemConfigId
(String clientConfigId) assignWs
(boolean isWs) decode()
void
get an access token, unwrap it and get the attributes from the access token e.g.static String
Deprecated.generateLoginUrl
(javax.servlet.http.HttpServletRequest httpServletRequest) access token from coderesult of decoding jwtstatic void
void
get an access token from the code, assign to field in this objectvoid
void
get an id token from the code, assign to field in this objectvoid
setAccessToken
(String accessToken) access token from code
-
Constructor Details
-
GrouperOidc
public GrouperOidc()
-
-
Method Details
-
externalSystemConfigIdForUi
-
main
-
assignBearerTokenHeader
string like: Bearer jwtTrusted_configId_abc123def456- Parameters:
theBearerTokenHeader
-- Returns:
- this for chaining
-
getGrouperOidcResult
result of decoding jwt- Returns:
- result
-
getGrouperOidcConfig
-
getAccessToken
access token from code- Returns:
-
setAccessToken
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
- Returns:
- the subject
-
assignExternalSystemConfigId
-
generateLoginUrl
Deprecated. -
generateLoginUrl
-
retrieveResponseType
-
findSubjectClaim
-
getClaimSourceAttributes
-
findSubject
-
assignAuthorizationCode
-
assignWs
-
assignExpectedNonce
-