ProtectedResourceHandler

scalaoauth2.provider.ProtectedResourceHandler

Provide access to Protected Resource phase support for using OAuth 2.0.

=== [Access to Protected Resource phase] ===

  • findAccessToken(token)
  • findAuthInfoByAccessToken(token)

Attributes

Source
ProtectedResourceHandler.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait DataHandler[U]

Members list

Value members

Abstract methods

def findAccessToken(token: String): Future[Option[AccessToken]]

Find AccessToken object by access token code.

Find AccessToken object by access token code.

Value parameters

token

Client sends access token which is created by system.

Attributes

Returns

Return access token that matched the token.

Source
ProtectedResourceHandler.scala
def findAuthInfoByAccessToken(accessToken: AccessToken): Future[Option[AuthInfo[U]]]

Find authorized information by access token.

Find authorized information by access token.

Value parameters

accessToken

This value is AccessToken.

Attributes

Returns

Return authorized information if the parameter is available.

Source
ProtectedResourceHandler.scala