Skip to main content

authenticated_as

Function authenticated_as 

Source
fn authenticated_as(
    client_id: &str,
    bound: Option<&ClientAuthKey>,
    presented: Option<&AuthenticatedClient>,
) -> Result<(), TokenError>
Expand description

Whether presented may spend a code or login client_id holds, bound to bound: no assertion for a public client’s, and an assertion from that client, signed with the key it began with, for a confidential one’s.