OAuthProtectedResourceMetadata returns the URL for the OAuth 2.0 Protected Resource Metadata endpoint. This endpoint is used by MCP clients to discover authorization server information.
(r *http.Request)
| 453 | // OAuthProtectedResourceMetadata returns the URL for the OAuth 2.0 Protected Resource Metadata endpoint. |
| 454 | // This endpoint is used by MCP clients to discover authorization server information. |
| 455 | func (u *URLs) OAuthProtectedResourceMetadata(r *http.Request) string { |
| 456 | return urlutil.MustJoinURL(u.OAuthExternalResourceURL(r), "/.well-known/oauth-protected-resource") |
| 457 | } |
| 458 | |
| 459 | // OAuthRegister returns the URL for the OAuth 2.0 Dynamic Client Registration endpoint. |
| 460 | func (u *URLs) OAuthRegister() string { |
no test coverage detected