Authentication methods reference
Configure how people sign in to a Permit MCP Gateway host during the consent flow, and how recently they must have signed in to decide their agents' approvals. This reference is for host admins who turn on sign-in methods, connect an identity provider (IdP), or limit sign-in to company email domains.
Each host has its own authentication configuration. Different hosts can use different methods, credentials, and domain restrictions.
Configure authentication for a host
- In the Permit MCP Gateway dashboard, select the host in the host selector at the top of the page.
- In the sidebar, click Settings, and scroll to Authentication Methods.
- Click Add method and pick a method. The menu groups the methods under Standard, Social Providers, and Enterprise.
- Expand the method's row and enter the values the method needs. The available methods table lists them. The row also shows the callback URL to register with the provider.
- Click Save Configuration. The dashboard checks the configuration rules on save. Saving needs the admin role in the organization.
- Connect an MCP client to the host. The sign-in page of the consent flow shows the method you added.

A host starts with Email / Password on and all other methods off. To remove a method, click the X on its row and confirm Remove. Reset to Defaults returns a host with a saved configuration to Email / Password only.
Available methods
| Method | Listed in Add method as | Configuration required | Callback URL |
|---|---|---|---|
| Email / Password | Email / Password | None | None |
| Email OTP | Email OTP | None | None |
| Passkeys | Passkeys | None | None |
| Google OAuth | Client ID and client secret | https://{subdomain}.agent.security/api/auth/callback/google | |
| GitHub OAuth | GitHub | Client ID and client secret | https://{subdomain}.agent.security/api/auth/callback/github |
| Microsoft OAuth | Microsoft | Client ID, client secret, optional tenant ID | https://{subdomain}.agent.security/api/auth/callback/microsoft |
| SAML 2.0 SSO | Enterprise SAML | IdP entry point URL, IdP entity ID, X.509 certificate in PEM format | ACS URL: https://{subdomain}.agent.security/api/auth/sso/saml2/callback/sso-{subdomain} |
| OIDC SSO | Enterprise OIDC | Issuer URL, client ID, client secret | https://{subdomain}.agent.security/api/auth/oauth2/callback/sso-{subdomain} |
In every URL, replace {subdomain} with the host's full subdomain, for example acme-zesty-magenta-11. Each method's row in Settings shows the exact URLs for the host.
Email / Password
People create an account with Create Account (name, email address, and a password of at least 8 characters), then sign in with Email and Password. Forgot password? sends a reset link. Email / Password needs no configuration and is on by default.
On hosted gateway hosts, a new account verifies its email address before it signs in: the Check your email page asks the person to open the verification link.
If a host has no saved authentication configuration, the host uses Email / Password only.
Email OTP
Email one-time passcode (OTP) sign-in is passwordless. Under "Sign in with email code", the person enters an email address and clicks Send Code, receives a 6-digit code by email, and enters the code within 5 minutes.
Email OTP needs no configuration; the host sends the code with its built-in email delivery. You can turn on Email OTP next to Email / Password, and the sign-in page shows both.
Passkeys (WebAuthn)
Passkeys use the FIDO2 Web Authentication (WebAuthn) standard. A person signs in with Sign in with Passkey and a biometric or a security key instead of a password.
- Configuration required: none.
- Browser support: the person's browser must support the Web Authentication API.
- Where people add a passkey: on the host's Your passkeys page (
/passkeys), from the account menu. The page offers passkeys only when the host has Passkeys on and the person's email domain is allowed for the method. Adding a passkey needs a recent sign-in (Sign in again), then a confirmation: an emailed code for the first passkey, or a tap of an existing passkey after that. - Tied to one host: a passkey signs in only on the host where the person registered it. On another host, the person registers another passkey.
- Approvals switch to the passkey: after a person adds their first passkey on a host, every approval decision of theirs on that host is confirmed with a passkey, instead of a recent sign-in or an emailed code. The page shows "Approvals: confirmed with a passkey" until an admin resets it. The admin resets it on the person's page under Humans, in Approval verification, with Reset to sign-in, which removes the person's passkeys on that host. See Manage humans and agents.
- Keep another method on: a person without a passkey can't sign in with one, so keep another method on next to Passkeys.
Google OAuth
People sign in with a Google account through Continue with Google. Google OAuth needs a Google OAuth client ID and client secret.
Set up Google OAuth
- Go to the Google Cloud Console.
- Go to APIs & Services > Credentials.
- Click Create Credentials > OAuth client ID.
- Select Web application as the application type.
- Under Authorized redirect URIs, add the Google callback URL:
Replacehttps://{subdomain}.agent.security/api/auth/callback/google
{subdomain}with your host's full subdomain, for exampleacme-zesty-magenta-11. - Copy the Client ID and Client Secret.
- In the Permit MCP Gateway dashboard, go to Settings > Authentication Methods, click Add method, and select Google.
- Paste the client ID and client secret, and click Save Configuration.
The callback URL contains the host's subdomain, so each host needs its own OAuth app registration. For several hosts, create a separate Google OAuth app for each host, with that host's callback URL.
GitHub OAuth
People sign in with a GitHub account through Continue with GitHub. GitHub OAuth needs a GitHub OAuth client ID and client secret.
Set up GitHub OAuth
- Go to GitHub Developer Settings > OAuth Apps.
- Click New OAuth App.
- Fill in the app details:
- Application name: for example, "Permit MCP Gateway (acme)".
- Homepage URL:
https://{subdomain}.agent.security - Authorization callback URL:
https://{subdomain}.agent.security/api/auth/callback/github
- Click Register application.
- Copy the Client ID, then generate and copy a Client Secret.
- In the Permit MCP Gateway dashboard, go to Settings > Authentication Methods, click Add method, and select GitHub.
- Paste the client ID and client secret, and click Save Configuration.
A GitHub sign-in never counts as recent for the sign-in check for approvals, so people who sign in with GitHub confirm approvals with an emailed code or a passkey.
Microsoft OAuth
People sign in with a Microsoft account through Microsoft Entra ID (formerly Azure AD), through Continue with Microsoft. Microsoft OAuth supports single-tenant and multi-tenant apps. It needs a Microsoft OAuth client ID and client secret, and optionally a tenant ID.
Set up Microsoft OAuth
- Go to Azure Portal > App registrations.
- Click New registration.
- Fill in the registration:
- Name: for example, "Permit MCP Gateway (acme)".
- Supported account types:
- Single tenant: only users in your Microsoft Entra directory.
- Multitenant: users in any Microsoft Entra directory.
- Multitenant and personal Microsoft accounts: users in any Microsoft Entra directory and personal Microsoft accounts.
- Redirect URI: select Web and enter the Microsoft callback URL:
https://{subdomain}.agent.security/api/auth/callback/microsoft
- Click Register.
- Copy the Application (client) ID.
- Go to Certificates & secrets > New client secret, create a secret, and copy its Value.
- In the Permit MCP Gateway dashboard, go to Settings > Authentication Methods, click Add method, and select Microsoft.
- Paste the client ID and client secret.
- Optional: set Tenant ID to limit sign-in to one Microsoft Entra directory. See Tenant ID values.
- Click Save Configuration.
Tenant ID values
| Value | Who can sign in |
|---|---|
| Empty | Same as common. |
common | Any Microsoft Entra account or personal Microsoft account. |
organizations | Any Microsoft Entra account. No personal accounts. |
consumers | Personal Microsoft accounts only. |
| A directory UUID | Only users in that Microsoft Entra directory. |
SAML 2.0 SSO
Security Assertion Markup Language (SAML) 2.0 single sign-on (SSO) connects the host to your company IdP, such as Okta, Microsoft Entra ID, or Google Workspace. Permit MCP Gateway is the service provider (SP), and your IdP is the identity provider. In Add method, SAML SSO is Enterprise SAML, and the sign-in page shows Sign in with Enterprise SSO (SAML).
SAML SSO needs the IdP entry point URL, the IdP entity ID, and the IdP's X.509 signing certificate in PEM format. The method's fields are IdP SSO URL (Entry Point), IdP Entity ID, and IdP X.509 Certificate (PEM).
Service provider details
Enter these values in your IdP when you create the SAML app. The Enterprise SAML row in Settings shows the same values for the host.
| Field | Value |
|---|---|
| SP Entity ID / Audience URI | https://{subdomain}.agent.security/api/auth/sso/saml2/sp/metadata |
| ACS (Assertion Consumer Service) URL | https://{subdomain}.agent.security/api/auth/sso/saml2/callback/sso-{subdomain} |
| SP Metadata URL | https://{subdomain}.agent.security/api/auth/sso/saml2/sp/metadata?providerId=sso-{subdomain} |
Attribute mapping
Configure your IdP to send these SAML attributes:
| Attribute | SAML claim URI |
|---|---|
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress | |
| Name | http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name |
SAML security settings
| Setting | Behavior |
|---|---|
| SP-initiated SSO only | The host rejects IdP-initiated SSO. People start sign-in from the gateway's sign-in page, not from the IdP's app dashboard. |
| InResponseTo validation | Each SAML response must reference the authentication request the host sent. |
| Certificate format | The IdP certificate must be PEM: it starts with -----BEGIN CERTIFICATE----- and ends with -----END CERTIFICATE-----. |
A SAML sign-in never counts as recent for the sign-in check for approvals, so people who sign in with SAML confirm approvals with an emailed code or a passkey.
The Okta, Microsoft Entra ID, and Google Workspace steps below use the console labels those vendors show at the time of writing. If a label differs in your console, match the field by purpose: ACS URL, SP entity ID, name ID format, and the email and name attributes.
Okta setup
- In the Okta Admin Console, go to Applications > Create App Integration.
- Select SAML 2.0 and click Next.
- Set App name, for example "Permit MCP Gateway".
- Configure the SAML settings:
- Single sign-on URL (ACS URL):
https://{subdomain}.agent.security/api/auth/sso/saml2/callback/sso-{subdomain} - Audience URI (SP Entity ID):
https://{subdomain}.agent.security/api/auth/sso/saml2/sp/metadata - Name ID format: EmailAddress
- Application username: Email
- Single sign-on URL (ACS URL):
- Add attribute statements:
emailtouser.email(URI:http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress)nametouser.displayName(URI:http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name)
- Click Next, then Finish.
- On the app's Sign On tab, copy the IdP SSO URL (entry point) and the IdP Entity ID (issuer), and download the X.509 Certificate.
- In the Permit MCP Gateway dashboard, go to Settings > Authentication Methods, click Add method, and select Enterprise SAML.
- Paste the entry point URL, entity ID, and PEM certificate, and click Save Configuration.
Microsoft Entra ID setup
- In the Azure Portal, go to Enterprise Applications > New Application > Create your own application.
- Select Integrate any other application you don't find in the gallery (Non-gallery).
- Name the application, for example "Permit MCP Gateway", and click Create.
- Go to Single sign-on > SAML.
- In Basic SAML Configuration, set:
- Identifier (Entity ID):
https://{subdomain}.agent.security/api/auth/sso/saml2/sp/metadata - Reply URL (ACS URL):
https://{subdomain}.agent.security/api/auth/sso/saml2/callback/sso-{subdomain}
- Identifier (Entity ID):
- In Attributes & Claims, check these mappings:
emailaddresstouser.mailnametouser.displayname
- In SAML Certificates, download Certificate (Base64). The Base64 certificate is in PEM format.
- In the Set up section for your application, copy the Login URL (entry point) and the Microsoft Entra identifier (entity ID). Older portal versions label the identifier Azure AD Identifier.
- In the Permit MCP Gateway dashboard, go to Settings > Authentication Methods, click Add method, and select Enterprise SAML.
- Paste the entry point URL, entity ID, and certificate, and click Save Configuration.
Google Workspace setup
- In the Google Admin Console, go to Apps > Web and mobile apps > Add app > Add custom SAML app.
- Name the app, for example "Permit MCP Gateway", and click Continue.
- On the Google Identity Provider details page, copy the SSO URL (entry point) and the Entity ID, and download the Certificate.
- Click Continue.
- Fill in Service provider details:
- ACS URL:
https://{subdomain}.agent.security/api/auth/sso/saml2/callback/sso-{subdomain} - Entity ID:
https://{subdomain}.agent.security/api/auth/sso/saml2/sp/metadata - Name ID format: EMAIL
- Name ID: Basic Information > Primary email
- ACS URL:
- Add attribute mappings:
emailto Basic Information > Primary emailnameto Basic Information > First name and Last name
- Click Finish, then turn the app ON for the organizational units that use the gateway.
- In the Permit MCP Gateway dashboard, go to Settings > Authentication Methods, click Add method, and select Enterprise SAML.
- Paste the entry point URL, entity ID, and certificate, and click Save Configuration.
OIDC SSO
OpenID Connect (OIDC) SSO connects the host to any IdP that supports OIDC discovery. In Add method, OIDC SSO is Enterprise OIDC, and the sign-in page shows Sign in with Enterprise SSO. OIDC SSO needs the issuer URL, a client ID, and a client secret (the Issuer URL, Client ID, and Client Secret fields). The host requests the openid, profile, and email scopes.
How OIDC discovery works
Permit MCP Gateway reads your IdP's endpoints from the standard OpenID Connect discovery URL:
{issuerUrl}/.well-known/openid-configuration
You enter the issuer URL. The gateway reads the authorization, token, and key endpoints from the discovery document.
Set up OIDC SSO
- In your IdP, register a web application (sometimes called an OIDC app).
- Set the redirect URI (callback URL). Copy the exact value from Redirect URI (Callback URL) on the Enterprise OIDC row in Settings:
https://{subdomain}.agent.security/api/auth/oauth2/callback/sso-{subdomain}
- Note the Issuer URL, for example
https://accounts.google.com,https://login.microsoftonline.com/{tenant}/v2.0, orhttps://{domain}.okta.com. - Copy the Client ID and Client Secret.
- In the Permit MCP Gateway dashboard, go to Settings > Authentication Methods, click Add method, and select Enterprise OIDC.
- Paste the issuer URL, client ID, and client secret, and click Save Configuration.
A host can use SAML 2.0 SSO or OIDC SSO, not both. While one SSO method is on, Add method doesn't offer the other. To switch, remove the current SSO method before you add the other one.
Account linking
People's accounts are shared across gateway hosts and identified by email address. When a person signs in with a new method, whether the gateway links it to an existing account with the same email depends on the method:
| Method | Links to an existing account with the same email |
|---|---|
| Google, GitHub, Microsoft | Yes, when the provider reports the email as verified and the existing account's email is verified. |
| SAML 2.0 SSO, OIDC SSO | Never. Your IdP controls what it asserts, so the gateway doesn't trust its email claims for other accounts. |
What this means for a host with SSO:
- A person who already has an account with the same email address, for example from Email / Password on this or another host, can't sign in through the host's SSO. They keep signing in the way they signed up.
- Accounts that SSO creates aren't linked from Google, GitHub, or Microsoft either.
Turn on SSO before people create Email / Password accounts with their company addresses, so that employees sign in through SSO from the start.
Domain restrictions
Domain restrictions limit which email domains can sign in with each method. Set them in Settings > Authentication Methods:
- Global Email Domain Restriction, at the top of the section: "If set, only emails from these domains can use any auth method."
- Email Domain Restriction, inside each method's row: "Restrict this method to specific email domains."
Global and per-method restrictions
| Restriction | Scope |
|---|---|
| Global | All authentication methods on the host. |
| Per-method | One authentication method. |
An empty list means no restriction at that level.
How global and per-method restrictions combine
When both lists are set, an email domain must be in the global list and in the per-method list. A per-method list narrows the global list. A per-method list can't add a domain that the global list blocks.
| Global allows | Per-method allows | user@acme.com | user@partner.io | user@outsider.com |
|---|---|---|---|---|
acme.com, partner.io | Not set | Allowed | Allowed | Blocked |
| Not set | acme.com | Allowed | Blocked | Blocked |
acme.com, partner.io | acme.com | Allowed | Blocked (not in per-method) | Blocked |
acme.com | acme.com, outsider.com | Allowed | Blocked | Blocked (not in global) |
If the global list allows only acme.com and a per-method list adds outsider.com, people with @outsider.com addresses still can't sign in with that method. Add a domain to the global list before you add it to a per-method list.
Domain restriction examples
| Scenario | Global allowed domains | Per-method allowed domains | Result |
|---|---|---|---|
| One organization | acme.com | Not set | All methods accept only @acme.com addresses. |
| Employees on SSO, contractors on Email / Password | acme.com, contractor.acme.com | SSO: acme.com | Employees use SSO. People with @contractor.acme.com addresses can use Email / Password but not SSO. |
| Partner organizations | acme.com, partner1.com, partner2.com | Optional: SSO limited to acme.com | All three domains can use any enabled method, except where a per-method list narrows them. |
Force-redirect domains
For SAML or OIDC SSO, you can set force-redirect domains (Force SSO for Domains on the SSO method's row: "Users with these email domains will be auto-redirected to SSO."). When a person enters an email address with a matching domain, the sign-in page sends the person to the SSO provider without showing the other methods.
- The person enters an email address on the sign-in page.
- If the domain matches a force-redirect domain, the browser redirects to the SSO provider.
- After SSO authentication, the person returns to the consent flow.
If the SSO sign-in fails, for example because the IdP is unavailable or the person cancels, the person returns to the sign-in page with the message "SSO sign-in was unsuccessful. Please try another method or contact your administrator." The person can then sign in with any other method allowed for their domain.
Enable multiple methods
Combine methods on one host
You can turn on any combination of methods, with one limit: a host can use only one SSO type, SAML 2.0 or OIDC.
What people see on the sign-in page
The Sign In page shows only the methods that are on. When domain restrictions are set, the person enters an email address first, and the page shows only the methods allowed for that domain.

Methods appear in this order:
- Passkeys (Sign in with Passkey)
- Social sign-in buttons (Continue with Google, Continue with GitHub, Continue with Microsoft)
- SSO button (Sign in with Enterprise SSO, or Sign in with Enterprise SSO (SAML))
- Email / Password form
- Email OTP form ("Sign in with email code")
The Create Account button appears only when Email / Password or Email OTP is on.
A browser sign-in on a host lasts 7 days, and the gateway extends it when the person uses it after a day.
Recommended configurations
| Organization type | Methods | Notes |
|---|---|---|
| Small team | Email / Password | No external setup. |
| Developer team | GitHub OAuth and Email / Password | GitHub for daily sign-in, Email / Password as a fallback. GitHub sign-ins confirm approvals with an emailed code or a passkey. |
| Google Workspace organization | Google OAuth and Email / Password | Limit Google OAuth to your domain with a per-method restriction. |
| Microsoft 365 organization | Microsoft OAuth or OIDC SSO | Set the tenant ID to limit sign-in to your directory. |
| Enterprise with an IdP | SAML 2.0 or OIDC SSO, and Email / Password | SSO for employees, Email / Password for exceptions. Add force-redirect domains so employees go straight to SSO. Turn on SSO first: SSO doesn't link to existing accounts. See Account linking. |
| Organization with contractors | SSO and Email / Password, with domain restrictions | SSO limited to the employee domain, Email / Password for the contractor domain. |
Sign-in check for approvals
Some actions on the consent pages need a recent sign-in, so that the person, and not an agent with access to their browser, makes the decision:
- Approving or rejecting a call their agent asked about (when they turned on Ask me before this agent changes or deletes anything).
- Turning that switch off on a server.
- Editing a task they set on Your MCP agents.
- Adding or removing a passkey.
Set the window in Settings > Sign-in check for people's approvals. Sign-in must be within offers 5 min, 15 min (default), 1 hour, 8 hours, and Custom (1 to 1440 minutes).

When the person's sign-in is older than the window:
- The person enters a code the gateway emails for that action. The code works once, for 5 minutes, with 5 tries.
- Or the person clicks Sign in again instead. The Sign in again page ("Confirm it's you. Then you go back to where you were.") signs them in and returns them to the action. For Google, Microsoft, and OIDC SSO, the gateway asks the provider to sign the person in again.
A person with a passkey on the host confirms every decision with the passkey instead.
Which sign-ins count as recent:
| Sign-in | Counts as recent |
|---|---|
| Email / Password, Email OTP | Yes, from the sign-in time. |
| Passkey registered on this host | Yes, from the sign-in time. |
| Google, Microsoft, OIDC SSO | Yes, when the provider reports that the person signed in at the provider during this sign-in. A sign-in the provider completes from its own older session doesn't count. |
| GitHub, SAML 2.0 SSO | Never. These people use the emailed code or a passkey. |
Configuration rules
The dashboard enforces these rules when you save authentication settings:
| Rule | Description |
|---|---|
| At least one method | At least one authentication method must be on. You can't turn off all methods. |
| One SSO type per host | A host can use SAML 2.0 SSO or OIDC SSO, not both. |
| SAML requires all fields | SAML needs the entry point URL, the entity ID, and the X.509 certificate. |
| OIDC requires all fields | OIDC needs the issuer URL, the client ID, and the client secret. |
| Social providers require credentials | Google, GitHub, and Microsoft OAuth each need a client ID and a client secret. |
| PEM format | The dashboard rejects a SAML certificate that doesn't start with -----BEGIN CERTIFICATE----- and end with -----END CERTIFICATE-----. |
Callback URL reference
Use these URLs when you register OAuth apps or configure an IdP:
| Method | Callback URL |
|---|---|
| Google OAuth | https://{subdomain}.agent.security/api/auth/callback/google |
| GitHub OAuth | https://{subdomain}.agent.security/api/auth/callback/github |
| Microsoft OAuth | https://{subdomain}.agent.security/api/auth/callback/microsoft |
| OIDC SSO | https://{subdomain}.agent.security/api/auth/oauth2/callback/sso-{subdomain} |
| SAML 2.0 ACS | https://{subdomain}.agent.security/api/auth/sso/saml2/callback/sso-{subdomain} |
Replace {subdomain} with the host's full subdomain, for example acme-zesty-magenta-11.
Next steps
- Set up hosts: create a host, import MCP servers, and share the gateway URL.
- How the consent flow works: what happens after a person signs in.
- Manage humans and agents: grant access and reset a person's approval verification.
- Platform reference: the other host settings.