Set up single sign-on with Microsoft or Google
How to ask for single sign-on, what IT creates in Azure or Google Cloud, the setup email and page, each field, the redirect URI, and the User.Read consent Microsoft needs.
Single sign-on (SSO) lets employees sign in to CLVR with their Microsoft or Google work account. Setting it up has two parts. CLVR sends your IT contact a secure setup link. IT then enters the details on that page. Your HR team never handles any credentials.
Ask for single sign-on
You can't turn on single sign-on in the webapp. Who starts it depends on where your company is:
- Your company is live on CLVR: ask CLVR. CLVR sets it up and sends the link to your IT contact.
- Your company is still being set up: do it in the Sign-in step of your onboarding. Enter your IT contact's email and your email domain, then select Send setup link.
Either way, have these ready:
- Your email domain, for example
company.com. Only the domain: no@and no name. - The email address of your IT contact, who will do the setup in Azure or Google Cloud.
- Which provider you use: Microsoft or Google. A company can have both.
What happens next
If the link expires or gets lost, ask CLVR for a new one.
What IT does in Azure (Microsoft)
The setup page shows these steps next to the form. Share them with IT ahead of time so they can be ready.
IT needs an account in Azure that can create app registrations and approve them for the whole organisation. Check this before they start, so they don't get stuck halfway.
A short brief you can send IT: "Create an app registration in Microsoft Entra ID for CLVR. Add the redirect URI from the setup page. Add the Microsoft Graph delegated permission User.Read and select Grant admin consent. Create a client secret. Paste the Application (client) ID, Directory (tenant) ID and the secret Value into the CLVR form."
What IT does in Google Cloud (Google)
The Google steps are shorter. IT works in Google Cloud Console:
https://app.clvrbenefits.com/api/auth/oauth/google/callback.Google has no tenant ID and no consent step. Google client secrets don't expire, so there is nothing to renew. IT needs an account that can create projects and OAuth clients in your Workspace.
The setup email IT gets
The email comes from CLVR Benefits and goes straight to your IT contact. It is in Swedish. The subject is:
| Provider | Subject |
|---|---|
| Microsoft | Microsoft OAuth-konfiguration för [your company] |
| Google-inloggning (SSO) för [your company] |
The email says CLVR needs the app details to turn on sign-in, that this is a secure link that expires in 7 days, and that the steps are on the page. It has one button, Ange uppgifter (Enter credentials). Under it, the full link is printed in case the button doesn't work. There is no attachment.
The link goes to an address on clvrbenefits.com. IT can check it before they click. Tell IT to use the whole link, because it contains a one-time setup code.
The setup page
The link opens a page where IT enters the details. IT doesn't need a CLVR account. The page opens in Swedish. IT can switch it to English with the language picker. In English, the page is titled Microsoft OAuth setup or Google sign-in setup.
- On the left: a How we handle your data box and the form. The box says the details are stored securely, used only for single sign-on and never shared. It links to the Privacy Policy and Trust Center.
- On the right: Setup instructions, the steps above, with the redirect URI ready to copy.
When IT selects Save and enable, the page shows Setup complete. Saving also does this:
- The link is marked as used, so it can't be opened again.
- Every other unused setup link for the same provider stops working, also one IT has opened.
The fields on the form
All fields are required. If one is empty, saving says "Fill in every field, then select Save and enable."
| Field | Provider | What it is | Where IT finds it |
|---|---|---|---|
| Email domain | Both | The part of the email after @, such as company.com | Usually filled in and locked. If not, type it without @. |
| Application (client) ID | Microsoft | The ID of the app registration | The app registration's Overview page |
| Directory (tenant) ID | Microsoft | The ID of your Microsoft directory | The same Overview page, under the client ID |
| Client ID | The ID of the OAuth client | Shown when the client is created, and on Credentials. It ends in .apps.googleusercontent.com. | |
| Client secret | Both | The app's password | Microsoft: the Value column in Certificates & secrets. Google: shown when the client is created. |
The client and tenant IDs look like xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. They are IDs, not passwords. The client secret is hidden as IT types it.
For Microsoft, copy the secret's Value, not its Secret ID. Azure shows the Value only once, right after the secret is created. If IT misses it, they create a new secret.
The redirect URI
The redirect URI is the address Microsoft or Google sends employees back to after they sign in. IT registers it in Azure or Google Cloud. It isn't typed into the CLVR form. It is the same for every company:
| Provider | Redirect URI |
|---|---|
| Microsoft | https://app.clvrbenefits.com/api/auth/oauth/microsoft/callback |
https://app.clvrbenefits.com/api/auth/oauth/google/callback |
It has to match exactly, character for character. If it doesn't, Microsoft or Google refuses the sign-in and the employee never gets back to CLVR. Common mistakes:
- http instead of https;
- a missing or changed part at the end;
- a slash added at the end;
- a typo or a space.
The setup page shows the redirect URI ready to copy. Copy it from there.
The User.Read permission (Microsoft)
Microsoft sign-in needs one permission: the Microsoft Graph delegated permission User.Read. CLVR uses it to read the signed-in person's work email and name, to find them in CLVR. CLVR doesn't read mail, calendars, files or your directory. The name in CLVR comes from your HR records, not from Microsoft.
Adding the permission isn't enough. Someone who can approve apps for your organisation must select Grant admin consent for Your Company on the API permissions page, once, for everyone. Until the Status column shows Granted for Your Company, sign-in can't finish. Employees are never asked to approve anything themselves.
Without consent, an employee selects Continue with Microsoft, signs in at Microsoft, and then lands on an error in CLVR instead of their dashboard.
What employees see once it's live
An employee on your domain enters their work email on the sign-in page. CLVR then shows Sign in with your work account and a Continue with Microsoft or Continue with Google button. Nobody has to switch anything on. CLVR knows from the email domain. See Check that single sign-on works.
Troubleshooting
- The page says "Invalid or expired link". Links work for 7 days and only once. When IT saves through one link, the other unused links for that provider stop working. Ask CLVR to send a new link.
- IT isn't sure the email is real. Check that it comes from CLVR Benefits, that the subject matches the table above, and that the only button leads to a clvrbenefits.com page. You or CLVR can confirm it.
- The button in the email does nothing. Copy the full link under the button into the browser, in one piece.
- IT never got the email. Check spam and quarantine. Check with CLVR that the IT address was right.
- IT lacks the right access. Creating the app registration and granting consent need extra rights in Azure. Bring in whoever runs your Microsoft tenant.
- IT can't edit Email domain. That's expected when the domain is on the link. If it's wrong, ask CLVR for a new link.
- Saving says the domain is already used for sign-in by another company. Each domain belongs to one company in CLVR. Ask CLVR for a link with your own domain.
- Saving refuses the tenant ID. Use your own Directory (tenant) ID from the Overview page. Shared values such as
commonororganizationsaren't accepted. - IT can't see the secret Value any more. Azure shows it only once. Create a new client secret and use its Value.
- Sign-in fails, but the form saved. Usually the client secret is wrong. Check that IT copied the Value, not the Secret ID, and that it hasn't expired. If in doubt, IT creates a new secret and CLVR sends a new link.
- Microsoft shows a reply URL or redirect error. The redirect URI doesn't match. Copy it again from the setup page and compare it with Azure, letter by letter. If none is listed, add it as a Web platform under Authentication.
- Employees reach Microsoft but end on an error in CLVR. Check that User.Read is listed under API permissions and its Status shows Granted for Your Company. If Grant admin consent for Your Company is greyed out, the person lacks the rights. Ask someone who can approve apps for your organisation.
- Some employees still get a sign-in link. Single sign-on covers one email domain per provider. Employees on another domain keep their usual way to sign in.