Skip to main content

resolve_client

Function resolve_client 

Source
pub fn resolve_client(
    cfg: &ServiceOAuthConfig,
    byo: Option<&ByoCredentials>,
    saved: Option<&SavedClient>,
) -> Result<ResolvedClient, String>
Expand description

Resolve the client a flow runs with: credentials passed with the request, else the user’s client saved for this provider, else the built-in one. Returns an error string when none is available (the “not configured” gate) or when a secret-mandatory provider is missing its secret.