Set up single sign-on with OIDC or SAML
Single sign-on lets your team sign in to ProductEnv through your identity provider, with OpenID Connect or SAML 2.0. It is part of the Business plan, and only the organization owner can set it up. The setup takes four steps on one page: connect the provider, fill in its settings, verify your email domains, then test and turn it on.
آخر تحديث
هذه الصفحة متوفرة بالإنجليزية حاليًا.
- Your organization is on the Business plan (or a custom plan). The free trial counts as Business, so you can set SSO up while you try it.
- You are the organization owner. Admins and members don't see the Single sign-on tab.
- You can add a DNS TXT record to each email domain your team uses (for example
example.com). - You can create an application in your identity provider: Okta, Microsoft Entra ID, Google Workspace, or any provider that speaks OpenID Connect or SAML 2.0.
Open the dashboard, then Organization settings and the Single sign-on tab. On another plan the tab shows an upgrade notice and the form stays read-only.
Under 1. Connect your identity provider, choose OpenID Connect or SAML 2.0. ProductEnv then shows the values to copy into the application you create in your provider. Copy them from the dashboard: the table shows what each one looks like.
| Field in ProductEnv | Protocol | Looks like | Where it goes in your provider |
|---|---|---|---|
| Redirect URI | OIDC | https://api.product-env.com/v1/auth/sso/oidc/callback | Sign-in redirect URI (Okta), Redirect URI of a Web platform (Entra ID) |
| ACS URL | SAML | https://api.product-env.com/v1/auth/sso/saml/acs | Single sign-on URL / Assertion Consumer Service URL (HTTP-POST) |
| Entity ID (audience) | SAML | https://api.product-env.com/v1/auth/sso/saml/metadata/<organization id> | Audience URI / SP Entity ID / Identifier |
| SP metadata URL | SAML | The same URL as the entity ID | Providers that import service provider metadata can read everything from it |
Email is the only attribute that matters
ProductEnv identifies people by email address. With OIDC it asks for the openid email profile scopes. With SAML, send the email as the NameID (format emailAddress) or as an email or mail attribute; first and last names are used when present.
Under 2. Identity provider settings, paste what your provider shows for its application, then choose Save settings.
| Protocol | Field | What to paste |
|---|---|---|
| OIDC | Issuer URL | The provider's issuer, an https:// URL (ProductEnv reads its /.well-known/openid-configuration) |
| OIDC | Client ID | The application's client ID |
| OIDC | Client secret | The application's client secret, stored encrypted and never shown again |
| SAML | IdP sign-in URL | The provider's SAML single sign-on URL, an https:// URL |
| SAML | IdP issuer (entity ID) | The provider's issuer or entity ID |
| SAML | IdP signing certificate | The X.509 certificate in PEM, starting with -----BEGIN CERTIFICATE----- |
| Both | Email domains | One domain per line, up to 20 (for example example.com) |
| Both | Role of new members | Member (joins without project access) or Admin (can also manage people and invitations) |
- OIDC sign-ins use the authorization code flow with PKCE, and the ID token must be signed with an asymmetric algorithm (RS, PS or ES). An ID token whose
email_verifiedis false is refused. - SAML assertions must be signed. Sign-in always starts from ProductEnv: starting from the provider's app dashboard (IdP-initiated sign-in) isn't supported.
- To keep the client secret, leave the field empty when you save again.
Under 3. Verify your domains, choose Copy TXT record and add it to the DNS of each domain you listed, on the domain itself (not a subdomain). The value looks like this:
example.com. TXT "productenv-verification=<token from the dashboard>"Then choose Check again. Each domain shows Verified or Waiting for DNS; DNS changes can take a few minutes. A domain can be verified by only one ProductEnv organization.
Under 4. Test and turn on, choose Test sign-in first. ProductEnv sends you through your provider and shows Test sign-in worked with the email it received, or Test sign-in failed. A test creates nothing and keeps you signed in.
Then turn Single sign-on on. It needs complete settings and at least one verified domain. From then on, people with an email in a verified domain can choose Continue with SSO on the sign-in page and enter their work email.
Require single sign-on only after a test
Turning Require single sign-on on stops email links, Google, GitHub and passkeys for everyone in your verified domains. You, the owner, keep every sign-in method so you can turn it off if your provider breaks. People in those domains who are signed in without SSO are signed out at once and sign in again with SSO; sessions that already used SSO stay signed in.
- Someone without a ProductEnv account gets one, with the name your provider sends.
- They join the organization with the Role of new members you chose and no project access: a project owner or admin gives them access to projects. See members and roles.
- People who are already members keep their role.
- The organization's seat limit applies: when no seat is left, the sign-in is refused.
- ProductEnv two-factor authentication still applies after SSO for people who turned it on, and an unusual sign-in can still ask to confirm it's you.
To add and remove people from your provider automatically, set up SCIM provisioning.
- Moving from Business to Team turns Require single sign-on off and keeps your settings; upgrading again turns it back on. Moving to Free removes the requirement.
- Remove single sign-on deletes the settings and the SCIM token. Members go back to email links, Google, GitHub and passkeys.
- Removing a domain from your settings removes its verification. If no verified domain is left, single sign-on turns off.
Which identity providers work with ProductEnv SSO?
- Any provider that supports OpenID Connect or SAML 2.0 with signed assertions, including Okta, Microsoft Entra ID and Google Workspace. ProductEnv only needs the person's email address, plus their name when the provider sends it.
Can I get locked out if my identity provider is misconfigured?
- The organization owner keeps every sign-in method even when single sign-on is required, so the owner can always turn the requirement off. Run a test sign-in before requiring SSO.
Does SSO map groups to ProductEnv roles?
- No. New members get the role you choose under Role of new members and no project access. Project access is given in ProductEnv by a project owner or admin.
Can people start the sign-in from their identity provider's app dashboard?
- Not yet. Sign-in starts on the ProductEnv sign-in page with Continue with SSO, which sends people to your provider and back.