Single sign-on
Single sign-on (SSO) lets your members sign in to the console through your organization's identity provider (IdP) — Okta, Microsoft Entra ID, Google Workspace, Keycloak and others — instead of an email link or a passkey. The console supports SAML 2.0 and OpenID Connect (OIDC).
SSO is set up per project, on Organization → Single sign-on for the project selected in the header. A project has one SSO connection, and the connection applies to the email domains the project has proven it owns. Once enabled, it offers or requires your identity provider for people signing in with those email domains.
This page explains how SSO behaves. The step-by-step guides for the identity provider side are SAML 2.0 setup and OpenID Connect setup.
How it works
- Applied by email domain. The console looks at the domain of the email address typed on the sign-in page. When that domain is verified for an active connection, the member is offered SSO or sent straight to the identity provider, depending on your member-access setting. Domains match exactly: verifying
example.comcovers@example.com, not@eu.example.com(add each subdomain you use). - Accounts are matched by email. The identity provider decides for every console account on a verified domain, including accounts that are members of other projects. A domain can be verified by one project only.
- One connection per project. A company with several projects sets up SSO on one of them. Accounts created by SSO join that project (see Just-in-time accounts); existing accounts keep their project memberships.
- Started from the console. Every sign-in is started by the console. Opening the console from the identity provider's app menu (a SAML app tile) takes the member to the console sign-in page, where one click starts that sign-in (see Signing in from your identity provider's app menu).
- Signing out of the console does not sign the member out of the identity provider.
Who can set it up
To open Organization → Single sign-on and change its settings you need the Org/SSO: Write policy and membership of the selected project. P Foundation administrators can manage SSO on every project.
Setting it up
The setup follows five steps. Your connection stays a draft until you enable it. The Setup help card is available on desktop and mobile and opens this guide (/docs/org/sso) in a new tab, so you can keep setup open alongside it.
- Choose provider. Select Microsoft Entra ID, Google Workspace, Okta or Other. Entra ID recommends OpenID Connect; the other choices recommend SAML 2.0. The editable Display name starts with the provider's name, or your project's reference for Other (Company SSO when no project reference is available). It appears on the sign-in button, for example "Continue with Acme SSO". If you need a different protocol, open Advanced connection options before pressing Continue. Continue creates the draft; its protocol cannot change afterward without deleting it and creating a new connection.
- Connect provider. Under 1. Add these details to your provider, use Application branding to copy the application name PF Console and Download logo for the provider’s application name/logo settings. Then copy the SAML Entity ID and ACS URL, or the OIDC redirect URI, into that application. For SAML, Use service-provider metadata instead offers the metadata URL and download. Under 2. Connect your provider, import the SAML metadata or enter the OIDC application details. Press Save and continue; if the settings are already saved and unchanged, press Continue.
- Verify email domain. Add your members' email domains, publish each DNS TXT record and press Check verification (see Domain verification). While waiting for DNS, you can use Continue to test once the provider settings are saved.
- Test sign-in. Press Run test sign-in, sign in at your provider and review the result when you return. Expand Test details and claims to inspect the attributes sent. Then choose Review setup (see The test sign-in).
- Review and enable. Check Provider connected, Domain verified and Test passed. Under Member access, start with Offer SSO, or select Require SSO. Optionally turn on Create accounts on first sign-in and select its policies. Advanced settings contains the display name and session maximum age. Press Enable single sign-on to save these choices and enable the connection together.
Enable single sign-on requires at least one domain with status Verified, a passing test of the current saved provider settings, and no unsaved provider edits. Pending or lapsing domains alone do not satisfy that check. You can test before DNS verification finishes. If you have edited member-access settings and are not ready to enable, use Save draft.
Saved progress is ready when you return: setup opens at Connect provider if provider settings are missing, Verify email domain if no domain is verified, Test sign-in if the current settings have not passed, or Review and enable when those checks are complete. Returning from a test opens its result instead. View draft overview opens the draft's summary, with Review and enable to return and Connection actions to delete it.
Moving between steps keeps unsaved provider and member-access entries only while this page stays open. Those entries are not part of the saved draft: save before leaving, reloading or switching projects. The browser warns before unloading a page with unsaved form changes, and the page's Refresh button is disabled until they are resolved.
For SAML, pasted XML is also an unsaved edit until Read metadata succeeds. A file still being read, a failed import or XML edited after an import blocks provider saves, Continue, test sign-in and enabling. Read valid metadata or use Discard XML to clear the pending import; then save any changed provider fields. Discard XML does not undo changes already applied to those fields. See What to bring back.
Managing an existing connection
Active and disabled connections open on Overview, showing the provider, status, email domains, member access and last test. Use Provider, Domains, Test sign-in or Member access to edit one area at a time.
- Provider changes use Save provider settings on both active and disabled connections.
- Member-access changes on an active connection use Save member access.
- On a disabled connection, Member access includes the readiness review. Save draft appears when you edit its fields and saves them while keeping the connection disabled. Enable single sign-on saves the reviewed choices and enables it. Overview → Review and enable opens the same review.
The browser remembers the provider choice separately for each project and connection, only to tailor labels and setup guidance. Another browser, cleared site storage or unavailable storage shows generic SAML or OpenID Connect guidance. Saved connection settings, protocol and readiness are kept on the server and stay the same.
Application branding is also available under Provider after setup. The downloadable logo is a square 192 × 192 PNG. Copy PF Console as the application name and upload the PNG in your provider’s application branding settings; where it appears depends on the provider. This application name is separate from the connection’s Display name, which labels the SSO button in the console.
What members see
A member types their email address on the sign-in page and presses Continue:
- No SSO for the domain (the domain is pending, lapsed or not configured, or the connection is a draft or disabled): sign-in works as before, with a passkey or an email link.
- SSO optional: the page offers Continue with Acme SSO and Email me a sign-in link instead.
- SSO required: the member is sent straight to the identity provider ("Redirecting to Acme SSO…"). Email links and passkeys are not offered, and are refused if tried.
After signing in at the identity provider, the member lands back in the console, on the page they wanted to open. If the sign-in fails, the sign-in page explains why (see Troubleshooting).
The answer depends on the domain only: the sign-in page shows the same thing for every address on a domain, whether an account exists or not.
P Foundation administrators
P Foundation administrators can always sign in with an email link or a passkey, even on a domain where SSO is required, so that a broken identity provider never locks everyone out. On a required domain the sign-in page offers it as P Foundation administrator? Email me a sign-in link. For anyone else that link sends no email.
Signing in from your identity provider's app menu
Members can also open the console from your identity provider's app menu: a Google Workspace or Okta app tile, the Microsoft My Apps portal, or the identity provider's own "Test SAML login" button. This works for SAML connections, with no extra setting.
- The member clicks the console's tile in the app menu.
- The console sign-in page opens and shows Sign in with Acme SSO: You came from your organization's app menu. Continue to sign in to the P Foundation Console.
- The member presses Continue with Acme SSO. The console starts an ordinary sign-in at your identity provider, which normally completes at once because the member is already signed in there, and the member lands in the console.
The confirmation click is on purpose. The answer the identity provider sends with a tile click is never used to sign anyone in: the console only accepts answers to sign-ins it started itself, in the same browser tab. Without that rule, a web page could sign a visitor in to the console as someone else. Use another way to sign in on the same page goes back to the usual email step.
If the connection is disabled or still a draft, the sign-in page says Single sign-on is not available for your organization right now. Try again later or contact your administrator. and offers the usual sign-in.
For an OpenID Connect connection, point the app tile (if your identity provider offers one) at the console sign-in page; members then sign in from there as usual.
Optional or required
Under Member access → How should members sign in?:
- Offer SSO — SSO is optional: members can choose SSO or an email link (and keep using their passkeys). Recommended to start.
- Require SSO — members of the verified domains must use SSO.
Require SSO can only be chosen after a successful test sign-in of the current saved identity provider settings, and takes effect once the connection is active. Press Save member access on an active connection, or Enable single sign-on when completing setup or re-enabling it. Save draft can save the choice on a draft or disabled connection without enabling it.
When the saved member-access setting is Require SSO, provider settings are read-only except for the SAML certificate slots. This also applies to a draft or disabled connection with that saved setting. To edit them, select Offer SSO and save that choice first (see The test sign-in).
Switching to Required
Members who are already signed in are not signed out at once. Members of your domains who are signed in with an email link or passkey stay signed in until their session next renews (within about an hour). After that they must sign in with SSO. P Foundation administrators are exempt.
The console asks you to confirm before it saves a change that ends or limits members' sessions: choosing Require SSO, shortening the session maximum age, or disabling the connection.
Domain verification
A domain is proven with a DNS TXT record. In the Verify email domain setup step, or Domains when managing a connection, enter the domain (the part after @ in your members' addresses) and press Add domain. The console shows the record to publish:
| Field | Value |
|---|---|
| TXT record name | the domain itself, for example example.com (many DNS providers call this @) |
| TXT record value | pfoundation-domain-verification=<token>, the token shown for your domain |
Add the record at your DNS provider next to any TXT records the domain already has (an SPF record, other verifications), then press Check verification. DNS changes can take a few minutes to show. The value must match exactly. A domain whose check fails shows why: TXT record not found, TXT record does not match, Domain is an alias (CNAME), DNS lookup timed out, DNS lookup failed, or Domain already verified by another project.
You can continue to a test sign-in while DNS is pending. Return here to finish verification before enabling SSO. Once a domain is verified, its TXT record, verification date and method, and last-check time are under Domain details.
A domain that is an alias (it has a CNAME record) cannot be verified: its TXT records are those of the name it points to, which someone else may control. Verify the domain your email addresses actually use; email domains are normally not aliases.
- A connection can hold up to 20 domains (pending and verified together).
- Public email providers (gmail.com, outlook.com, yahoo.com and the like) cannot be claimed: their addresses belong to many different people.
- Several projects can add the same domain while it is pending; the first to verify it owns it.
- P Foundation administrators can also verify a domain without DNS (Domain details → Verify as administrator).
Keeping a domain verified
Keep the TXT record in place: the console checks it again every day. Routing to SSO in the table below applies when the connection is active.
| Status | Meaning |
|---|---|
| Pending | Added, not verified yet. Its members are not sent to SSO. |
| Verified | The record was found. Its members are sent to SSO. |
| Lapsing | The daily check no longer finds the record. Members are still sent to SSO for 7 days; the domain shows the date it will stop. |
| Lapsed | The record was missing for more than 7 days. Members are no longer sent to SSO, so they can sign in with an email link or passkey again. |
Restore the record and press Check verification to make a lapsing or lapsed domain verified again. A domain that has become an alias (CNAME) counts as missing its record. A DNS lookup that fails or times out never lapses a domain. A lapsed domain stays with your project until you verify it again or remove it. Removing a domain stops it from being sent to SSO at once; sessions already started with SSO last until their session maximum age.
The test sign-in
Under Test sign-in, Run test sign-in takes you through the whole sign-in at your identity provider and back to the result on the Single sign-on page. Your current console session stays signed in, and no account is created. You can sign in at the identity provider with any account of yours there. The result shows:
- Your provider connection works for a current passing test, or The test could not be completed with the reason of a failure;
- Signed in as the email address the identity provider sent;
- Test details and claims, expandable when attributes are available, so you can check names and mappings;
- warnings, for example when the email's domain is not verified for this connection yet (a real sign-in with it would be refused).
A test uses the saved provider settings. Run test sign-in is blocked while provider or member-access edits are unsaved, including pending SAML XML. Use Go to provider settings or Go to member access when shown, save the changes, then return to test. On a draft or disabled connection, Save draft lets you save member-access edits before testing without enabling SSO.
You can test while domain verification is pending; the warning does not make that domain ready for real sign-ins. The test checks the provider's answer, not whether the returned email already has an active console account or whether account creation will succeed. A successful test of the current provider settings is needed to Enable single sign-on and to choose Require SSO. Enabling also needs at least one verified domain and no unsaved provider changes.
Any saved change to provider settings (including certificates and the client secret) needs a new test; an older passing result then says Test again after your changes. Changing the display name, enforcement, session maximum age or account creation does not invalidate the test. A failed test must be followed by a successful one before enabling or switching from Offer SSO to Require SSO.
- On an active, optional connection, identity provider changes apply as soon as you save. Run a test right after; members can still use an email link meanwhile.
- With Require SSO saved, provider settings are read-only. Choose Member access → Offer SSO and press Save member access (active connection) or Save draft (draft or disabled), then save and test the provider change before choosing Require SSO again.
- The exception is a SAML certificate rotation: while SSO is required, the signing certificates can still change as long as one certificate that was pinned at the last successful test sign-in stays pinned. Pin the new certificate next to the old one, run a test sign-in once the identity provider signs with the new one, then remove the old one (see Certificate rotation).
Session lifetime
An SSO sign-in lasts at most the connection's Session maximum age (hours) under Member access → Advanced settings, from 1 to 168 hours (one week); the default is 12 hours. After that the member signs in through the identity provider again. The console renews sessions in the background every hour or so, but never past this age.
- Raising the maximum age applies to new sign-ins.
- Lowering it also shortens sessions already running: members signed in with SSO for longer than the new maximum are signed out at their next session renewal (within about an hour).
Removing a member at your identity provider does not end a console session that is already running; it ends at the maximum age at the latest. To end it at the next session renewal instead, deactivate the account on Organization → Users.
Just-in-time accounts
Under Member access, Create accounts on first sign-in is off by default: only members who already have a console account can sign in with SSO. Invite new members on Organization → Users first, or turn it on. Turning it on reveals the policy picker; choose the new accounts' access before saving or enabling SSO.
When it is on, a member of a verified domain without a console account gets one the first time they sign in with SSO. The new account:
- is active, with the first and last name the identity provider sent;
- is a member of this project only;
- has the DataStudio/Core policy plus the policies you choose. Core stays selected and cannot be removed. At least one policy besides Core is required, and you can only choose policies you hold yourself; P Foundation administrators can choose any policy.
Existing accounts are not changed by SSO: their projects and policies stay as they are.
Disabling or deleting the connection
Open Overview → Connection actions (or View draft overview → Connection actions during setup).
- Disable, shown for an active connection, stops offering SSO. Sessions started with SSO end at their next renewal (within about an hour); members then sign in with an email link or passkey, also on a domain where SSO was required. To restore it, choose Review and enable, complete any readiness checks, then Enable single sign-on. Its settings and domains are kept; enabling needs a current passing test, at least one verified domain and no unsaved provider edits.
- Delete connection asks you to type the display name before confirming. It removes the connection's settings and all its domains, and ends its sessions the same way. To set up SSO again you create a new connection, configure your identity provider with its new service provider URLs and verify the domains again.
Troubleshooting
When an SSO sign-in fails, the member is sent back to the sign-in page (or a Sign-in failed page) with a message. The table lists every message, by the code the console records for the failure. A failed test sign-in shows the same reasons on the Single sign-on page.
Setup and management checks
- A test is blocked: use Go to provider settings to save missing or edited provider details, or Go to member access to save that form. For SAML XML, finish Read metadata or choose Discard XML first. See The test sign-in.
- Enabling is blocked: the review shows Verify domain, Go to test or Save provider changes, depending on what is missing. These buttons open the relevant section; Save provider changes does not save by itself. Finish the action there, then return to the review.
- Overview asks you to check something: Review domains opens domain verification; Review test opens the test result and Run test sign-in.
- Provider fields are read-only: save Offer SSO under Member access before editing. SAML certificate rotation remains available while Require SSO is saved.
- Provider-specific guidance is missing: it is remembered in this browser only. Open the matching SAML or OIDC guide; the saved connection has not changed.
Sign-in error codes
Provider fields mentioned below are under Provider → 2. Connect your provider (the Connect provider step during setup). SAML issuer and sign-in URL are under Enter provider details manually; certificates and attribute mapping are under Advanced: certificates, attributes & request signing. OIDC scopes, email claim and email verification are under Advanced: scopes & email claims. Save and test provider changes after correcting them.
| Code | The member sees | What to do |
|---|---|---|
invalid_response | We couldn't read the answer from your organization's sign-in. Please try again, and contact your administrator if it keeps happening. | The identity provider's answer was incomplete or malformed, or carried no usable email address. Run a test sign-in and check the email it shows: for SAML, send the email as the NameID (format emailAddress) or map an Email attribute; for OIDC, check the Email claim. |
invalid_signature | We couldn't verify your organization's sign-in. Ask your administrator to check the single sign-on certificate. | SAML: the assertion is not signed, was signed with a certificate that is not pinned (the identity provider rotated its certificate), or was signed with SHA-1 (switch the identity provider to SHA-256). Pin the current signing certificate and make sure the identity provider signs the assertion. OIDC: the ID token's signature did not verify; check the issuer URL. |
audience | Your organization's sign-in was meant for another application. Ask your administrator to check the single sign-on settings. | SAML: the Entity ID (audience), ACS URL, Destination or Recipient at the identity provider does not match the console's. Copy them again from Provider → 1. Add these details to your provider (the Connect provider step during setup). OIDC: the ID token is for another client ID. |
issuer | Your organization's sign-in came from an identity provider this console doesn't expect. Ask your administrator to check the single sign-on settings. | SAML: the IdP entity ID (Issuer) does not match. OIDC: the issuer URL is not exactly the one the identity provider reports. |
expired | That sign-in took too long — please try again. | The answer was outside its validity window. Try again; if it keeps happening, check the identity provider's clock. The allowed clock difference is 2 minutes for SAML and 30 seconds for OIDC. |
replay | That sign-in was already used. Please sign in again. | The same answer arrived twice (for example after going back or reloading in the browser). Sign in again. |
unsolicited | That sign-in wasn't started here, or it is no longer valid. Start signing in from this page. | The identity provider answered a sign-in the console does not know (for example from an old browser tab, or a bookmark of the identity provider's page). Start again from the console's sign-in page. |
domain_unverified | Your organization's sign-in worked, but your email's domain isn't verified for it. Ask your administrator to verify the domain. | Check Signed in as in the test result. Under Domains, add or restore that exact email domain's TXT record and press Check verification, or make the provider send an address on an already verified domain. |
no_account | Your organization's sign-in worked, but there's no console account for this email. Ask your administrator to invite you. | Invite the member on Organization → Users, or save Member access → Create accounts on first sign-in with at least one policy besides DataStudio/Core. A passing test does not check account creation. |
user_inactive | Your console account is not active. Ask your administrator to reactivate it. | Reactivate the account on Organization → Users. |
device_mismatch | Finish signing in in the same browser tab you started in. | The sign-in ended in another tab or browser than the one that started it, or the browser blocks site storage. Start again and finish in the same tab. |
connection_disabled | Single sign-on is not available for your organization right now. Try again later or contact your administrator. | Check Overview. For a disabled connection, choose Review and enable, resolve the readiness checks and press Enable single sign-on. A deleted connection needs setup again; an active one needs its provider settings checked and tested. |
request_expired | That sign-in took too long — please try again. | More than 10 minutes passed at the identity provider. Start again. |
idp_error | Your organization's sign-in didn't complete: it was cancelled or access was denied. Please try again or contact your administrator. | The member cancelled, or the identity provider refused them — usually because they are not assigned to the application there. |
email_unverified | Your organization's identity provider didn't confirm this email address. Ask your administrator to check the single sign-on settings. | OIDC: Require a verified email is on and the identity provider did not report the email as verified (email_verified). Mark the member's email as verified at the identity provider, or turn the option off for a provider that never sends email_verified, such as Microsoft Entra ID (see OpenID Connect setup). |
unavailable | We couldn't complete the sign-in right now. Please wait a moment and try again. | The console or the identity provider did not answer in time. Try again in a moment; contact P Foundation support if it persists. |
Signed out with a message
When a session ends because of SSO, the sign-in page says why:
- Your organization now requires single sign-on. Please sign in again. — SSO became required for the member's domain, and the member was signed in with an email link or passkey.
- Your single sign-on session ended. Please sign in again. — the session reached the connection's session maximum age.
- Your organization's single sign-on has changed. Please sign in again. — the connection that signed the member in was disabled or deleted.
Other problems
- "This sign-in link is not valid. Start again from the console sign-in page." on a plain page: the identity provider sent the member to the console with an answer the console cannot place: for a sign-in it does not know (a bookmark of the identity provider's page, an old browser tab), or from an app tile whose connection was deleted. Start from the console's sign-in page. An app tile of an existing SAML connection opens the sign-in page instead (see Signing in from your identity provider's app menu).
- A member is not offered SSO: check Overview for an Active connection and Domains for their exact email domain. Verified domains and Lapsing domains within the grace period route to SSO; pending and lapsed ones do not. Restore a lapsing domain's TXT record before the displayed deadline.
Further reading
- SAML 2.0 setup — Okta, Microsoft Entra ID, Google Workspace and other SAML identity providers
- OpenID Connect setup — Microsoft Entra ID, Okta, Google, Keycloak and other OIDC providers
