Package

com.twitter.finagle

oauth2

Permalink

package oauth2

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. oauth2
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class AccessDenied extends OAuthError

    Permalink
  2. case class AccessToken(token: String, refreshToken: Option[String], scope: Option[String], expiresIn: Option[Long], createdAt: Date) extends Product with Serializable

    Permalink

    Access token

    Access token

    token

    Access token is used to authentication.

    refreshToken

    Refresh token is used to re-issue access token.

    scope

    Inform the client of the scope of the access token issued.

    expiresIn

    Expiration date of access token. Unit is seconds.

    createdAt

    Access token is created date.

  3. trait AccessTokenFetcher extends AnyRef

    Permalink
  4. case class AccessTokenRequest[U](clientId: String, clientSecret: String, user: U) extends Product with Serializable

    Permalink
  5. case class AuthInfo[U](user: U, clientId: String, scope: Option[String], redirectUri: Option[String]) extends Product with Serializable

    Permalink

    Authorized information

    Authorized information

    user

    Authorized user which is registered on system.

    clientId

    Using client id which is registered on system.

    scope

    Inform the client of the scope of the access token issued.

    redirectUri

    This value is used by Authorization Code Grant.

  6. class AuthorizationCode extends GrantHandler

    Permalink
  7. case class AuthorizationRequest(headers: Map[String, Seq[String]], params: Map[String, Seq[String]]) extends RequestBase with Product with Serializable

    Permalink
  8. case class ClientCredential(clientId: String, clientSecret: String) extends Product with Serializable

    Permalink
  9. trait ClientCredentialFetcher extends AnyRef

    Permalink
  10. class ClientCredentials extends GrantHandler

    Permalink
  11. trait DataHandler[U] extends AnyRef

    Permalink

    Provide accessing to data storage for using OAuth 2.0.

    Provide accessing to data storage for using OAuth 2.0.

    [Authorization phases]
    Authorization Code Grant
    • validateClient(clientId, clientSecret, grantType)
    • findAuthInfoByCode(code)
    • getStoredAccessToken(authInfo)
    • isAccessTokenExpired(token)
    • refreshAccessToken(authInfo, token)
    • createAccessToken(authInfo)
    Refresh Token Grant
    • validateClient(clientId, clientSecret, grantType)
    • findAuthInfoByRefreshToken(refreshToken)
    • refreshAccessToken(authInfo, refreshToken)
    Resource Owner Password Credentials Grant
    • validateClient(clientId, clientSecret, grantType)
    • findUser(username, password)
    • getStoredAccessToken(authInfo)
    • isAccessTokenExpired(token)
    • refreshAccessToken(authInfo, token)
    • createAccessToken(authInfo)
    Client Credentials Grant
    • validateClient(clientId, clientSecret, grantType)
    • findClientUser(clientId, clientSecret)
    • getStoredAccessToken(authInfo)
    • isAccessTokenExpired(token)
    • refreshAccessToken(authInfo, token)
    • createAccessToken(authInfo)
    [Access to Protected Resource phase]
    • findAccessToken(token)
    • isAccessTokenExpired(token)
    • findAuthInfoByAccessToken(token)
  12. class ExpiredToken extends OAuthError

    Permalink
  13. case class FetchResult(token: String, params: Map[String, String]) extends Product with Serializable

    Permalink
  14. trait GrantHandler extends AnyRef

    Permalink
  15. case class GrantHandlerResult(tokenType: String, accessToken: String, expiresIn: Option[Long], refreshToken: Option[String], scope: Option[String]) extends Product with Serializable

    Permalink
  16. class InsufficientScope extends OAuthError

    Permalink
  17. class InvalidClient extends OAuthError

    Permalink
  18. class InvalidGrant extends OAuthError

    Permalink
  19. class InvalidRequest extends OAuthError

    Permalink
  20. class InvalidScope extends OAuthError

    Permalink
  21. class InvalidToken extends OAuthError

    Permalink
  22. abstract class OAuthError extends Exception

    Permalink
  23. trait OAuthErrorHandler extends AnyRef

    Permalink
  24. trait OAuthErrorInJson extends OAuthErrorHandler

    Permalink
  25. trait OAuthTokenConverter extends AnyRef

    Permalink
  26. trait OAuthTokenInJson extends OAuthTokenConverter

    Permalink
  27. class Password extends GrantHandler

    Permalink
  28. trait ProtectedResource extends AnyRef

    Permalink
  29. case class ProtectedResourceRequest(headers: Map[String, Seq[String]], params: Map[String, Seq[String]]) extends RequestBase with Product with Serializable

    Permalink
  30. class RedirectUriMismatch extends OAuthError

    Permalink
  31. class RefreshToken extends GrantHandler

    Permalink
  32. class RequestBase extends AnyRef

    Permalink
  33. class TokenEndpoint extends AnyRef

    Permalink
  34. class UnauthorizedClient extends OAuthError

    Permalink
  35. class UnsupportedGrantType extends OAuthError

    Permalink
  36. class UnsupportedResponseType extends OAuthError

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped