Skip to main content

map_external_identity

Function map_external_identity 

Source
pub fn map_external_identity(
    provider_slug: &str,
    external_claims: &Value,
    strategy: &UserMappingStrategy,
    _local_issuer_url: &str,
) -> Result<String>
Expand description

Map an external OIDC identity to a local hyprstream subject.

The returned string becomes the sub claim in the hyprstream-issued JWT. Casbin policies grant permissions to this mapped subject.