package authenticator
- Alphabetic
- Public
- All
Type Members
-
trait
Authenticator[+A] extends AnyRef
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.
-
trait
Decorator[-I, +O] extends AnyRef
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
Leftwith an error message suitable for returning to the Naptime client. -
trait
HeaderAuthenticationParser[+P] extends AnyRef
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.
-
sealed
trait
ParseResult[+P] extends AnyRef
Output of HeaderAuthenticationParser.
Output of HeaderAuthenticationParser.
- P
Parsed authentication data.
Value Members
- object Authenticator extends StrictLogging with AnyOf with FirstOf with And
- object Decorator
- object HeaderAuthenticationParser
- object ParseResult