Identity Integration
Connect your IdP, map claims to policies, enforce per-user
10 questions
MACAW's Identity Bridge connects to your existing IdP via standard protocols (OIDC, SAML). When users authenticate through your IdP, their JWT tokens flow to MACAW, which extracts claims and binds them to policies.
Supported IdPs:
- Okta
- Auth0
- Azure AD / Entra ID
- Google Workspace
- Keycloak
- Any OIDC-compliant provider
No - MACAW extends your identity provider, not replaces it.
Layer What It Solves Examples Identity (Okta/Auth0) Who is this person? Authentication, SSO, directory Agentic Access Control (MACAW) What can their AI do? Policy enforcement, workflow governance, crypto audit Okta tells you Alice is authenticated. MACAW tells you Alice's AI agent can only use GPT-3.5, access public documents, and make 100 calls per hour.
MACAW integrates with your existing IdP - it doesn't replace it.
The Identity Bridge is MACAW's component that connects to your IdP. Configure it in Console → Settings → Identity Bridge:
- Select your IdP provider
- Enter your IdP configuration (issuer URL, client ID, etc.)
- Define claims mapping (which JWT claims map to MACAW attributes)
- Test the connection
Once configured, user JWTs from your IdP are automatically recognized by MACAW.
Through claims mapping. Your IdP includes claims in the JWT (like
role,department,groups). MACAW maps these to policy attributes:claims_mapping: role: principal.role department: principal.department groups: principal.groupsThen policies reference these:
{ "policy_id": "role:developer", "constraints": { "parameters": { "llm:*": {"model": ["gpt-4"]} } } }Users with
role: developerin their JWT get this policy applied automatically.Claims-based policy binding means policies are automatically applied based on JWT claims - no manual user-to-policy assignment needed.
Example flow:
- Alice logs in via Okta → gets JWT with
{"role": "engineer", "team": "backend"} - Alice's app passes JWT to MACAW adapter
- MACAW extracts claims, finds matching policies (
role:engineer,team:backend) - Policies compose automatically
- Alice's AI operations are governed by combined policy
Add a new team member? They get the right policies automatically based on their IdP claims.
- Alice logs in via Okta → gets JWT with
Yes. Your application code doesn't change - it just passes the JWT to MACAW. The Identity Bridge configuration determines how to validate and map tokens.
To switch IdPs:
- Configure new IdP in Console → Settings → Identity Bridge
- Update claims mapping if claim names differ
- Your app code stays the same
Use
bind_to_user()or passjwt_tokento bind each request to a specific user:# Each user gets their own policy enforcement client = SecureOpenAI( app_name="shared-app", jwt_token=current_user_jwt )Different users hitting the same app get different permissions based on their identity and claims. Alice might be allowed GPT-4; Bob might be restricted to GPT-3.5.
Yes - that's the core value proposition. Policies bind to identity claims:
- Alice (role: manager) → can use GPT-4, unlimited tokens
- Bob (role: intern) → can use GPT-3.5, max 1000 tokens
- Carol (role: contractor) → can only use approved tools, no LLM access
All using the same application code. Permissions follow the user, not the app.
- Configure your IdP in Console → Settings → Identity Bridge
- Define claims mapping
- Create policies that reference claims (
role:X,team:Y) - Pass user JWT to adapter:
client = SecureOpenAI( app_name="my-app", jwt_token=user_jwt_from_your_idp )MACAW handles the rest - extracting claims, finding policies, enforcing per-user.
MACAW implements Zero Trust - no policy means no permission. Every operation must be explicitly authorized.
Practical policy inheritance: You don't need a unique policy for every user or app. Policies inherit through your organizational hierarchy:
Company → Business Unit → Team → User → AppIf Alice has no user-level policy, she inherits from her team. If the team has no policy, it inherits from the BU, and so on.
Why this scales: Naive policy specification is O(M users × N resources) - unmanageable at enterprise scale. MACAW's hierarchical inheritance reduces this to O(log M + N), or even O(log M + log N) with well-designed resource namespacing.
With typical org spans of 8-16 reports per manager, a 10,000-person company has ~4 levels of hierarchy. Instead of 10,000 user policies, you might need ~50 (company + BUs + teams). Resources follow the same pattern with wildcards like
tool:finance/*.Two enforcement modes control how inheritance works:
Mode Behavior Use Case Permissive (default) Unspecified attributes at middle layers are "don't care" - inherit from parent Most deployments, rapid adoption Restricted No "don't cares" - every attribute must be explicitly specified at each level Regulated industries (finance, healthcare, government) Example: Company → Team → User
- Company:
models: ["opus", "gpt-4"] - Team:
models: [](empty) - User:
models: ["gpt-4"]
In permissive mode:
[]or unspecified means "don't care" - the team layer passes through. Intersection of Company ∩ User =["gpt-4"]. Result: gpt-4 allowed.In restricted mode:
[]means explicitly "nothing allowed". Intersection of Company ∩ Team ∩ User =[]. Result: Denied.Both modes maintain the same security guarantees:
- Defense in depth via intersection algebra
- Principle of least privilege - permissions only narrow through the chain
- Cryptographic verification at every step
The difference is rigor of specification, not the security model.
Restricted mode is available in Enterprise tier. We can help you design your policy hierarchy to match your org structure and compliance requirements - contact us to get started.
- Company: