The whole path
The 6 words you will see
Step by step
Seven steps. Start with staging; production comes at the end.Find who administers your company's login
Register SalesOS in your company's login
- Create an application of type Web (sometimes called “confidential”).
- In the redirect URI, copy and paste exactly:
https://auth-staging.play2sell.com/login/callback - Allow the
openid,profileandemailpermissions, and save.
Say who may sign in
Write down four details
- The configuration URL, ending in
/.well-known/openid-configuration. - The client ID.
- The client secret, kept in the password vault.
- Which field identifies the person: the CPF (Brazilian tax ID), if the system has it; otherwise, the system’s own id (see The stable identifier).
Send them to Play2sell
Test with an ordinary user
Repeat for production and share the link
https://auth.play2sell.com/login/callback. After Play2sell confirms, post the link on the intranet, the portal or in an email to the team.Done when: the team has the production link.The 3 most common errors
Almost every problem is one of these three, and all of them are fixed in your company’s login.Need help?
Talk to your Play2sell contact and send four things:- the time of the attempt, with time zone;
- the email of the person who tried to sign in;
- the environment: staging or production;
- a screenshot of the error screen.
What your provider needs
- Microsoft 365 (Entra ID): no extra cost. Assigning people one by one works on the free tier; only group assignment requires Entra ID P1 or P2.
- Google Workspace: no extra cost. Registering the application in Google Cloud is free of charge.
- Keycloak: open source, no license. The only cost is the server it runs on.
- Okta, JumpCloud or Auth0: nothing beyond the subscription your company already pays.
- No identity provider: SSO is not needed. The team signs in with the regular SalesOS login.
email_verified field is not required: people who already have a SalesOS account confirm they own the email through a link from us (see Who gets in and who is refused).
client_secret_post and client_secret_basic.The stable identifier
It is the field that says who the person is from one sign-in to the next. It must not change when the user changes email. The choice is made once, before production; changing it later must be agreed with Play2sell.- The field must carry 11 digits (CPF) or 14 (CNPJ), with or without formatting. With any other length, or empty, sign-in is refused.
- Keep the document correct in the provider’s records: the person is recognized by the document and, when it does not identify anyone, by email.
https://yourcompany.com/cpf) and nested fields (e.g. dados.cpf) are accepted.
Examples by provider
Menu paths change over time; when in doubt, the provider’s documentation wins (see References).Microsoft Entra ID
Microsoft Entra ID
- In App registrations › New registration, create the application as single tenant. The client ID is on Overview.
- In Authentication › Add a platform › Web, register the redirect URI.
- In Certificates & secrets › New client secret, create the secret. Microsoft caps it at 24 months and recommends less than 12. The value is shown only once.
- In Enterprise applications, turn on Assignment required and assign users or groups. Group assignment requires Entra ID P1 or P2, and nested groups do not count.
- A Global Administrator gets in even without being assigned. Test with an ordinary user.
subis different for each application. Recreating the production application changes every user’s id: tell Play2sell first.- Entra’s userinfo returns only
sub,name,family_name,given_name,pictureandemail, and cannot be customized. A CPF stored in another attribute does not come through it. - Check that the test user’s email is filled in on Entra and appears in userinfo.
Okta
Okta
- In Applications › Create App Integration, choose OIDC and Web Application.
- Register the redirect URI in Sign-in redirect URIs.
- In Client authentication, use client secret and check PKCE.
- In Assignments, choose Limit access to selected groups. The default Everyone opens it to the whole company.
Keycloak
Keycloak
- In Clients › Create client, choose OpenID Connect and turn on Client authentication (confidential client).
- Register the redirect URI in Valid Redirect URIs.
- In PKCE method, choose S256.
- Copy the secret from the Credentials tab.
Google Workspace
Google Workspace
- In Google Cloud, create an OAuth client of type Web application and register the redirect URI.
- Set the consent screen to Internal: only accounts in your organization get in.
- Save the secret right away: Google shows the full value only once.
Other providers
Other providers
What to send us
One block per environment. The client secret goes separately, through the secure channel; everything else may go by email.issuer must be identical to the URL used. Every URL must be https and reachable from the internet.
Sample userinfo response
A userinfo call with the test user’s access token should return something like:cpf, email and name; with the provider id, sub, email and name.
Entry link
https://app.play2sell.com/login/sso?connection=construtora-x&next=%2Fcampanha
After the first sign-in through the link, the SalesOS sign-in screen in that browser shows the Entrar pelo login da sua empresa button (“sign in with your company’s login”). On a phone, the link opens in the browser.
What happens when the user opens the link
Staging tests
Production is only switched on after the first four tests pass. Use the staging link and the non-administrator test user.Who gets in and who is refused
Signing in through your company’s provider only opens accounts in your company. The company and role come from the configuration agreed with Play2sell, never from data sent by the browser.- A new person comes in already tied to your company, with the agreed default role. Role changes are made later, in SalesOS.
- People who already use SalesOS at your company are recognized on the first sign-in by document or email and go straight into the account they already had.
- People with an account only at another company get a single-use link at the primary email on their account. After the click, they also get into your company, with the default role, without leaving the others; from the second sign-in on, they go straight in. The confirmation exists because the email a provider sends does not, on its own, prove who owns the account.
Limits for your IT team
After go-live
When someone leaves the company
- Deactivate the person in your provider. Their next sign-in is refused by it.
- Ask their manager in SalesOS to deactivate the access. From then on, further sign-ins are refused by any path, regardless of the provider.
Client secret rotation
Each environment’s secret goes straight to our authentication service; it is not stored in the SalesOS database and never shows up on any screen. When it expires, nobody in your company can sign in.- About 30 days before expiry, create a new secret without deleting the current one.
- Send the new one through the secure channel, with the agreed switch date.
- After our confirmation, do a test sign-in.
- Only then delete the old secret in the provider.
Changes in the provider
Tell Play2sell before changing the provider’s domain, the client ID, the scopes or the profile field names. Any of these changes the configuration on our side.Troubleshooting
Most failures show up at your provider, before SalesOS is called.Security
The design follows current OAuth 2.0 (RFC 9700) and OpenID Connect recommendations. The other half of security lives in your provider.What SalesOS guarantees
What we recommend to your IT team
- Mandatory assignment. Release the application only to the groups that use SalesOS, never to the whole company.
- An identifier that does not change. Under the OpenID Connect specification, only
sub(with the issuer) is guaranteed to be stable. Email and username can change or be reused. - Short-lived secret. Microsoft recommends less than 12 months. Rotate with overlap: the new one goes in before the old one goes out.
- One application per environment. Staging and production with separate clients and secrets.
- Test with an ordinary user. Administrators often bypass assignment and hide failures.
- Offboarding on both sides. SalesOS creates the record on the first sign-in and does not receive automatic user provisioning (SCIM). People who leave must be deactivated in the provider and in SalesOS (see After go-live).
FAQ
Will users need a SalesOS password?
Will users need a SalesOS password?
Do current SalesOS users lose anything?
Do current SalesOS users lose anything?
Does it work on mobile?
Does it work on mobile?
Does SalesOS see the password?
Does SalesOS see the password?
What about the second factor (MFA)?
What about the second factor (MFA)?
Who sets each person's role?
Who sets each person's role?
Do we need to sync the user list?
Do we need to sync the user list?
When someone leaves, is access cut immediately?
When someone leaves, is access cut immediately?
What happens if the client secret expires?
What happens if the client secret expires?
References
Official documentation consulted in November 2026.- OpenID Connect Core 1.0 — stable identifier,
email_verified, userinfo - RFC 9700 — OAuth 2.0 security best current practice: PKCE, exact redirect URI, client authentication
- Microsoft: OpenID Connect · register an application · credentials (secret and certificate) · userinfo · token claims · assign users and groups · AADSTS50105 · error codes
- Okta: OIDC integration · authorization servers · client secret rotation
- Keycloak: server administration guide
- Google: OpenID Connect · OAuth clients · Internal and External user types · web server flow and errors
- JumpCloud: SSO with OIDC
- Auth0: OIDC discovery · login flow and Actions
Next steps
Campaigns API
access.login_url)
