Factory interface for creating OAuth2 based io.vertx.ext.auth.AuthProvider instances.
AnythingObjectOAuth2AuthBasicIdentifiableObjectAnythingno subtypes hierarchy
| Initializer |
OAuth2Auth(OAuth2Auth unknown) |
| Inherited Attributes |
Attributes inherited from: Objecthash, string |
| Methods | |
authorizeURL | shared default String authorizeURL(Object params)Generate a redirect URL to the authN/Z backend. It only applies to auth_code flow. |
decodeToken | shared default OAuth2Auth decodeToken(String token, Anything(Throwable|AccessToken) handler)Decode a token to a AccessToken object. This is useful to handle bearer JWT tokens. Parameters:
|
getFlowType | shared default String getFlowType()Returns the configured flow type for the Oauth2 provider. |
getScopeSeparator | shared default String getScopeSeparator()Returns the scope separator. The RFC 6749 states that a scope is expressed as a set of case-sensitive and space-delimited strings, however vendors tend not to agree on this and we see the following cases being used: space, plus sign, comma. |
getToken | shared default void getToken(Object params, Anything(Throwable|AccessToken) handler)Returns the Access Token object. Parameters:
|
hasJWTToken | shared default Boolean hasJWTToken()Returns true if this provider supports JWT tokens as the access_token. This is typically true if the provider
implements the This information is important to validate grants. Since pure OAuth2 should be used for authorization and when a token is requested all grants should be declared, in case of openid-connect this is not true. OpenId will issue a token and all grants will be encoded on the token itself so the requester does not need to list the required grants. |
introspectToken | shared default OAuth2Auth introspectToken(String token, Anything(Throwable|AccessToken) handler)Query an OAuth 2.0 authorization server to determine the active state of an OAuth 2.0 token and to determine meta-information about this token. Parameters:
|
introspectToken | shared default OAuth2Auth introspectToken(String token, String tokenType, Anything(Throwable|AccessToken) handler)Query an OAuth 2.0 authorization server to determine the active state of an OAuth 2.0 token and to determine meta-information about this token. Parameters:
|
loadJWK | shared default OAuth2Auth loadJWK(Anything(Throwable?) handler)Loads a JWK Set from the remote provider. When calling this method several times, the loaded JWKs are updated in the underlying JWT object. |
verifyIsUsingPassword | shared default void verifyIsUsingPassword() |
| Inherited Methods |
Methods inherited from: Objectequals |