Interface AuthenticationDirective<T>


public interface AuthenticationDirective<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    Directive<scala.Tuple1<scala.Option<T>>>
    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.
  • Method Details

    • 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)