New utility method to access the `access-token` string
This commit is contained in:
parent
b54c49527c
commit
00dc6538a9
|
@ -18,6 +18,10 @@ public class JWTTokenUtil {
|
|||
return token.getRaw();
|
||||
}
|
||||
|
||||
public static String getAccessTokenString(JWTToken token) {
|
||||
return token.getAccessTokenString();
|
||||
}
|
||||
|
||||
public static JWTToken getOIDCFromRequest(HttpServletRequest request) {
|
||||
return JWTToken.fromString((String) request.getAttribute(OIDC_TOKEN_ATTRIBUTE));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue