handshakeSSO Partner Registry

Tutorials for SSO Partner Registry and Signature Validation

What is SSO Partner Registry?

SSO Partner Registry enables IdP-Initiated Single Sign-On by managing external identity provider partners. Each partner receives a consumer key/secret pair for HMAC-SHA256 signature validation, allowing partners to push authenticated user sessions into your application securely.

circle-exclamation
circle-info

New to GL IAM? Start with Introduction to GL IAM to understand the core concepts before diving into partner registry.

When to Use

Scenario
Use

External IdP pushes user sessions

SSO Partner Registry

Human end-user login

Service-to-service calls

AI agent acting on behalf of user

When NOT to Use

Scenario
Use Instead

Partner already has OAuth/OIDC

SP-Initiated SSO via User Authentication (more secure, industry-standard flow)

Untrusted or unknown partner

Do not integrate — IdP-Initiated SSO requires high trust

Public self-service sign-up

Standard User Authentication with email/password or OAuth

Single-tenant, no external partners

Overkill — use direct authentication instead

Security Model

IdP-Initiated SSO has a fundamentally different trust model than SP-Initiated (OAuth/OIDC):

SP-Initiated (OAuth)
IdP-Initiated (Partner Registry)

Who asserts identity

User proves identity via redirect flow

Partner asserts identity on behalf of user

Trust boundary

User + OAuth provider

Your application trusts the partner

Replay protection

Built-in (state param, authorization code)

Your responsibility (one-time tokens, nonces)

Secret compromise impact

Limited (OAuth codes are single-use)

Partner can assert any email within allowed domains

Minimum security checklist before registering a partner:

  1. Set allowed_email_domains — never allow a partner to assert arbitrary email addresses

  2. Set allowed_source_ips — restrict server-to-server calls to known partner IPs

  3. Set max_users — cap the number of auto-provisioned accounts

  4. Use one-time tokens (Redis GETDEL) — prevent SSO token replay

  5. Implement rate limiting on SSO endpoints — prevent brute-force signature attempts

  6. Use HTTPS only — never transmit signatures or tokens over plain HTTP

  7. Rotate consumer secrets periodically — use grace_period_seconds for zero-downtime rotation

SSO Modes

Mode
Value
Description

IdP-Initiated

IDP_INITIATED

Identity Provider starts the SSO flow

SP-Initiated

SP_INITIATED

Service Provider starts the SSO flow

Both

BOTH

Both IdP-initiated and SP-initiated are supported

User Provisioning Strategies

Strategy
Value
Description

JIT

jit

Users are created automatically on first login

Pre-Provisioned

pre_provisioned

Users must exist before SSO login

Disabled

disabled

User provisioning is disabled

Security Restrictions (Opt-in)

Each partner can be configured with optional security restrictions. All default to None (no restriction):

Field
Type
Enforced By
Description

allowed_email_domains

list[str]

GL-IAM

Only these email domains can SSO (case-insensitive)

allowed_source_ips

list[str]

Your app

IP/CIDR allowlist for SSO requests

max_users

int

Your app

Maximum provisioned users for this partner

allowed_roles

list[str]

Your app

Restrict which roles can be assigned via SSO

circle-info

GL-IAM enforces allowed_email_domains during signature validation (when the email parameter is provided). The other three fields are stored by GL-IAM but enforced by your application at the HTTP middleware or provisioning layer.

Tutorials

1

Register Partner

Register an SSO Partner

What You'll Learn: Register a partner, generate consumer credentials, and verify connectivity with health check.

2

Validate Partner Signature

Validate Partner Signatures

What You'll Learn: Validate HMAC-SHA256 signatures from partners and look up partners by consumer key.

3

Rotate Consumer Secret

Rotate Consumer Secrets

What You'll Learn: Rotate a partner's consumer secret with optional grace period for zero-downtime deployments.

4

Manage Partner Lifecycle

Deactivate, Reactivate & List Partners

What You'll Learn: Manage the full partner lifecycle — deactivate, reactivate, and list partners with filters.


circle-info

Found an issue on this page? Report it on our feedback formarrow-up-right.

Last updated

Was this helpful?