AccessToken extension to the User interface
AnythingObjectBasic ...and other supertypesUserAccessTokenUserBasicIdentifiableObjectAnythingno subtypes hierarchy
| Initializer |
AccessToken(AccessToken unknown) |
| Inherited Attributes |
Attributes inherited from: Objecthash, string |
| Methods | |
accessToken | shared default Object accessToken()The Access Token if present parsed as a JsonObject |
expired | shared default Boolean expired()Check if the access token is expired or not. |
fetch | shared default AccessToken fetch(String resource, Anything(Throwable|OAuth2Response) callback)Fetches a JSON resource using this Access Token. Parameters:
|
fetch | shared default AccessToken fetch(HttpMethod method, String resource, Object headers, Buffer payload, Anything(Throwable|OAuth2Response) callback)Fetches a JSON resource using this Access Token. Parameters:
|
idToken | shared default Object idToken()The Id Token if present parsed as a JsonObject |
introspect | shared default AccessToken introspect(Anything(Throwable?) callback)Introspect access token. This is an OAuth2 extension that allow to verify if an access token is still valid. Parameters:
|
introspect | shared default AccessToken introspect(String tokenType, Anything(Throwable?) callback)Introspect access token. This is an OAuth2 extension that allow to verify if an access token is still valid. Parameters:
|
logout | shared default AccessToken logout(Anything(Throwable?) callback)Revoke refresh token and calls the logout endpoint. This is a openid-connect extension and might not be available on all providers. Parameters:
|
opaqueAccessToken | shared default String opaqueAccessToken() |
opaqueIdToken | shared default String opaqueIdToken() |
opaqueRefreshToken | shared default String opaqueRefreshToken() |
refresh | shared default AccessToken refresh(Anything(Throwable?) callback)Refresh the access token Parameters:
|
refreshToken | shared default Object refreshToken()The Refresh Token if present parsed as a JsonObject |
revoke | shared default AccessToken revoke(String token_type, Anything(Throwable?) callback)Revoke access or refresh token Parameters:
|
setTrustJWT | shared default AccessToken setTrustJWT(Boolean trust) |
tokenType | shared default String tokenType() |
userInfo | shared default AccessToken userInfo(Anything(Throwable|Object) callback)Load the user info as per OIDC spec. Parameters:
|
| Inherited Methods |
Methods inherited from: Objectequals |
Methods inherited from: UserclearCache, isAuthorised, isAuthorized, principal, setAuthProvider |