aud claim. Read OAuth 2.0 Mode first if you have not already, it covers the parts of this flow that are the same for every provider.
1. Create a Custom Authorization Server per MCPCore server
Okta’s Custom Authorization Servers each have a single Audience value, which becomes theaud claim of every token they issue. This means one authorization server maps to one MCPCore resource.
- Log in to your Okta admin console.
- Go to Security → API → Authorization Servers.
- Click Add Authorization Server.
- Set:
- Name: something recognizable, for example
mcpcore-your-subdomain - Audience:
https://{your-subdomain}.mcpcore.io/mcp, this must match your MCPCore resource URL exactly, including the/mcppath
- Name: something recognizable, for example
If you run multiple MCPCore servers from the same Okta org, each one needs its own Custom Authorization Server, since Audience is a single fixed value per server, not something Okta derives from an incoming
resource parameter.2. Add an access policy
A fresh Custom Authorization Server has no access policies, so it issues no tokens until you add one.- On your new authorization server, go to the Access Policies tab.
- Click Add New Access Policy, assign it to All clients.
- Add a rule with the grant type Authorization Code, and reasonable token lifetimes (see Token lifetime recommendations).
3. Enable Dynamic Client Registration
- On your authorization server, go to Settings.
- Confirm Dynamic Client Registration is enabled for the org (Okta orgs created after mid-2022 have this on by default under Security → API → Dynamic Client Registration).
4. Your metadata URL
{authServerId} is the ID Okta assigned your Custom Authorization Server, visible in its settings page URL. Fetch this URL directly and confirm it returns issuer, authorization_endpoint, token_endpoint, registration_endpoint, and jwks_uri.
5. Configure MCPCore
1
Open Server Settings
Go to your server’s Settings tab in the MCPCore dashboard.
2
Select OAuth 2.0
Under Security mode, select OAuth 2.0.
3
Paste the metadata URL
The authorization server metadata URL from step 4.
4
Leave Legacy token audience off
Since the Custom Authorization Server’s Audience matches your MCPCore resource URL, tokens will already carry the correct
aud.5
Save
MCPCore validates the metadata URL and activates OAuth 2.0 mode.