MCPcopy Index your code
hub / github.com/rilldata/rill / OAuthProtectedResourceMetadata

Method OAuthProtectedResourceMetadata

admin/urls.go:455–457  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
455func (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.
460func (u *URLs) OAuthRegister() string {

Callers 1

Calls 2

MustJoinURLFunction · 0.92

Tested by

no test coverage detected