Package

org.coursera.naptime.access

authenticator

Permalink

package authenticator

Visibility
  1. Public
  2. All

Type Members

  1. trait Authenticator[+A] extends AnyRef

    Permalink

    Authenticates request client based on data extracted from the request (see HeaderAuthenticationParser) as well as looked up from other sources (see Decorator).

    Authenticates request client based on data extracted from the request (see HeaderAuthenticationParser) as well as looked up from other sources (see Decorator).

    A

    Any authentication information obtained from the request and other sources, like user id, user role, device, etc.

  2. trait Decorator[-I, +O] extends AnyRef

    Permalink

    Augments parsed information I (using some asynchronous process) returning either output O or an error.

    Augments parsed information I (using some asynchronous process) returning either output O or an error.

    Decorators should not throw exceptions. On error, they should return Left with an error message suitable for returning to the Naptime client.

  3. trait HeaderAuthenticationParser[+P] extends AnyRef

    Permalink

    Immediate header parser.

    Immediate header parser. Tries to find authentication information.

    HeaderAuthenticationParsers should not throw exceptions. On error, they should return ParseResult.Error with an error message suitable for returning to the Naptime client.

    P

    Parsed authentication data, entirely from the request header.

  4. sealed trait ParseResult[+P] extends AnyRef

    Permalink

    Output of HeaderAuthenticationParser.

    P

    Parsed authentication data.

Value Members

  1. object Authenticator extends StrictLogging with AnyOf with FirstOf with And

    Permalink
  2. object Decorator

    Permalink
  3. object HeaderAuthenticationParser

    Permalink
  4. object ParseResult

    Permalink
  5. package combiner

    Permalink

Ungrouped