org.coursera.naptime

access

package access

Visibility
  1. Public
  2. All

Type Members

  1. trait HeaderAccessControl[A] extends AnyRef

    Control access to an API based on the RequestHeader.

    Control access to an API based on the RequestHeader.

    See StructuredAccessControl for a way to implement access control based on separated authentication and authorization.

    Note that access control based on the request body is not supported right now. Consider construction your HeaderAccessControl (using body parameters as necessary) and invoking runAndCheck in your API body.

  2. case class StructuredAccessControl[A](authenticator: Authenticator[A], authorizer: Authorizer[A]) extends HeaderAccessControl[A] with Product with Serializable

    Implementation of HeaderAccessControl with more structure, separating the authentication and authorization phases of access control to promote reusability.

Value Members

  1. object HeaderAccessControl

  2. package authenticator

  3. package authorizer

Ungrouped