Set up single sign-on with Microsoft Entra ID

Modified on Mon, 17 Aug at 3:08 PM

IT adminsHOW-TO
It-Admin

How to let your staff sign in to GeoCivix with their existing Microsoft credentials instead of a separate GeoCivix password.

On this page
  • How it works
  • Set up the application in Entra
  • Configure GeoCivix
  • Turn on SSO for each person
  • Test it

Microsoft renamed Azure Active Directory to Microsoft Entra ID in 2023, and moved it to its own admin center. If you are looking for the Azure AD instructions, these are them.

Before you start
You need an administrator account in your Microsoft Entra tenant and a site administrator account in GeoCivix. You will move between the two, so have both open.
In short
users always start at the GeoCivix sign-in page, never from the Microsoft My Apps tile.
01
How it works

GeoCivix is a SAML 2.0 service provider. The user enters their email address on the GeoCivix sign-in page. If their subscription is set to SAML, GeoCivix builds a signed authentication request and sends the browser to Entra. Entra authenticates the person and posts the response back to GeoCivix, which matches the email in that response to the contact on record and signs them in.

Caution
Sign-in only works when it starts at GeoCivix. Clicking the GeoCivix tile in the Microsoft My Apps portal will not sign anyone in, because GeoCivix only accepts a response that answers a request it issued itself.
02
Set up the application in Entra
1
In the Microsoft Entra admin center, go to Enterprise apps, then New application, then Create your own application.
2
Choose Integrate any other application you don't find in the gallery (Non-gallery), name it GeoCivix, and select Create.
Creating a non-gallery application in the Microsoft Entra admin center
Enterprise apps, then New application, then Create your own application. Pick the non-gallery option and name it GeoCivix.
3
Open the application and go to Single sign-on, then choose SAML.
4
In Basic SAML Configuration, set these two values, replacing <portal> with your own portal address:
FieldValue
Identifier (Entity ID)https://<portal>.geocivix.com/sso/saml/metadata/
Reply URL (Assertion Consumer Service URL)https://<portal>.geocivix.com/sso/saml/acs/

Or skip the typing. GeoCivix publishes signed service provider metadata at https://<portal>.geocivix.com/sso/saml/metadata/. Use Upload metadata file and both values are filled in for you.

The Basic SAML Configuration panel with the Identifier and Reply URL set
These two values are the only ones you set here. Attributes and Claims below them stay on the Entra defaults.
5
Leave Attributes and Claims alone. The Entra defaults are already correct: GeoCivix reads the email address claim, which Entra maps to the user's mail attribute by default. Leave the NameID default alone too.
6
From SAML Certificates and Set up GeoCivix, collect four things for the next section:
What to collectLooks like
Login URLhttps://login.microsoftonline.com/<tenant-id>/saml2
Microsoft Entra Identifierhttps://sts.windows.net/<tenant-id>/
Certificate (Base64)download the file
App Federation Metadata URLa login.microsoftonline.com address
The SAML Certificates and Set up GeoCivix sections
SAML Certificates holds the certificate and the App Federation Metadata URL. Set up GeoCivix below it holds the Login URL and the Microsoft Entra Identifier.
7
Under Users and groups, assign the people or groups who will sign in this way.
Assigning a user to the GeoCivix application in Entra
Nobody can sign in until they appear on this list.

You do not need to upload a verification certificate. GeoCivix signs its requests, but Entra ignores request signatures unless you add one, so there is nothing to do here.

03
Configure GeoCivix

Sign in to GeoCivix as a site administrator, select Site > Site Configuration, and expand the Site Configuration section. In the Single Sign On block, set the following.

FieldValue
Enable SSOYes
GeoCivix Entity IDhttps://<portal>.geocivix.com/sso/saml/metadata/ — the prefilled default. It must match the Identifier you set in Entra exactly.
GeoCivix Reply URL/sso/saml/acs/ — the prefilled default
IdP Login URLthe Login URL you collected from Entra
IdP Entity IDthe Microsoft Entra Identifier you collected
IdP Signing Certificatethe contents of the Base64 certificate. Paste the certificate value only, with no BEGIN or END lines. Several certificates can be pinned at once, separated by a pipe character.
Strict IdP ValidationYes. This enforces the certificate and issuer you pinned rather than trusting whatever certificate arrives in the response.
IdP Metadata URLthe App Federation Metadata URL

The metadata URL is optional, and worth filling in anyway. A scheduled job reads it and re-pins the certificate automatically when Microsoft rotates it, so sign-in keeps working through a certificate rollover with nobody having to do anything. Leave it blank and someone has to notice and paste a new certificate before the old one expires.

The Single Sign On block on the GeoCivix site configuration page
The two GeoCivix values are prefilled. Everything below them comes from Entra.
04
Turn on SSO for each person

Single sign-on is set per subscription, not for the whole portal, so you can have some people signing in with Microsoft and others with a password.

  1. Check that the person's GeoCivix contact email matches their Entra email. The comparison ignores capitals but is otherwise exact.
  2. Select Site > Users and search for them, then select their name in the results.
  3. Expand Subscriptions and select their subscription to your portal.
  4. Change Login Method to SAML and submit.
The Login Method field on a user
Login Method sits on the subscription, so one portal can mix Microsoft sign-in and passwords.

The default is Website, which means a password.

05
Test it
  1. Go to your portal and select Sign In. Sign out first if you are already signed in.
  2. Enter the email address of somebody you have set to SAML.
  3. You are sent to Microsoft to authenticate. If you are already signed in to Microsoft you may pass straight through.
  4. You are returned to your portal, signed in.

If it does not work, contact GeoCivix support.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article