OpenID Connect (OIDC) with Proof Key for Code Exchange (PKCE)

Set up Okta app authentication using OpenID Connect (OIDC) with Proof Key for Code Exchange (PKCE).

About this task

Early Access release

Create an Okta app integration and grant the required API scopes using OpenID Connect (OIDC) with Proof Key for Code Exchange (PKCE) for native MCP clients such as VS Code.

  • Create the app integration
    1. In the Admin Console, go to Applications and resources > Applications.
    2. Click Create App Integration.
    3. Select OIDC - OpenID Connect as the sign-in method.
    4. Select the Application type based on your use case:
      • Web app: Select this if you're embedding the Okta Managed MCP Server into your app, such as a chatbot or a server-side web app.
      • Single-page app: Select this if you're building a browser-based app that connects directly to the Okta Managed MCP Server.
      • Native app: Select this for MCP clients such as VS Code.
    5. Click Next.
    6. Enter an App integration name, such as "Okta Managed MCP Server".
    7. In the Grant type, select Authorization code.
    8. Copy the redirect URI from your MCP client and enter it in the Sign-in redirect URIs field.
    9. In the Assignments section, select who can use this app integration.
    10. Click Save.
  • Grant Okta API scopes

    After you create the app, follow these steps to grant the required API scopes. The scopes you grant here determine which tools load for this app. See Scope-based tool loading.

    1. Select the Okta API Scopes tab.
    2. Click Grant for the required API scopes. See OAuth 2.0 scopes and the Use cases section for guidance on selecting the appropriate scopes.
    3. Go to the General tab and confirm that the Proof Key for Code Exchange (PKCE) is selected.
    4. Go to the General tab and copy the Client ID.
      Okta Admin Console showing client ID to copy
      Figure 1. Copy client ID

    You've created an app integration, configured the authentication flow, and granted the required API scopes for your Okta Managed MCP Server.