Package

org.coursera.naptime

access

Permalink

package access

Visibility
  1. Public
  2. All

Type Members

  1. trait HeaderAccessControl[A] extends AnyRef

    Permalink

    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

    Permalink

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

Value Members

  1. object HeaderAccessControl extends AnyOf with And with EitherOf

    Permalink
  2. object StructuredAccessControl extends Serializable

    Permalink
  3. package authenticator

    Permalink
  4. package authorizer

    Permalink

Ungrouped