GrantHandler

scalaoauth2.provider.GrantHandler
trait GrantHandler

Attributes

Source
GrantHandler.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def handleRequest[U](maybeValidatedClientCred: Option[ClientCredential], request: AuthorizationRequest, authorizationHandler: AuthorizationHandler[U])(implicit ctx: ExecutionContext): Future[GrantHandlerResult[U]]

Attributes

Source
GrantHandler.scala

Concrete methods

Controls whether client credentials are required. Defaults to true but can be overridden to be false when needed. Per the OAuth2 specification, client credentials are required for all grant types except password, where it is up to the authorization provider whether to make them required or not.

Controls whether client credentials are required. Defaults to true but can be overridden to be false when needed. Per the OAuth2 specification, client credentials are required for all grant types except password, where it is up to the authorization provider whether to make them required or not.

Attributes

Source
GrantHandler.scala
protected def createGrantHandlerResult[U](authInfo: AuthInfo[U], accessToken: AccessToken): GrantHandlerResult[U]

Attributes

Source
GrantHandler.scala
protected def issueAccessToken[U](handler: AuthorizationHandler[U], authInfo: AuthInfo[U])(implicit ctx: ExecutionContext): Future[GrantHandlerResult[U]]

Returns valid access token.

Returns valid access token.

Attributes

Source
GrantHandler.scala
protected def shouldRefreshAccessToken(token: AccessToken): Boolean

Attributes

Source
GrantHandler.scala