Package

scalaoauth2

provider

Permalink

package provider

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], lifeSeconds: Option[Long], createdAt: Date, params: Map[String, String] = Map.empty[String, String]) 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.

    lifeSeconds

    Life of the access token since its creation. In seconds.

    createdAt

    Access token is created date.

    params

    Additional parameters to add information/restriction on given Access token.

  3. trait AccessTokenFetcher extends AnyRef

    Permalink
  4. case class AuthInfo[+U](user: U, clientId: Option[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.

  5. class AuthorizationCode extends GrantHandler

    Permalink
  6. case class AuthorizationCodeRequest(request: AuthorizationRequest) extends AuthorizationRequest with Product with Serializable

    Permalink
  7. trait AuthorizationHandler[U] extends AnyRef

    Permalink

    Provide Authorization phases support for using OAuth 2.0.

    Provide Authorization phases support for using OAuth 2.0.

    [Authorization phases]
    Authorization Code Grant
    • validateClient(request)
    • findAuthInfoByCode(code)
    • deleteAuthCode(code)
    • getStoredAccessToken(authInfo)
    • refreshAccessToken(authInfo, token)
    • createAccessToken(authInfo)
    Refresh Token Grant
    • validateClient(clientCredential, grantType)
    • findAuthInfoByRefreshToken(refreshToken)
    • refreshAccessToken(authInfo, refreshToken)
    Resource Owner Password Credentials Grant
    • validateClient(request)
    • findUser(request)
    • getStoredAccessToken(authInfo)
    • refreshAccessToken(authInfo, token)
    • createAccessToken(authInfo)
    Client Credentials Grant
    • validateClient(request)
    • findUser(request)
    • getStoredAccessToken(authInfo)
    • refreshAccessToken(authInfo, token)
    • createAccessToken(authInfo)
    Implicit Grant
    • validateClient(request)
    • findUser(request)
    • getStoredAccessToken(authInfo)
    • createAccessToken(authInfo)
  8. class AuthorizationRequest extends RequestBase

    Permalink
  9. case class ClientCredential(clientId: String, clientSecret: Option[String]) extends Product with Serializable

    Permalink
  10. class ClientCredentials extends GrantHandler

    Permalink
  11. case class ClientCredentialsRequest(request: AuthorizationRequest) extends AuthorizationRequest with Product with Serializable

    Permalink
  12. trait DataHandler[U] extends AuthorizationHandler[U] with ProtectedResourceHandler[U]

    Permalink

    Provide accessing to data storage for using OAuth 2.0.

  13. class ExpiredToken extends OAuthError

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

    Permalink
  15. trait GrantHandler extends AnyRef

    Permalink
  16. case class GrantHandlerResult[U](authInfo: AuthInfo[U], tokenType: String, accessToken: String, expiresIn: Option[Long], refreshToken: Option[String], scope: Option[String], params: Map[String, String]) extends Product with Serializable

    Permalink
  17. class Implicit extends GrantHandler

    Permalink
  18. case class ImplicitRequest(request: AuthorizationRequest) extends AuthorizationRequest with Product with Serializable

    Permalink
  19. class InsufficientScope extends OAuthError

    Permalink
  20. class InvalidClient extends OAuthError

    Permalink
  21. class InvalidGrant extends OAuthError

    Permalink
  22. class InvalidRequest extends OAuthError

    Permalink
  23. class InvalidScope extends OAuthError

    Permalink
  24. class InvalidToken extends OAuthError

    Permalink
  25. abstract class OAuthError extends Exception

    Permalink
  26. class Password extends GrantHandler

    Permalink
  27. case class PasswordRequest(request: AuthorizationRequest) extends AuthorizationRequest with Product with Serializable

    Permalink
  28. trait ProtectedResource extends AnyRef

    Permalink
  29. trait ProtectedResourceHandler[+U] extends AnyRef

    Permalink

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

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

    [Access to Protected Resource phase]
    • findAccessToken(token)
    • findAuthInfoByAccessToken(token)
  30. class ProtectedResourceRequest extends RequestBase

    Permalink
  31. class RedirectUriMismatch extends OAuthError

    Permalink
  32. class RefreshToken extends GrantHandler

    Permalink
  33. case class RefreshTokenRequest(request: AuthorizationRequest) extends AuthorizationRequest with Product with Serializable

    Permalink
  34. class RequestBase extends AnyRef

    Permalink
  35. trait TokenEndpoint extends AnyRef

    Permalink
  36. class UnauthorizedClient extends OAuthError

    Permalink
  37. class UnsupportedGrantType extends OAuthError

    Permalink
  38. class UnsupportedResponseType extends OAuthError

    Permalink

Ungrouped