Expand description
The resource’s side: authenticating a signed request, minting resource tokens, and challenging for what is missing.
Structs§
- Authenticated
- A request whose signature verified, and the token it presented.
- Resource
Token Params - What a resource token asks the Person Server for. Build one with
ResourceTokenParams::new.
Constants§
- DEFAULT_
RESOURCE_ TOKEN_ LIFETIME - A resource token’s default lifetime: the spec says it SHOULD NOT exceed five minutes.
Functions§
- authenticate
- Verify a request’s signature, then the token it presents in
Signature-Key, as one of theaccepted kinds, forresource(this server’s own identifier). What a resource does with every request. - challenge
- The headers of a
401asking forrequirement. - resource_
token - Mint a resource token for a
requirement=auth-tokenchallenge, addressed to the Person Server that issued the presented token, and carrying itssub,mission_s256andtenantunchanged.