Validate Delegation Token
5-Line Core
from gl_iam import IAMGateway
from gl_iam.providers.postgresql import PostgreSQLAgentProvider, PostgreSQLConfig
provider = PostgreSQLAgentProvider(PostgreSQLConfig(database_url="postgresql+asyncpg://user:pass@localhost/mydb", secret_key="your-secret-key-min-32-chars-long!", default_org_id="default"))
gateway = IAMGateway.for_agent_auth(agent_provider=provider, secret_key="your-secret-key-min-32-chars-long!")
result = await gateway.validate_delegation_token(token="eyJhbGciOi...")
delegation = result.unwrap() # DelegationToken with chain, scope, taskCross-Service Validation Architecture

Step-by-Step
1
2
3
4
Complete Example
Common Pitfalls
Pitfall
Solution
Next Steps
Last updated
Was this helpful?