Skip to main content

Module challenge

Module challenge 

Source
Expand description

The server side of digest authentication (RFC 7616, RFC 8760).

crate::auth answers a challenge. This issues one, and checks what comes back — the same formulas from the other end, which is why they are not written a second time here.

Scope is the primitives. Which credential a username maps to, and what to do about a failure, belong to whoever is authenticating: a credential store is not this crate’s business. So verification takes the password as an argument and returns a verdict, and the caller decides everything around it.

Structs§

Authenticator
A server that issues digest challenges and checks the answers.
Presented
What a request presented in its Authorization or Proxy-Authorization.

Enums§

Reason
Why verification failed.
Verdict
What verification concluded.

Constants§

DEFAULT_LIFETIME
How long a nonce is good for by default.