Skip to content

Set up single sign-on with Microsoft or Google

Single sign-on setup 9 min readUpdated a month ago

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

1
CLVR emails a setup link straight to your IT contact. The link works for 7 days and can be used once.
2
IT opens the link and follows the instructions on the page. For Microsoft, they create an app registration in Azure and enter three values. For Google, they create an OAuth client and enter two.
3
When IT selects Save and enable, single sign-on turns on for everyone on your domain at once. There is nothing more for HR to do.

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.

1
Create an app registration. Go to Microsoft Entra ID, then App registrations, then New registration. Give it a clear name, such as "CLVR Benefits - Your Company". Set Supported account types to Accounts in this organizational directory only.
2
Add the redirect URI. Under Authentication, select Add a platform, then Web. Add the redirect URI from the setup page.
3
Add the Microsoft Graph permission. Under API permissions, select Add a permission, Microsoft Graph, Delegated permissions. Find User.Read and add it. Then select Grant admin consent for Your Company on the same page (Microsoft puts your organisation's name at the end).
4
Create a client secret. Under Certificates & secrets, select New client secret. Copy the Value, not the Secret ID. Azure shows it only once.
5
Fill in the form. Enter the three values and select Save and enable.

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:

1
Pick or create a project that belongs to your Workspace organisation, not to a personal account.
2
Under APIs & Services, open OAuth consent screen. Set the user type to Internal. Only accounts in your Workspace can then sign in, and Google doesn't need to review the app. Leave the default scopes.
3
Under Credentials, create an OAuth client ID of type Web application. Under Authorised redirect URIs, add https://app.clvrbenefits.com/api/auth/oauth/google/callback.
4
Copy the Client ID and Client secret into the CLVR form and select Save and enable.

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:

ProviderSubject
MicrosoftMicrosoft OAuth-konfiguration för [your company]
GoogleGoogle-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.

Tip.

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."

FieldProviderWhat it isWhere IT finds it
Email domainBothThe part of the email after @, such as company.comUsually filled in and locked. If not, type it without @.
Application (client) IDMicrosoftThe ID of the app registrationThe app registration's Overview page
Directory (tenant) IDMicrosoftThe ID of your Microsoft directoryThe same Overview page, under the client ID
Client IDGoogleThe ID of the OAuth clientShown when the client is created, and on Credentials. It ends in .apps.googleusercontent.com.
Client secretBothThe app's passwordMicrosoft: 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.

Heads up.

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:

ProviderRedirect URI
Microsofthttps://app.clvrbenefits.com/api/auth/oauth/microsoft/callback
Googlehttps://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 common or organizations aren'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.

A demo with your numbers

We show you the product and work out what your company would save. If CLVR is not right for you, we will say so.

  1. You send the formIt takes a minute.
  2. We email youWithin one business day, to pick a time.
  3. A 30-minute demoWith one of the founders, on your numbers.

Book a demo

How many employees?

By sending this form you agree to our Privacy Policy and Terms of Service.