SAML Authentication
Twinzo supports SAML 2.0 Single Sign-On (SSO) for organization login. With SAML enabled, users authenticate through your corporate Identity Provider (IdP) and are signed into the Twinzo portal without entering a separate Twinzo password.
Overview
SAML authentication connects your IdP (e.g. Microsoft Entra ID / Azure AD, Okta, ADFS, Keycloak) to Twinzo as a Service Provider (SP). After setup, users enter their organization name on the Twinzo login page and are redirected to your IdP for authentication.
Authentication flow
User enters the organization name on the Twinzo login page.
Twinzo sends a SAML AuthnRequest to your IdP.
User authenticates at the IdP.
IdP POSTs a signed SAML Response to the Twinzo Assertion Consumer Service (ACS) URL.
Twinzo validates the response signature and matches the user by email or NameID.
User is signed in to the portal.
Prerequisite: Users must already exist in Twinzo before they can sign in via SAML. SAML does not auto-provision new accounts.
What you need to configure
Setting up SAML requires configuration on both sides:
Your Identity Provider — register Twinzo as a SAML application (Service Provider).
Twinzo portal — enter IdP details in Settings → Client (see Client settings).
Identity Provider (IdP) setup
Register a new SAML 2.0 application in your IdP with the following Service Provider values. Replace {portal-url} with your Twinzo portal URL (e.g. https://portal.twinzo.eu) and {client-guid} with your Client GUID from Settings → Client.
Required SP values
Setting | Value |
|---|---|
Entity ID / Audience / Issuer |
|
ACS URL / Reply URL / Consumer URL |
|
Response binding | HTTP-POST |
Protocol | SAML 2.0 |
Information to collect from your IdP
After creating the SAML application, provide the following to Twinzo (via Settings → Client or your Twinzo contact):
Item | Description |
|---|---|
IdP SSO URL | The Single Sign-On endpoint URL of your IdP (also called Login URL or SAML 2.0 Endpoint). |
IdP signing certificate | The X.509 certificate used by your IdP to sign SAML responses (PEM format). |
User attributes
Twinzo uses SAML attributes to identify users and optionally update their profile. Configure your IdP to include:
Purpose | Supported attribute names |
|---|---|
User identification (required) |
|
First name (optional) |
|
Last name (optional) |
|
SAML modes
Twinzo supports two SAML request modes. The mode is selected in Settings → Client → SAML 2.0 Mode.
legacy_redirect (default)
Uses HTTP-Redirect binding to send the AuthnRequest to the IdP. This is the simpler mode and works with most IdPs.
Required Twinzo configuration:
SAML 2.0 Consumer URL — your IdP SSO URL
SAML 2.0 Certificate — IdP signing certificate (PEM)
strict_post_signed
Uses HTTP-POST binding with a signed AuthnRequest. Use this mode when your IdP requires signed authentication requests.
Required Twinzo configuration:
SAML 2.0 IdP SSO URL — your IdP SSO endpoint
SAML 2.0 SP Entity ID — Entity ID registered at the IdP (defaults to the ACS URL if not set)
SAML 2.0 Certificate — IdP signing certificate (PEM)
SAML 2.0 Signing Cert PEM — SP signing certificate (PEM)
SAML 2.0 Signing Private Key PEM — SP private key (PEM)
Optional configuration:
SAML 2.0 ACS URL — custom Assertion Consumer Service URL (defaults to
{portal-url}/login/org/saml20/consume/{client-guid})SAML 2.0 NameID Policy Format — e.g.
urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddressSAML 2.0 Requested Authn Context — e.g.
urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport
In strict_post_signed mode, you must generate an SP signing certificate and private key pair, upload both to Twinzo, and register the SP certificate with your IdP if it requires one.
Twinzo portal configuration
All SAML settings are configured in the Twinzo admin portal under Settings → Client.
Setting | Configuration key | Mode | Description |
|---|---|---|---|
SAML 2.0 Mode |
| Both |
|
SAML 2.0 Consumer URL |
| legacy_redirect | IdP SSO URL |
SAML 2.0 Certificate |
| Both | IdP signing certificate (PEM) |
SAML 2.0 IdP SSO URL |
| strict_post_signed | IdP SSO URL |
SAML 2.0 SP Entity ID |
| strict_post_signed | SP Entity ID at IdP |
SAML 2.0 ACS URL |
| strict_post_signed | Custom ACS URL (optional) |
SAML 2.0 Signing Cert PEM |
| strict_post_signed | SP signing certificate |
SAML 2.0 Signing Private Key PEM |
| strict_post_signed | SP private key |
SAML 2.0 NameID Policy Format |
| strict_post_signed | NameID format (optional) |
SAML 2.0 Requested Authn Context |
| strict_post_signed | Authn context (optional) |
Setup checklist
{portal-url}/login/org/saml20/consume/{client-guid}Troubleshooting
Issue | Possible cause |
|---|---|
Login returns to Twinzo login page | User does not exist in Twinzo, or email/NameID does not match an existing account |
SAML button not shown | SAML is not configured — check Consumer URL (legacy mode) or IdP SSO URL + SP Entity ID (strict mode) |
Invalid signature error | Wrong IdP certificate uploaded, or certificate has been rotated at IdP |
IdP rejects AuthnRequest | Entity ID or ACS URL mismatch; try |
Need help?
Contact your Twinzo representative with your Client GUID, IdP type, and the SAML mode you intend to use. We can assist with initial configuration and testing.