public interface AuthenticationDirective<T>
| Modifier and Type | Method and Description |
|---|---|
Directive<scala.Tuple1<scala.Option<T>>> |
optional()
Returns a copy of this
AuthenticationDirective that will provide Some(user) if credentials
were supplied and otherwise None. |
Directive<scala.Tuple1<T>> |
withAnonymousUser(T anonymous)
Returns a copy of this
AuthenticationDirective that uses the given object as the
anonymous user which will be used if no credentials were supplied in the request. |
Directive<scala.Tuple1<scala.Option<T>>> optional()
AuthenticationDirective that will provide Some(user) if credentials
were supplied and otherwise None.Directive<scala.Tuple1<T>> withAnonymousUser(T anonymous)
AuthenticationDirective that uses the given object as the
anonymous user which will be used if no credentials were supplied in the request.anonymous - (undocumented)