Skip to main content

Overview

Federation allows enterprise users to authenticate with Polystack using their existing corporate identity provider (IdP) — no separate Polystack password required. Polystack Identity supports SAML 2.0 and OpenID Connect (OIDC) protocols. Users authenticate at the IdP and receive Polystack tokens mapped from their IdP attributes, inheriting project membership and roles through attribute mapping rules.
Administrator Access Required — This operation requires the admin role. Contact your Polystack administrator if you do not have sufficient permissions.

Federation Architecture


SAML 2.0 Setup

Register Polystack as SP in your IdP

Provide your IdP with the Polystack SAML SP metadata URL:
Configure the IdP to send the following SAML attributes:
  • ADFS_LOGIN or mail — the user’s login name
  • memberOf — group membership for role mapping

Register the IdP in Polystack

Create identity provider

Create attribute mapping rules

Mapping rules translate IdP attributes into Polystack group memberships:
mapping-rules.json
Upload mapping rules

Create the federation protocol

Link IdP, mapping, and SAML protocol
Federation protocol is active. Test by authenticating via the SSO URL.

OpenID Connect Setup

Register Polystack as OIDC client in your IdP

Register a new application in your OIDC provider (Keycloak, Azure AD, Okta):
  • Redirect URI: https://api.<your-domain>:5000/v3/OS-FEDERATION/identity_providers/<IDP_ID>/protocols/openid/auth/callback
  • Grant type: Authorization Code
  • Scopes: openid, profile, email, groups

Register the OIDC IdP in Polystack

Create OIDC identity provider

Create OIDC mapping rules

oidc-mapping-rules.json
Create OIDC mapping

Create the OIDC protocol

Create OIDC federation protocol

Mapping Rule Reference


Next Steps

Authentication Backends

Compare federation with LDAP and SQL backend options.

Domain Management

Assign federation backends to specific organizational domains.

Security Hardening

Secure federation endpoints and enforce MFA for federated sessions.

Admin Troubleshooting

Debug SAML assertion errors and OIDC token mapping failures.