You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document authServerRef field and combined auth patterns (#702)
* Document authServerRef field and combined auth patterns
Implements changes for issue #671:
- Update auth-k8s.mdx to use authServerRef as primary example in Step 5
- Add backward compatibility note for externalAuthConfigRef
- Add combined embedded auth + AWS STS section in aws-sts.mdx
- Add authServerRef configuration section in embedded-auth-server.mdx
- Update MCPServer vs VirtualMCPServer table with authServerRef info
- Add combined auth pattern reference in backend-auth.mdx
* Address code review feedback for authServerRef docs
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Minor manual tweaks
* Address review feedback
- Remove references to backwards compatible `externalAuthConfigRef` for embedded AS
- Fix em-dash
- Emphasize that any outgoing auth can be used with `externalAuthConfigRef`
- Move "Combine embedded auth with AWS STS" to just before "next steps" on the AWS STS page
* Additional clean up
- Remove remaining reference to `authServerRef` being preferred
- Tweak the embedded AS in vMCP vs MCPServer table
- Run prettier and eslint
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
# Embedded auth server for incoming client authentication
661
+
# highlight-start
662
+
authServerRef:
663
+
kind: MCPExternalAuthConfig
664
+
name: embedded-auth-server
665
+
# highlight-end
666
+
667
+
# AWS STS for outgoing backend authentication
668
+
# highlight-start
669
+
externalAuthConfigRef:
670
+
name: aws-mcp-sts-auth
671
+
# highlight-end
672
+
673
+
# Validate JWTs issued by the embedded authorization server
674
+
oidcConfig:
675
+
type: inline
676
+
resourceUrl: https://<YOUR_DOMAIN>/mcp
677
+
inline:
678
+
# This must match the issuer in your embedded auth server config
679
+
issuer: https://<YOUR_EMBEDDED_AUTH_ISSUER>
680
+
681
+
proxyPort: 8080
682
+
transport: streamable-http
683
+
```
684
+
685
+
In this configuration:
686
+
687
+
- `authServerRef`points to the `MCPExternalAuthConfig` with
688
+
`type: embeddedAuthServer`, which handles the OAuth flow for incoming clients.
689
+
- `externalAuthConfigRef`points to the `MCPExternalAuthConfig` with
690
+
`type: awsSts`, which exchanges OIDC tokens for AWS credentials on outgoing
691
+
requests.
692
+
- `oidcConfig`validates JWTs issued by the embedded auth server. The `issuer`
693
+
must match the `issuer` in your embedded auth server's
694
+
`MCPExternalAuthConfig`.
695
+
696
+
:::info[authServerRef vs. externalAuthConfigRef]
697
+
698
+
The `authServerRef` field separates embedded auth from outgoing auth concerns.
699
+
For more details, see
700
+
[Configuring the embedded auth server with authServerRef](../concepts/embedded-auth-server.mdx#configuring-the-embedded-auth-server-with-authserverref).
0 commit comments