open class OAuth2Auth
Factory interface for creating OAuth2 based io.vertx.rxjava.ext.auth.AuthProvider instances. NOTE: This class has been automatically generated from the io.vertx.ext.auth.oauth2.OAuth2Auth non RX-ified interface using Vert.x codegen.
OAuth2Auth(delegate: OAuth2Auth) |
static val __TYPE_ARG: TypeArg<OAuth2Auth> |
open fun authorizeURL(params: JsonObject): String
Generate a redirect URL to the authN/Z backend. It only applies to auth_code flow. |
|
open static fun create(vertx: Vertx, flow: OAuth2FlowType, config: OAuth2ClientOptions): OAuth2Authopen static fun create(vertx: Vertx, flow: OAuth2FlowType): OAuth2Auth
Create a OAuth2 auth provider |
|
open static fun createKeycloak(vertx: Vertx, flow: OAuth2FlowType, config: JsonObject): OAuth2Auth |
|
open fun decodeToken(token: String, handler: Handler<AsyncResult<AccessToken>>): OAuth2Auth
Decode a token to a io.vertx.rxjava.ext.auth.oauth2.AccessToken object. This is useful to handle bearer JWT tokens. |
|
open fun equals(other: Any?): Boolean |
|
open fun getDelegate(): OAuth2Auth |
|
open fun getFlowType(): OAuth2FlowType
Returns the configured flow type for the Oauth2 provider. |
|
open fun getScopeSeparator(): String
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. |
|
open fun getToken(params: JsonObject, handler: Handler<AsyncResult<AccessToken>>): Unit
Returns the Access Token object. |
|
open fun hasJWTToken(): Boolean
Returns true if this provider supports JWT tokens as the access_token. This is typically true if the provider implements the `openid-connect` protocol. This is a plain return from the config option jwtToken, which is false by default. 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. |
|
open fun hashCode(): Int |
|
open fun introspectToken(token: String, handler: Handler<AsyncResult<AccessToken>>): OAuth2Authopen fun introspectToken(token: String, tokenType: String, handler: Handler<AsyncResult<AccessToken>>): OAuth2Auth
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. |
|
open fun loadJWK(handler: Handler<AsyncResult<Void>>): OAuth2Auth
Loads a JWK Set from the remote provider. When calling this method several times, the loaded JWKs are updated in the underlying JWT object. |
|
open static fun newInstance(arg: OAuth2Auth): OAuth2Auth |
|
open fun rxDecodeToken(token: String): Single<AccessToken>
Decode a token to a io.vertx.rxjava.ext.auth.oauth2.AccessToken object. This is useful to handle bearer JWT tokens. |
|
open fun rxGetToken(params: JsonObject): Single<AccessToken>
Returns the Access Token object. |
|
open fun rxIntrospectToken(token: String): Single<AccessToken>open fun rxIntrospectToken(token: String, tokenType: String): Single<AccessToken>
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. |
|
open fun rxLoadJWK(): Single<Void>
Loads a JWK Set from the remote provider. When calling this method several times, the loaded JWKs are updated in the underlying JWT object. |
|
open fun toString(): String |
|
open fun verifyIsUsingPassword(): Unit |