Lockspire.Protocol.TokenExchange.Delegation (lockspire v1.0.0)

Copy Markdown

Handles token exchange delegation logic, including depth limits.

Summary

Functions

Checks if adding another delegation layer would exceed the maximum depth. Returns :ok or {:error, "invalid_request", "max_delegation_depth_exceeded"}.

Functions

check_depth(actor_token_claims, client, policy)

Checks if adding another delegation layer would exceed the maximum depth. Returns :ok or {:error, "invalid_request", "max_delegation_depth_exceeded"}.