vertx / io.vertx.kotlin.ext.auth.oauth2 / io.vertx.ext.auth.oauth2.AccessToken

Extensions for io.vertx.ext.auth.oauth2.AccessToken

fetchAwait

suspend fun AccessToken.fetchAwait(resource: String): OAuth2Response
suspend fun AccessToken.fetchAwait(method: HttpMethod, resource: String, headers: JsonObject, payload: Buffer): OAuth2Response

Fetches a JSON resource using this Access Token.

introspectAwait

suspend fun AccessToken.introspectAwait(): Unit
suspend fun AccessToken.introspectAwait(tokenType: String): Unit

Introspect access token. This is an OAuth2 extension that allow to verify if an access token is still valid.

logoutAwait

suspend fun AccessToken.logoutAwait(): Unit

Revoke refresh token and calls the logout endpoint. This is a openid-connect extension and might not be available on all providers.

refreshAwait

suspend fun AccessToken.refreshAwait(): Unit

Refresh the access token

revokeAwait

suspend fun AccessToken.revokeAwait(token_type: String): Unit

Revoke access or refresh token

userInfoAwait

suspend fun AccessToken.userInfoAwait(): JsonObject

Load the user info as per OIDC spec.