SAML 2.0 setup
This guide connects a SAML 2.0 identity provider (IdP) to the console. On Organization → Single sign-on, choose your provider first: Google Workspace, Okta and Other recommend SAML 2.0. For Microsoft Entra ID, open Advanced connection options and select SAML 2.0 before pressing Continue. The protocol cannot change after the draft is created. How SSO behaves for your members is described in Single sign-on.
You create an application for the console at your identity provider, copy the console's details into it, and bring the identity provider's details back.
What to copy from the console
In the Connect provider setup step (or Provider when managing an existing connection), open 1. Add these details to your provider:
Start with Application branding: copy PF Console as the application name, then choose Download logo for a square 192 × 192 PNG to upload to your provider’s app/logo settings. This names and brands the console application at the provider; the connection’s Display name controls the SSO button in the console.
| Console field | Also called at identity providers |
|---|---|
| Entity ID (Audience URI) | SP Entity ID, Audience URI, Identifier, Audience |
| Assertion Consumer Service (ACS) URL | Single sign-on URL, Reply URL, ACS URL, Recipient / Destination URL |
| Metadata URL | SP metadata URL (for identity providers that import service provider metadata) |
Expand Use service-provider metadata instead for the Metadata URL and Download metadata. The download saves the same metadata as an XML file, for identity providers that take an upload. The URLs contain your connection's own id and are shown on the Single sign-on page; copy them from there exactly.
What to bring back
Under 2. Connect your provider, start with Import provider metadata:
- Upload file: choose Upload .xml to select the metadata file from your identity provider. The console reads it automatically.
- Paste XML: paste the metadata XML, then press Read metadata.
After a successful read, Metadata imported shows the issuer, sign-in URL and number of certificate slots filled. The import replaces those provider fields with values from the XML, including up to two signing certificates; attribute mappings and Sign authentication requests stay as you entered them. Review the fields before saving. The console does not download metadata from a URL: save the file and upload it. Files up to 512 KB are accepted.
Pasting XML does not apply it until Read metadata succeeds. A file still being read, a failed import or XML changed since the last successful read counts as pending, even if the summary still shows earlier provider details. While pending, the console blocks Save and continue, Continue, Save provider settings, test sign-in and enabling SSO. Fix and read the XML, upload a valid file, or press Discard XML once the read finishes.
Discard XML restores the XML text to the last successfully read version and clears the import error. It does not undo provider fields already imported or manually edited. Those fields still need saving if they differ from the saved connection. Changing between Upload file and Paste XML, or visiting another setup step, does not discard pending XML.
If metadata is unavailable or needs adjustment, expand Enter provider details manually for IdP entity ID (Issuer) and IdP single sign-on URL (the HTTP-Redirect binding's URL, https). Open Advanced: certificates, attributes & request signing for the Signing certificate (PEM, from -----BEGIN CERTIFICATE----- to -----END CERTIFICATE-----), a second certificate, attribute mapping and signed requests.
Press Save and continue during setup, or Save provider settings when managing an active or disabled connection. Importing metadata alone never saves the connection. A failed save keeps your entries and opens any section containing field errors; setup advances only after a successful save. If saved provider settings are unchanged and no XML is pending, setup offers Continue. Then verify your domains and test and activate.
Requirements
What the console expects of the identity provider. The major identity providers do all of this by default, except where the steps below say otherwise.
- Signed assertions. The assertion must be signed with a pinned certificate. Signing only the outer response is not enough. A signed response is accepted when the assertion inside is signed too.
- SHA-256 or stronger. Signatures must use RSA or ECDSA with SHA-256, SHA-384 or SHA-512 (RSA-SHA256 is the current default of identity providers), and digests SHA-256, SHA-384 or SHA-512. A response signed or digested with SHA-1 is refused (code
invalid_signature): switch the identity provider's signing algorithm to SHA-256. - HTTP-Redirect for the request, HTTP-POST for the response. The console sends its sign-in request with the HTTP-Redirect binding; the identity provider posts its response to the ACS URL. Metadata that offers only HTTP-POST for sign-in is refused.
- Destination and Recipient. The response's
Destinationand the assertion's bearerRecipientmust both be the ACS URL. - An email address. Either as the NameID (format
emailAddress, orunspecifiedholding an email address), or in an attribute you name as the Email attribute. With any other NameID format (persistent, transient), map an Email attribute. - Timing. The assertion must carry a validity period. The console allows 2 minutes of clock difference and accepts an assertion for at most 5 minutes after it was issued.
- App tiles work. A member who opens the console from the identity provider's app menu (IdP-initiated sign-in) lands on the console sign-in page and confirms with one click; the console then starts its own sign-in. No extra setting is needed, and a "default RelayState" at the identity provider is not needed (leave it empty). See Signing in from your identity provider's app menu.
- Not supported: encrypted assertions and single logout.
The identity provider only has to be reachable from your members' browsers; the console never contacts it directly.
Attribute mapping
Open Advanced: certificates, attributes & request signing under 2. Connect your provider.
| Console field | When empty |
|---|---|
| Email attribute | The email is read from the NameID. |
| First name attribute | givenName, firstName, first_name, given_name, urn:oid:2.5.4.42 or http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname, the first one sent. |
| Last name attribute | sn, surname, lastName, last_name, family_name, familyName, urn:oid:2.5.4.4 or http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname, the first one sent. |
Names are only used for new accounts (just-in-time). Attribute names must match exactly what the identity provider sends: run a test sign-in and expand Test details and claims.
Certificate rotation
Identity providers sign with a certificate that expires (often after one to five years). In Provider → 2. Connect your provider, open Advanced: certificates, attributes & request signing. The console can pin two, so a rotation needs no outage:
- When your identity provider has created its next certificate, paste it into the free certificate slot (Second certificate (optional)) and press Save provider settings. Sign-ins signed with either pinned certificate are accepted.
- Switch the identity provider to the new certificate.
- Run a test sign-in.
- Remove the old certificate, press Save provider settings and run a test sign-in again.
This works with Require SSO saved too. Advanced: certificates, attributes & request signing opens by default in that mode. Only the certificate slots are editable; the issuer, sign-in URL, attribute mappings and request-signing switch are read-only. Importing metadata replaces only the certificate slots, so check that the imported set still includes a tested certificate before saving. A refused rotation opens the advanced section and shows the reason above the certificate slots.
The last test sign-in must have succeeded, and at least one certificate pinned at that test must remain pinned. Add the new certificate alongside the tested one, then follow the switch-and-test order above before removing the old one. The test result records the certificates pinned at the time, not which one signed the answer; testing before the identity provider switches does not prove the new certificate works. For other provider changes, first select Member access → Offer SSO and save with Save member access (active) or Save draft (draft or disabled). The read-only restriction follows the saved Require SSO setting even when the connection is disabled (see The test sign-in).
Saving warns when a pinned certificate expires within 30 days; sign-ins signed with an expired certificate are refused.
Signed authentication requests
Under Advanced: certificates, attributes & request signing, leave Sign authentication requests off unless your identity provider requires signed AuthnRequests. Turning it on needs a signing key on the console server; when the server has none, saving says so (contact P Foundation support). With it on, the console's metadata carries its signing certificate: import the metadata again at your identity provider after turning it on.
Okta
- In the Okta Admin Console, go to Applications → Applications and press Create App Integration. Choose SAML 2.0.
- Name the app PF Console and upload the logo from the console’s Application branding → Download logo.
- Under Configure SAML:
- Single sign-on URL: the console's ACS URL. Keep Use this for Recipient URL and Destination URL checked.
- Audience URI (SP Entity ID): the console's Entity ID.
- Name ID format: EmailAddress; Application username: Email.
- Optionally add attribute statements
firstName→user.firstNameandlastName→user.lastName.
- Finish the wizard. Okta signs the assertion by default.
- On the app's Sign On tab, open the SAML metadata and save it as an XML file. Import it in the console.
- On the Assignments tab, assign the people or groups who may sign in.
- The app's tile on your users' Okta dashboard opens the console sign-in page, where one click signs them in. To offer only the console's own sign-in page instead, hide the tile (in the app's settings, Do not display application icon to users).
Microsoft Entra ID
Choose Microsoft Entra ID → Advanced connection options → SAML 2.0 before creating the console connection. The provider card otherwise recommends OpenID Connect.
- In the Microsoft Entra admin center, open Enterprise applications, press New application, then Create your own application. Choose the option for an application you don't find in the gallery (non-gallery).
- In the new application, open Single sign-on and choose SAML.
- Under Basic SAML Configuration, press Edit:
- Identifier (Entity ID): the console's Entity ID.
- Reply URL (Assertion Consumer Service URL): the console's ACS URL.
- Under Attributes & Claims, check that the email claim
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress(sourceuser.mail) is there. In the console, expand Advanced: certificates, attributes & request signing and set Email attribute to that name: the default Name ID is the user principal name, which is not always the email address. - Under SAML Certificates, download Federation Metadata XML and import it in the console. Entra ID signs the assertion by default (signing option Sign SAML assertion).
- Under Users and groups, assign the people or groups who may sign in.
- The application's tile in My Apps opens the console sign-in page, where one click signs users in. To hide it, set Visible to users? to No under Properties.
The first and last names arrive in the givenname and surname claims, which the console reads by default.
Google Workspace
- In the Google Admin console, go to Apps → Web and mobile apps, then Add app → Add custom SAML app. Enter a name and press Continue.
- On Google Identity Provider details, press Download metadata and import the file in the console. Press Continue.
- On Service provider details:
- ACS URL: the console's ACS URL.
- Entity ID: the console's Entity ID.
- Leave Signed response unchecked: unchecked, Google signs the assertion, which the console requires.
- Name ID format: EMAIL; Name ID: Basic Information → Primary email.
- Under Attribute mapping, optionally map First name to
firstNameand Last name tolastName. - After saving, open the app's User access and turn it ON for everyone or for the organizational units who may sign in. Changes can take some time to apply at Google.
- The app then appears in your users' Google apps menu; opening it there (or Test SAML login in the Admin console) opens the console sign-in page, where one click signs them in.
Other identity providers
Use the values under What to copy from the console and check the Requirements. If your identity provider imports service provider metadata, give it the Metadata URL or the downloaded file.
Test and activate
For a draft connection:
- Resolve any pending XML, then press Save and continue under 2. Connect your provider, or Continue if the saved settings are unchanged.
- In Verify email domain, add your domain, publish the TXT record and press Check verification (see Domain verification). While DNS is pending, Continue to test lets you check the provider first.
- Under Test sign-in, press Run test sign-in and sign in at your identity provider. Check Signed in as and expand Test details and claims when present. If the test is blocked, use Go to provider settings or Go to member access, save the changes there, then return. Save draft saves edited member access without enabling SSO.
- Choose Review setup. On Review and enable, finish domain verification and confirm the current settings passed a test. Under Member access, leave Offer SSO selected for an optional rollout, then press Enable single sign-on. Enabling needs at least one verified domain, a current passing test and no unsaved provider edits.
- When everything works, consider Member access → Require SSO and Save member access (see Optional or required).
For an active or disabled connection, save changes with Provider → Save provider settings, then open Test sign-in. An active connection stays active; retest after each provider change. A disabled connection stays disabled until you choose Review setup from the test pane (or Overview → Review and enable) and press Enable single sign-on. Edited member access can be kept with Save draft while it remains disabled.
When a test fails, its reason matches the codes in Troubleshooting. Saved progress resumes when you return; unsaved form entries and pending XML are kept only while the Single sign-on page remains open. Provider-specific guidance is local to your browser, so another browser may show generic SAML guidance for the same saved connection.
