Skip to content

Identity linking

rn_forge.auth.linking

Projection from authenticated identities to authorization principals.

PrincipalLinkError(reason)

Bases: Exception

An authenticated identity cannot be linked to an active account.

Parameters:

Name Type Description Default
reason str

The reason linking failed; also the exception message.

required

Link a verified bearer principal to its active account and permissions.

Raises:

Type Description
PrincipalLinkError

The issuer is absent, no account is linked, or the linked account is inactive.

session_principal(info, context)

Build a session principal from its stored identity and current context.