Skip to main content

check_join_request

Function check_join_request 

Source
pub fn check_join_request(
    id_token: &str,
    descriptor: &str,
    keys: &KeySet,
    issuer: &str,
    audience: &str,
    cache: &CacheId,
    now: i64,
) -> Result<SignedIn, &'static str>
Expand description

Checks a join request without trusting the server that relayed it: the descriptor parses, the ID token verifies against keys for issuer and the audience the owner pinned, the sign-in is at most MAX_SIGN_IN_AGE_SECS old, and its nonce binds this descriptor to this cache. Every refusal is a short reason.