scalaoauth2

provider

package provider

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. provider
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class AuthInfoRequest[A, U](authInfo: AuthInfo[U], request: Request[A]) extends WrappedRequest[A] with Product with Serializable

  2. case class AuthorizedActionFunction[U](handler: ProtectedResourceHandler[U])(implicit ctx: ExecutionContext) extends ActionFunction[Request, [A]AuthInfoRequest[A, U]] with OAuth2Provider with Product with Serializable

  3. trait OAuth2BaseProvider extends Results

    Basic OAuth2 provider trait.

  4. trait OAuth2Provider extends OAuth2BaseProvider

    OAuth2Provider supports issue access token and authorize.

  5. trait OAuth2ProviderActionBuilders extends AnyRef

  6. trait OAuth2AsyncProvider extends OAuth2Provider

    OAuth2AsyncProvider supports issue access token and authorize in asynchronous.

Deprecated Value Members

  1. def await(f: Future[Result], timeout: Duration = 60.seconds): Result

    Support synchronous Result for Playframework

    Support synchronous Result for Playframework

    Create controller for issue access token
    f

    callback

    timeout

    maximum wait time

    returns

    Await and return the result.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.13.0) Use Await in your own

    Examples:
    1. import scalaoauth2.provider._
      object BookController extends Controller with OAuthProvider {
        def list = Action { implicit request =>
          await(authorize(new MyDataHandler()) { authInfo =>
            val user = authInfo.user // User is defined on your system
            // access resource for the user
            Future.successful(Ok)
          })
        }
      }
    2. ,
    3. POST /oauth2/access_token controllers.OAuth2Controller.accessToken
      Authorized
    4. ,
    5. import scalaoauth2.provider._
      object OAuth2Controller extends Controller with OAuth2Provider {
        def accessToken = Action { implicit request =>
          await(issueAccessToken(new MyDataHandler()))
        }
      }
      Register routes

Inherited from AnyRef

Inherited from Any

Ungrouped