authenticateBasicPFAsync
Wraps the inner route with Http Basic authentication support using a given AsyncAuthenticatorPF<T>
.
Description
Provides support for handling HTTP Basic Authentication.
Refer to authenticateBasic for a detailed description of this directive.
Its semantics are equivalent to authenticateBasicPF
's, where not handling a case in the Partial Function (PF)
leaves the request to be rejected with a AuthenticationFailedRejection
rejection.
See Credentials and password timing attacks for details about verifying the secret.
Warning
Make sure to use basic authentication only over SSL/TLS because credentials are transferred in plaintext.
Example
TODO: Example snippets for JavaDSL are subject to community contributions! Help us complete the docs, read more about it here: write example snippets for Akka HTTP Java DSL #20466.
Contents