Deployment
Single sign-onNew
Where AgentID uses your identity provider, how browser extension SSO works, step-by-step setup with Microsoft Entra ID, another OIDC provider or SAML 2.0, dashboard sign-in on-premise, and what has not been verified.
Where SSO applies
| Surface | SSO | Notes |
|---|---|---|
| Browser extension | OIDC or SAML 2.0, configured per AI system | Adds a verified user identity to every check and every activity record. Can be required |
| Dashboard, on-premise | Microsoft Entra ID (single tenant), when enabled for the deployment | Only for accounts that already exist in AgentID; password sign-in remains |
| Dashboard, cloud service | Not offered | Users sign in with their AgentID account. Entra sign-in to the dashboard exists only where the deployment has it switched on, which today means on-premise |
| Claude Desktop companion, Claude plugin | None | Identity is the installation: each device and user has its own revocable credential |
| SDKs and API | None | API keys |
Browser extension SSO
How it works (OIDC)
- The user clicks Sign in with SSO in the extension popup. The extension asks the AgentID server to start the sign-in; the server prepares
state,nonceand PKCE (S256). - Your identity provider's sign-in page opens in the browser. MFA and conditional access apply as usual.
- The identity provider returns an authorization code to the extension's redirect address.
- The extension passes the code to the AgentID server. The server exchanges it for an ID token with the client secret and PKCE, and verifies the signature, issuer, audience, expiry and nonce, the e-mail domain and the required groups or roles.
- The server issues an encrypted SSO session, valid for 8 hours by default. Every check and every activity record then carries the user's subject, e-mail, name and groups.
The client secret never leaves the AgentID server. It is not in the extension, not in the managed policy and not in the rollout bundle.
Modes
| Mode | Effect |
|---|---|
| Off | No SSO |
| Audit only | Identity is recorded when the user is signed in; nothing is enforced. Use it for a first test |
| Required | Without a valid SSO session the extension does not release a prompt, and the server refuses the request. A cleared or expired session stops working on the server as well |
Settings
On the AI system's Integration tab, under Browser Extension SSO:
| Field | Value |
|---|---|
| SSO Mode | Off, Audit only or Required |
| SSO Protocol | OIDC or SAML 2.0 |
| Provider ID | A short name, for example entra. The same value goes into the managed policy as ssoProviderId |
| Allowed Email Domains | Only users whose e-mail address is in one of these domains count as signed in. Separate several with commas. Empty means any domain |
| Required Groups, Required Roles | A user counts as signed in when they are in at least one of the listed groups or roles. The comparison ignores upper and lower case. Empty means no restriction |
With OIDC:
| Field | Value |
|---|---|
| OIDC Issuer | The issuer URL of your identity provider, exactly as the provider publishes it |
| OIDC Client ID | The application (client) ID |
| Client Secret Env Name | The name of the server setting that holds the client secret, not the secret itself. The name must start with AGENTID_EXTENSION_SSO_ and continue with capital letters, digits or underscores. The secret is kept in the AgentID server's configuration: on-premise you set it yourself; in the cloud service it has to be set on AgentID's side, so contact AgentID before you start. Leave the field empty for a public client that uses PKCE only |
With SAML 2.0:
| Field | Value |
|---|---|
| SAML IdP Entry Point | The single sign-on URL of your identity provider |
| SAML IdP Issuer | The entity ID of your identity provider. Optional; when set, the issuer of the response must match it |
| SP Entity ID | The entity ID of AgentID as the service provider. Optional; when empty, the ACS URL is used |
| IdP Certificate PEM | The signing certificate of your identity provider |
| IdP Cert Env Name | Optional alternative to pasting the certificate: the name of a server setting that holds it. Same naming rule as the client secret setting. When it is filled in, the pasted certificate is not used |
The fields are available to admins of the AI system. Save SSO Settings is recorded in the system's audit log. Generate the rollout bundle after saving, so the managed policy contains ssoMode and ssoProviderId.
Microsoft Entra ID
Register the application
In the Entra admin center create an app registration, single tenant, with a redirect URI of the platform Web:
https://konaflpebgjmcejanoipmeggkifilnkc.chromiumapp.org/agentid-ssokonaflpebgjmcejanoipmeggkifilnkc is the Chrome Web Store ID of AgentID Browser Protection. Edge installs the same extension from the Chrome Web Store, so the redirect URI is the same. The platform must be Web, not SPA or Mobile/desktop, because the server exchanges the code with the client secret. Leave implicit grant off.
For dashboard sign-in on-premise, add a second redirect URI: https://<your AgentID host>/auth/v1/callback.
Create a client secret
Create a client secret and copy its Value (not the Secret ID) to the AgentID server. Note the application (client) ID and the directory (tenant) ID.
Grant permissions
Microsoft Graph, delegated: openid, profile, email. Grant admin consent so users see no consent dialog.
Configure the token claims
- Add the optional ID token claim
email. It is required: an administrator's Entra account is matched to the AgentID account by it.xms_edovis recommended, so an e-mail counts as verified only from a verified domain of the tenant. - Add a groups claim with Groups assigned to the application, format Group ID. This avoids the group overage problem for users in more than 200 groups. Assigning groups to an application needs Entra ID P1.
AgentID reads sub, email (falling back to preferred_username or upn), name, groups and roles. The token must be signed with RS256.
Restrict who can sign in
In the enterprise application set Assignment required to Yes and assign the user group. AgentID checks the group a second time on the server through Required Groups; enter the group's Object ID there.
Enter the settings in AgentID
Use the issuer https://login.microsoftonline.com/<TENANT_ID>/v2.0, exactly, without a trailing slash. Fill in the other settings with SSO Protocol set to OIDC, and start with SSO Mode set to Audit only.
Test
Follow Test and switch to Required.
Network
| From → to | Port | Why |
|---|---|---|
AgentID server → login.microsoftonline.com | 443 | OIDC discovery, signing keys, code exchange |
| Workstation → AgentID server | 443 | Extension API |
| Workstation → Microsoft sign-in domains | 443 | The sign-in window |
On-premise, the server calls Entra directly and does not use an HTTP proxy.
Common errors
| Message | Cause |
|---|---|
AADSTS50011 redirect URI mismatch | A different extension ID, a typo, or the URI was entered under SPA instead of Web |
AADSTS7000215 invalid client secret | The Secret ID was copied instead of the Value, or the secret expired |
AADSTS50105 not assigned | The user is not in the assigned group (refused as intended) |
OIDC ID token issuer mismatch | The issuer in AgentID differs from https://login.microsoftonline.com/<TENANT_ID>/v2.0 |
OIDC user is missing a required group or role | No groups claim, a format other than Group ID, or a different Object ID |
OIDC user email domain is not allowed | The user's e-mail domain is not in Allowed Email Domains |
OIDC token endpoint is not allowed or unavailable | The server cannot reach login.microsoftonline.com on port 443 |
| Dashboard: Sign-in was not completed | The account does not exist in AgentID, the e-mail differs from the email claim, or the claim is missing |
Another OIDC provider
The OIDC flow is not specific to Entra ID. Any provider works that meets these conditions:
| Requirement | Detail |
|---|---|
| Discovery | The provider publishes <issuer>/.well-known/openid-configuration with an authorization endpoint, a token endpoint and a JWKS URI |
| Reachable from the AgentID server | Discovery, the token endpoint and the signing keys are fetched by the server over HTTPS, and only from public internet addresses. A provider that resolves to a private or internal address is refused. For such a provider use SAML 2.0, which needs no connection from the server to the provider |
| Flow | Authorization code with PKCE (S256). Scopes requested: openid, email, profile |
| Client authentication | When a client secret is configured, it is sent in the body of the token request (client_secret). Without one, the request relies on PKCE alone |
| ID token | Signed with RS256 and carrying a key ID (kid). iss must equal the OIDC Issuer (a trailing slash is ignored), aud must contain the OIDC Client ID, and the nonce must match. Clock difference tolerated: two minutes |
| Claims | sub and an e-mail address are required. The e-mail is read from email, then preferred_username, then upn. A token with email_verified: false is refused. name, groups and roles are optional; groups and roles must be arrays of strings |
Register AgentID as a client
In your identity provider create a web (confidential) client with the authorization code flow and this redirect URI:
https://konaflpebgjmcejanoipmeggkifilnkc.chromiumapp.org/agentid-ssoMake the claims available
Make sure the ID token contains an e-mail address, and groups or roles if you want to restrict access by them.
Store the client secret on the server
Agree a setting name that starts with AGENTID_EXTENSION_SSO_, for example AGENTID_EXTENSION_SSO_MAIN_CLIENT_SECRET, and store the secret under it in the AgentID server's configuration (in the cloud service, through AgentID).
Enter the settings and test
Fill in the settings with SSO Mode set to Audit only, then follow Test and switch to Required.
Only Microsoft Entra ID is described provider by provider on this page. Other OIDC providers are covered by the same automated tests, but none has been verified against a live tenant.
SAML 2.0
How it works (SAML)
- The user clicks Sign in with SSO in the extension popup. The AgentID server builds a SAML authentication request and the identity provider's sign-in page opens (HTTP-Redirect binding). The request is not signed.
- After sign-in, the identity provider posts the SAML response to AgentID's ACS URL (HTTP-POST binding).
- The server checks the signature against the IdP certificate, the audience, the validity period (two minutes of clock difference are tolerated; an assertion older than ten minutes is refused), the e-mail domain and the required groups or roles. Each assertion is accepted once.
- The server issues the same encrypted SSO session as with OIDC, valid for 8 hours by default, and hands it to the extension.
The sign-in must start in the extension. A sign-in started from the identity provider's app portal (IdP-initiated) is refused. A sign-in must be finished within ten minutes.
The AgentID server does not connect to the identity provider for SAML; only the user's browser does.
Values for your identity provider
| Value | What to enter |
|---|---|
| ACS URL (reply URL, single sign-on URL) | https://app.getagentid.com/api/v1/browser-extension/sso/saml/acs, or the same path on your own server for an on-premise deployment |
| SP entity ID (identifier, audience) | The same as the ACS URL, unless you enter a different SP Entity ID in AgentID |
| Name ID | The user's e-mail address, format urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress |
| Signature | Sign the response or the assertion (either is accepted) with the certificate you give to AgentID |
| Assertion encryption | Off. AgentID has no decryption key, so an encrypted assertion cannot be read |
Attributes AgentID reads
The first attribute that is present wins.
| For | Read from |
|---|---|
| Subject | The Name ID. Without one: sub, subject or uid |
| E-mail (required) | email, mail, Email, User.email, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress, urn:oid:0.9.2342.19200300.100.1.3. Without any of them: the Name ID, when it is an e-mail address |
| Display name | displayName, name, cn, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name |
| Groups | groups, Groups, memberOf, http://schemas.microsoft.com/ws/2008/06/identity/claims/groups |
| Roles | roles, Roles, role, http://schemas.microsoft.com/ws/2008/06/identity/claims/role |
A response without a subject or without an e-mail address is refused.
Set it up
Create the SAML application in your identity provider
Create a SAML 2.0 application and enter the ACS URL, the entity ID and the Name ID format from Values for your identity provider. Leave assertion encryption off.
Add the attributes
Release an e-mail attribute, and a groups or roles attribute if you want to restrict access by it, under one of the names in Attributes AgentID reads. Assign the application to the users or groups that may sign in.
Copy the identity provider's values
Note the single sign-on URL, the entity ID (issuer) and the signing certificate.
Enter the settings in AgentID
On the AI system's Integration tab, under Browser Extension SSO:
- SSO Mode: Audit only for the first test.
- SSO Protocol: SAML 2.0.
- Provider ID: a short name, for example
saml-main. - SAML IdP Entry Point: the single sign-on URL.
- SAML IdP Issuer: the entity ID of the identity provider.
- SP Entity ID: leave empty to use the ACS URL.
- IdP Certificate PEM: paste the certificate, with or without the
-----BEGIN CERTIFICATE-----lines. Alternatively store it on the server and enter its setting name in IdP Cert Env Name; the name must start withAGENTID_EXTENSION_SSO_. - Allowed Email Domains, Required Groups, Required Roles as needed. Enter groups in the form your identity provider sends them (names or IDs).
Click Save SSO Settings.
Optional: download the service provider metadata
If your identity provider imports metadata, fetch it after saving. The request is authenticated with an API key of the same AI system:
curl -s "https://app.getagentid.com/api/v1/browser-extension/sso/saml/metadata?system_id=$AGENTID_SYSTEM_ID&provider_id=saml-main" \
-H "x-agentid-api-key: $AGENTID_API_KEY" \
-o agentid-sp-metadata.xmlThe metadata contains the entity ID, the ACS URL and the Name ID format. It contains no certificate, because AgentID does not sign requests.
Deliver the provider ID to the extension
Generate the rollout bundle after saving; the managed policy then contains ssoMode and ssoProviderId. For a test without managed policy, enter SSO mode and SSO provider ID in the extension popup under Managed deployment options.
Test
Follow Test and switch to Required.
Common SAML errors
| Message | Cause |
|---|---|
SAML provider is not configured. | The provider ID in the extension differs from the one saved in AgentID |
SAML provider config is missing entry_point/idp_cert. | No certificate: the named server setting is empty or missing |
SAML IdP cert env name must start with AGENTID_EXTENSION_SSO_. | The setting name does not follow the naming rule |
SAML ACS failed. | The response did not pass validation. Typical causes: it is signed with a different certificate (for example after a certificate rollover at the identity provider), neither the response nor the assertion is signed, the audience differs from the SP entity ID, the issuer differs from SAML IdP Issuer, the assertion is encrypted or too old |
SAML profile is missing subject/email. | No Name ID, or no e-mail attribute under a name AgentID reads |
SAML user email domain is not allowed. | The user's e-mail domain is not in Allowed Email Domains |
SAML user is missing a required group or role. | No groups or roles attribute, or its values differ from Required Groups / Required Roles |
SAML state has expired. | The sign-in took longer than ten minutes. Start again from the extension |
SAMLResponse and RelayState are required. | The sign-in was started from the identity provider instead of the extension |
saml_replay_detected | The same assertion was posted twice. Start again from the extension |
Test and switch to Required
Start in Audit only
Save the SSO settings with SSO Mode set to Audit only. Nothing is enforced yet.
Sign in on a pilot workstation
Open the extension popup and click Sign in with SSO. After sign-in, SSO session in the popup shows the user and the method (oidc or saml).
Check the record
Send a test prompt and open it in the system's activity log: the record carries the user's identity. The sign-in itself is recorded in the system's audit log.
Check a refusal
Sign in with a user outside the allowed domain or the required group. The sign-in must fail with the matching message from the error tables on this page.
Require SSO
Set SSO Mode to Required, save, and generate a new rollout bundle so the managed policy carries ssoMode: required. From then on the server refuses extension requests without a valid SSO session.
To go back, set SSO Mode to Audit only or Off, save, and update the managed policy the same way. Clear SSO session in the popup signs a user out.
Dashboard sign-in on-premise
On-premise, dashboard users can sign in with Microsoft Entra ID (single tenant) next to their password. This is switched on in the server configuration, not in the dashboard. The cloud service does not offer it.
Add the dashboard redirect URI
In the Entra app registration from Microsoft Entra ID, add a second redirect URI of the platform Web: https://<your AgentID host>/auth/v1/callback. The optional ID token claim email is required for the dashboard.
Enter the Entra settings on the server
Fill in the Entra settings (tenant ID, client ID, client secret and the switch for dashboard sign-in) in the server configuration file delivered with the bundle, as described in the installation guide that comes with it. Then recreate the services so they pick the values up.
Create the accounts
A server administrator creates each dashboard account with the bundle's create-admin.sh script; self sign-up is disabled. Use exactly the e-mail address from Entra. The script prints a generated password.
Sign in
On the sign-in page click Sign in with Microsoft Entra ID. At the first sign-in the Entra identity is linked to the account with the same e-mail address.
Check from the server
The bundle's smoke test reports whether OIDC discovery at Entra is reachable from the server and whether the dashboard's Entra sign-in redirects to your tenant.
- The generated password is the break-glass access for an Entra outage. Keep it in a password vault.
- Someone without an AgentID account cannot sign in through Entra; they see Sign-in was not completed.
- There is no SAML sign-in to the dashboard and no automatic provisioning of dashboard accounts from Entra.