Skip to main content
CAS (Cloud Authentication Service) is the OAuth 2.1 authentication method for MCP Gateway in SCM (Strata Cloud Manager) deployments. When an MCP client connects to a gateway running in SCM mode, CAS handles user authentication through Palo Alto Networks’ identity infrastructure instead of the AI Gateway’s built-in OAuth.
For standard deployments, use AI Gateway OAuth or External OAuth instead.
Self-hosted MCP Gateway only. OAuth in SCM currently works only with self-hosted (enterprise) MCP Gateway deployments. It is not available on the cloud-managed gateway.

Overview

CAS bridges the MCP Gateway’s OAuth flow with Palo Alto Networks’ centralized authentication. Instead of users logging in with standard credentials, they authenticate through their organisation’s identity provider (Entra ID, Okta, or on-prem Active Directory) via CAS.

How It Works


Prerequisites

Before CAS authentication works for your MCP Gateway:
  1. CIE Directory Sync configured — Users must be provisioned into workspaces via CIE Directory Sync. CAS authenticates users, but CIE is what provisions them into the system. Without CIE sync, authenticated users cannot be resolved.
  2. Authentication Profile selected — An Auth Profile must be selected in the CIE Directory Sync configuration. This profile determines which identity provider is used for the CAS login flow. Auth Profiles are managed in the CIE Authentication Profiles console.
CAS relies on CIE for user provisioning. If CIE Directory Sync is not configured, or no group-workspace mappings exist, users will authenticate successfully with CAS but fail to resolve — resulting in an authorization error.See CIE Directory Sync for setup instructions.

Setup

CAS authentication is automatically enabled on the MCP Gateway — no gateway-side configuration is needed. The admin configures identity and access in SCM and CIE before users can connect.
1

Connect a directory in CIE

Open the CIE Console and add your identity provider (Entra ID, Okta, or on-prem Active Directory) as a connected directory. This is the source of truth for users and groups.See Palo Alto CIE documentation for provider-specific setup instructions.
2

Configure Directory Sync in SCM

Navigate to AI SecurityAI GatewayAdmin SettingsAuthenticationDirectory Sync.
  1. Select the Connected Directory you added in the previous step.
  2. Choose the User Identity Attribute — either UPN (User Principal Name) or Mail (Primary Email).
  3. Click Save.
The User Identity Attribute must match the email attribute your identity provider returns during CAS authentication. If there is a mismatch, authenticated users cannot be resolved.
See CIE Directory Sync for a full walkthrough.
3

Select an Auth Profile

On the same Directory Sync page, open the Auth Profile dropdown and select the authentication profile that should handle MCP login flows.Directory Sync configuration — Auth Profile dropdown showing available authentication profilesAuth Profiles are synced from Authentication Profiles configured in CIE. The selected profile determines which identity provider users see on the CAS login page.
Do not skip this step. Without an Auth Profile selected, users will not be redirected to the CAS login page and authentication will fail silently. This is the most commonly missed configuration step.
4

Map groups to workspaces

In the Group Mappings section, map CIE directory groups to AI Gateway workspaces. Each mapping is a 1:1 link — all members of a mapped group are automatically provisioned into the corresponding workspace.Users must belong to at least one mapped workspace to access MCP servers provisioned in that workspace.

User Experience

First-Time Connection

When a user connects an MCP client to the gateway for the first time, the MCP client opens a browser window and the CAS login page is shown. Step 1 — Authenticate with your identity provider The user enters their organisation credentials on the CAS Single Sign-on page. This page is hosted by Palo Alto Networks and connects to your configured identity provider.
The login page appearance may vary depending on your configured Authentication Profile and identity provider. The example below shows the default CAS login for a local directory. Organisations using external IdPs (e.g., Entra ID, Okta) will see their IdP’s login page instead.
CAS Single Sign-on — sample login page for a local directory configuration Step 2 — Approve access to the MCP server After authentication, the user is shown a consent page. It displays the MCP server being requested, the workspace it belongs to, and the redirect destination. The user can approve or reject the request.
If you are a member of multiple workspaces where the MCP server is provisioned, a workspace dropdown will appear on the consent page. Select the workspace you want the access token to be scoped to.
Authorization Request — consent page showing the MCP server name, workspace selection, redirect destination, and approve/reject buttons Once approved, the browser redirects back to the MCP client with an access token. The client can now make MCP requests. Step 3 — Authorize the upstream MCP server (if required) If the upstream MCP server uses its own OAuth (for example, GitHub), one more consent page follows: the upstream service’s own authorization screen. After approving it, the gateway stores the upstream tokens and refreshes them automatically. Servers that authenticate with static credentials — headers, API keys, or client credentials configured by an admin — skip this step entirely. See End-to-end example: GitHub MCP server for a full walkthrough including this step.

Subsequent Connections

After the initial authentication, the MCP client uses refresh tokens to maintain access. Users are not prompted to log in again until the refresh token expires or is revoked. Approval is also remembered — subsequent connections to the same MCP server skip the consent page.

End-to-end example: GitHub MCP server

This walkthrough connects the hosted GitHub MCP server as an upstream server behind MCP Gateway in SCM mode. It shows both authentication layers in action:
GitHub does not support Dynamic Client Registration (DCR), so you must create an OAuth App manually and supply the credentials to the gateway. Servers that support DCR (e.g., Linear, Notion) skip Steps 1–2 entirely.
1

Create a GitHub OAuth App

Go to GitHubSettingsDeveloper settingsOAuth AppsNew OAuth App.Click Register application.Registering the GitHub OAuth App with the MCP Gateway upstream callback as the redirect URI
The redirect URI must match your gateway’s public URL exactly, including scheme and port. A mismatch causes a redirect_uri_mismatch error from GitHub during the upstream authorization step.
2

Copy the client credentials

On the OAuth App page:
  1. Copy the Client ID
  2. Click Generate a new client secret and copy the Client Secret
GitHub shows the client secret only once. Store it securely before leaving the page.
3

Add the MCP server in SCM

In Strata Cloud Manager, go to AI SecurityAI GatewayIntegrationsMCP RegistryAdd MCP Server.Add MCP Server form in SCM with the GitHub MCP endpoint and Streamable HTTP server typeIn the OAuth Metadata field, paste the credentials from Step 2:
token_endpoint_auth_method must be client_secret_post. GitHub does not accept HTTP Basic authentication (client_secret_basic) on its token endpoint, so omitting this field results in a token exchange failure.
4

Provision workspaces and create the server

Click Next: Choose Workspace, select the workspaces that should have access to this server, then create the MCP server.
If you provision the server to more than one workspace, users who belong to multiple workspaces will see a workspace selector on the consent page in Step 7.
5

Copy the MCP URL and connect your client

Go to AI GatewayCatalogs, open the server you just created, and copy its MCP URL.Add the URL to your MCP client and click Connect:
No credentials go in the client config — the gateway handles both auth layers.
6

Sign in with CAS

The client opens a browser and redirects you to the CAS Single Sign-on page. Enter your organisation credentials and click Login.CAS Single Sign-on page — sample login for a local directory configuration
The login page appearance depends on your configured Authentication Profile. Organisations using an external IdP (Entra ID, Okta) see their own IdP login page instead.
7

Approve gateway access

The AI Gateway consent page opens, showing the MCP client requesting access and the redirect destination. If the server is provisioned to multiple workspaces, pick the workspace to scope the token to, then click Approve.AI Gateway Authorization Request page with workspace selection and approve/reject buttons
8

Authorize GitHub (upstream)

Because this is the first time you are using the GitHub MCP server, you are redirected to GitHub’s own authorization page. Review the requested scopes and organisation access, then click Authorize.GitHub authorization page granting the OAuth App access to repositories, gists, and organisation data
Organisation-owned resources may show Disallowed by org owner with a Request button. A GitHub organisation owner must approve the OAuth App before those repositories become available through the gateway.
9

Connection established

The browser redirects back to your MCP client and the connection succeeds. GitHub tools are now listed and callable through the gateway, with every call logged and governed by AI Gateway policies.

Troubleshooting this flow


Comparison with Other Auth Methods


Troubleshooting


Last modified on September 15, 2026