Skip to main content

credential_params

Function credential_params 

Source
pub fn credential_params(
    method: AuthMethod,
    client_id: &str,
    assertion: Option<&str>,
) -> Result<Vec<(&'static str, String)>>
Expand description

The client-credential form parameters for a request.

A public client sends only its client_id — attaching an assertion it never registered is what makes every dev login fail at PAR. A confidential client that somehow has no assertion is an error rather than a silently unauthenticated request.