The Sightwell apps can sign people in with Microsoft Entra directly, instead of a browser page: on iPhone and iPad through Microsoft Authenticator or Microsoft's own sign-in sheet, and on a Mac in Microsoft's sign-in inside Sightwell's window. This page is for the administrators of a Sightwell organisation.
How it works
- The app gets an Entra ID token from Microsoft. Your Sightwell server's sign-in service exchanges it for a Sightwell session (OAuth 2.0 token exchange, RFC 8693). The app is a public client: there is no secret on the phone or the Mac.
- People keep the same Sightwell identity as with browser sign-in, so existing devices and permissions carry over.
- Microsoft does the sign-in, so your Entra multi-factor and conditional access policies apply.
- If this isn't set up, or fails, the app offers the browser sign-in.
Requirements
- Your Sightwell server uses its built-in sign-in service with a Microsoft Entra connector. You'll find it in the Sightwell dashboard under Settings › Identity Providers.
- Access to the Entra app registration that connector uses (Application Administrator or a similar role).
- On a Mac, Sightwell 2.0.4 or later.
- Nothing else changes on the server. The connector already supports token exchange.
1. Add the apps in Entra
- In the Microsoft Entra admin centre, open App registrations and choose the app registration the Sightwell connector uses.
- Open Authentication, then Add a platform › iOS / macOS.
- For iPhone and iPad, enter the bundle ID
ai.sightwell.connectivity.ios. - For the Mac, add a second entry on the same platform with the bundle ID
ai.sightwell.connectivity. - Under Advanced settings, set Allow public client flows to Yes, and save.
Entra creates the redirect URIs from each bundle ID:
- iPhone and iPad, bundle ID
ai.sightwell.connectivity.ios:msauth.ai.sightwell.connectivity.ios://auth, andmsauth://code/msauth.ai.sightwell.connectivity.ios%3A%2F%2Fauth, where Microsoft Authenticator returns. - Mac, bundle ID
ai.sightwell.connectivity:msauth.ai.sightwell.connectivity://auth.
Why public client flows. The apps hold no secret. With the setting off, Entra asks for a client secret on the app's token request and answers AADSTS7000218. The setting also lets this registration use the device code and resource owner password flows without a secret; conditional access still applies to them.
Optional: add a conditional access policy for this app that requires a compliant device.
The same change with the Azure CLI. The first option replaces the list of public client redirect URIs, so look at what the registration has first and keep any others:
az ad app show --id <application (client) ID> --query "publicClient.redirectUris"
az ad app update --id <application (client) ID> \
--public-client-redirect-uris \
"msauth.ai.sightwell.connectivity.ios://auth" \
"msauth://code/msauth.ai.sightwell.connectivity.ios%3A%2F%2Fauth" \
"msauth.ai.sightwell.connectivity://auth" \
--is-fallback-public-client true
2. Turn it on in the server settings
Note three values:
| Value | Where to find it |
|---|---|
| Directory (tenant) ID | Entra admin centre, the app registration's Overview |
| Application (client) ID | Same page |
| Connector ID | Sightwell dashboard, Settings › Identity Providers |
If someone else operates your Sightwell server, send them these values. If you run the Helm chart yourself, set them in your values file and run helm upgrade:
nativeSignIn:
entra:
enabled: true
tenantId: <directory (tenant) ID>
clientId: <application (client) ID>
connectorId: <connector ID>
The same three values serve the iPhone, iPad and Mac apps.
3. Check
curl -s https://sightwell.your-company.com/.well-known/sightwell-signin.json
The response contains the three values. They are public identifiers, not secrets.
4. What people see
- iPhone and iPad. The next time someone signs in, the app opens Microsoft Authenticator, or Microsoft's sign-in sheet when Authenticator isn't installed, instead of the browser page. If it fails, the app reads Microsoft sign-in failed and offers Use browser sign-in instead.
- Mac. Microsoft's sign-in opens inside Sightwell's window. On a Mac with Microsoft's Enterprise SSO extension (Company Portal, Platform SSO) there may be no page at all. Later connections first try to sign in without a window. If it fails, the app offers Sign in with the browser and Copy sign-in link. Each person can also choose Browser for a profile under Settings › Sign-in.
- If the file from step 3 is missing, both apps sign in through the browser as before.
What people do is on Get started and Sightwell for Mac.
If it fails
Browser sign-in keeps working in each case below. Entra's sign-in logs (Entra admin centre, Monitoring › Sign-in logs, filtered by the application ID) show each attempt.
| Message | Cause | Fix |
|---|---|---|
AADSTS7000218 | The registration doesn't allow public client flows. | Set Allow public client flows to Yes (step 1). |
AADSTS50011, redirect URI mismatch | The redirect URI of that app is missing. | Add the bundle ID of that app (step 1). |
Requested connector does not exist | Entra's part worked; the connector ID in the file names no connector. The ID changes whenever the identity provider is created again. | Read the current ID in the dashboard under Settings › Identity Providers and publish it (step 2). |
| Token exchange refused for another reason | The client ID in the file is not the registration the identity provider uses. | Publish the identity provider's client ID (step 2). |
Turn it off
Set enabled: false (or ask your server operator to). The apps return to browser sign-in the next time people sign in.