🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)
🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)

🔧 Programmierung 🕛 kürzlich 14 Min Lesezeit
0

Secure GitHub or any MCP Server with Okta via AgentCore Gateway

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

I've spent much of this year thinking about how to help teams adopt AI. MCPs have become a big part of that journey because all of a sudden, it seems like every company, even those who previously refused to expose an API, now has an MCP.



While this is great for end users, you need a strategy for protecting the various MCPs in use. One way to achieve this is to deploy a can help you do this. It sits in front of your MCP servers and presents MCP clients with a single endpoint where security teams can enforce organizational policy. Here's what that might look like:





If that looks like your end goal, lets start with some theory first!






Client ID Metadata Documents - CIMD



Before , but once completed, the authorization server can then use the values in the metadata document in its authorization decisions.



Unfortunately, as of May 2026, Okta authorization servers do not support CIMD.






The OAuth proxy



To workaround this, we'll need a proxy. Instead of registering the CIMD clients in Okta, we create an Okta returns an authorization URL and a session URI, and AgentCore Gateway surfaces them as a -32042 URL .



Session binding ensures that the user who initiated the tool call that needs authorization is the same user who granted consent. Without it, if the initiating user forwards the authorization URL and someone else completes the GitHub consent flow, their GitHub access token would get stored in the which signals to AgentCore that its safe to get an access token for the user, i.e bind the session . Once the binding succeeds, AgentCore Identity caches the GitHub access token for that user in the token vault, and subsequent tool calls complete normally.



, , and MCP clients that the proxy the proxy's authorization server capabilities, the presented client_id and redirect_uri against the metadata document, then Okta's authorization code, verifies the state HMAC and re-validates the CIMD redirect_uri, then forwards the code to the MCP client's original redirect URI.


/token

AgentCore Identity's 3LO return redirect, looks up the session binding, then redirects to Okta with prompt=none to silently identify the current browser user.


/sessionbinding/okta-callback

if they match.


/{full_path:path}

requests with a 400 since only CIMD clients are trusted.




Once you've coded your proxy and have it deployed, hooked up to DynamoDB, and ready to receive requests, we can proceed with setting up Okta.






Setting up Okta



Every Okta org comes with a built-in org orgs option. It is limited to 10 users but that should be more than enough for you and a few beta-testers.






Set up an Authorization Server




  1. Go to Security > API > Add Authorization Server. Enter a name, desired audience, and a description

  2. Open the authorization server you just created, click the Claims tab, and choose Add Claim

  3. Name the new claim client_id and set its value to app.clientId

  4. Set Include in token type to Access Token and choose Save

  5. Follow the same steps to add a scopes claim and set its value to app.scopes

  6. Click the Scopes tab and add any custom scopes you need

  7. Open the Access Policies tab and create an . We'll use this URL later when setting up the gateway.






    Set up an Okta client




    1. From the Okta developer console left navigation pane, click Applications

    2. Select Create App Integration

    3. Select OIDC - OpenID Connect and then Native Application as your application type

    4. Under Sign-in redirect URIs, click Add URI twice and add:


      • https://<your-proxy-domain>/callback

      • https://<your-proxy-domain>/sessionbinding/okta-callback



    5. Under Assignments select Allow everyone in your organization to access.

    6. Leave Enable immediate access with Federation Broker Mode checked. You can always return and modify these later

    7. Hit Save and copy the generated client ID and use it as the proxy's static okta client id






    Setting up AgentCore Gateway



    Before we can fully setup AgentCore Gateway, we need a .






    Setting up GitHub




    1. Go to , which routes tool calls to the right target when similar tool names exist across multiple MCP servers.




      1. Go to the Amazon Bedrock AgentCore page

      2. From the console left navigation pane, click Gateways

      3. Select Create Gateway and name your gateway

      4. Open the Additional configurations - optional drop down

      5. Select Enable Semantic Search

      6. Select Enable response streaming

      7. Choose 2025-11-25 under supported versions and click Next




      Note: exception level is enabled by default but not recommended for production, so be sure to disable it if you're creating your production gateway.







      Set up the Gateway IdP configs




      1. Select Use existing identity provider configurations

      2. Enter the .well-known/openid-configuration URL from the authorization server section above in the Discovery URL field

      3. Under JWT Authorization Configuration enter the client ID from the Okta client section above

      4. Leave the rest of the settings as default and hit Next






      Add the GitHub MCP Server as an AgentCore Gateway Target



      When using the UI to create the gateway, AWS requires you to set up at least one MCP target. In our case, this will be the GitHub MCP.




      1. Add 'github' to the autogenerated target name for easier identification

      2. Under MCP endpoint, enter the MCP Inspector. Fortunately, both VS Code and Claude Code do, hosting their CIMDs respectively. Let's use VS Code.



        You might want to use a different GitHub account from the one with which you completed the admin authorization. The reason is, as we alluded to earlier, if we make a tool call and the Gateway already has a saved token for the gateway/user pair, we might not see the full initial setup, including the elicitation. So use a different GitHub profile and accompanying Okta account to complete the steps below:




        1. Create an mcp.json at .vscode/mcp.json in an active VS Code workspace

        2. Set it up as in the example shown earlier, replacing the url with your proxy's url

        3. Click Start and complete the OAuth flow

        4. Once VS Code completes initialization and caches the tools advertised by AgentCore Gateway, make a tool call. A good candidate would be get_my_user_profile

        5. You should see the elicitation response pop up. Follow the prompts to grant consent

        6. Once consent is completed, make the tool call again

        7. Profit






        Where to go from here



        You now have a single MCP gateway endpoint protected by Okta and your users can use it to call downstream MCP servers like GitHub's. From here, adding other MCP server targets would be a natural next step. As you do this, consider whether your organization might benefit from coupling AgentCore Gateway with with Okta Authentication Policies or AgentCore Policies. Whatever you do, remember the field moves fast so make sure you're keeping up with new releases. Who knows, maybe sometime soon, we won't need a proxy anymore and AgentCore Gateway will ship with a full-on CIMD compatible authorization server.

        Vollständiger Original-Bericht
        Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
        ↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
3 Quellen
GPT-6 Astra Release Today? OpenAI’s Next Major AI Model Is Almost Here
1 Quelle
Apple accuses OpenAI of destroying evidence as trade-secrets fight intensifies
1 Quelle
Major AI platforms go down in unprecedented simultaneous outage
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Secure GitHub or any MCP Server with Okta via AgentCore Gateway

Thematisch verwandte Begriffe: Secure, GitHub, Server, with · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...