vertx / io.vertx.kotlin.ext.auth.oauth2 / io.vertx.ext.auth.oauth2.OAuth2RBAC / isAuthorizedAwait

isAuthorizedAwait

suspend fun OAuth2RBAC.isAuthorizedAwait(user: AccessToken, authority: String): Boolean

This method should verify if the user has the given authority and return either a boolean value or an error.

Note that false and errors are not the same. A user might not have a given authority but that doesn't mean that there was an error during the call.

Parameters

user - the given user to assert on

authority - the authority to lookup

handler - the result handler.