Skip to content

Commit

Permalink
Add default method to get access token type
Browse files Browse the repository at this point in the history
  • Loading branch information
KD23243 committed Nov 20, 2024
1 parent 7802558 commit 9196f79
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ public JWTTokenIssuer() throws IdentityOAuth2Exception {
signatureAlgorithm = mapSignatureAlgorithm(config.getSignatureAlgorithm());
}

@Override
public String getAccessTokenType() {

return "JWT";
}

/**
* {@inheritDoc}
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,13 @@ default boolean usePersistedAccessTokenAlias() {
default String issueSubjectToken(OAuthAuthzReqMessageContext oauthAuthzMsgCtx) throws IdentityOAuth2Exception {
return StringUtils.EMPTY;
}

/**
* Default method to retrieve the access token type
*
* @return The type of the token (e.g., "JWT" or "Opaque").
*/
default String getAccessTokenType() {
return "Opaque";
}
}

0 comments on commit 9196f79

Please sign in to comment.