Interface AuthenticationDirective<T>


  • public interface AuthenticationDirective<T>
    • Method Detail

      • optional

        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.
        Returns:
        (undocumented)
      • withAnonymousUser

        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.
        Parameters:
        anonymous - (undocumented)
        Returns:
        (undocumented)