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

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

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.