Expand description
Matching an Authorization header against the configured bearer token.
Split from mod.rs rather than added to it because that file is near its
complexity budget, and because this is one self-contained decision: given
what a client sent and what the endpoint expects, does the request get in.
Structs§
- Bearer
Policy - Which token a running endpoint currently requires.
Constants§
- BEARER 🔒
- The auth scheme this endpoint speaks, compared case-insensitively.
Functions§
- bearer_
matches - Whether
presented— the rawAuthorizationheader value, orNonewhen the client sent none — carriesexpected_key.