Struct actix_web_httpauth::extractors::AuthenticationError [−][src]
pub struct AuthenticationError<C: Challenge> { /* fields omitted */ }
Expand description
Authentication error returned by authentication extractors.
Different extractors may extend AuthenticationError
implementation
in order to provide access to inner challenge fields.
Implementations
Extended error customization for HTTP Bearer
auth.
Attach Error
to the current Authentication error.
Error status code will be changed to the one provided by the kind
Error.
Attach error description to the current Authentication error.
Attach error URI to the current Authentication error.
It is up to implementor to provide properly formed absolute URI.
Creates new authentication error from the provided challenge
.
By default returned error will resolve into the HTTP 401
status code.
Returns mutable reference to the inner challenge instance.
Returns mutable reference to the inner status code.
Can be used to override returned status code, but by default this lib tries to stick to the RFC, so it might be unreasonable.