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
{{ message }}
Repository navigation
Support OAuth client_secret_basic and resource indicators for refresh providers #5663
OpenShell's oauth2_refresh_token provider currently sends client_id, refresh_token, and an optional client_secret in the token request body. It can include scope, but it cannot select client_secret_basic or send an OAuth resource indicator. Current minter
These are general OAuth capabilities, not MCP-specific extensions:
RFC 8414 §2 defines token_endpoint_auth_methods_supported; when omitted, the default is client_secret_basic.
RFC 8707 §2.2 defines the resource parameter on token requests, including use with a refresh token, to identify the intended protected resource. It is different from OAuth scope.
For example, an OCE MCP OAuth connection may already work with an authorization server requiring Basic client authentication and resource=https://example.com/mcp. If OpenShell takes ownership of refresh, the connection can stop working when the first access token expires. OCE already exercises this combination in its OAuth conformance test. MCP is one concrete consumer of these standard OAuth features.
Requested behavior
Allow an OAuth refresh provider to configure the OAuth client's registered token-endpoint authentication method (none, client_secret_post, or client_secret_basic) and an optional approved resource URI. On refresh, use that method and include the configured resource when required. For example:
POST /oauth/tokenAuthorization: Basic <encoded client credentials>Content-Type: application/x-www-form-urlencodedgrant_type=refresh_token&refresh_token=...&resource=https%3A%2F%2Fexample.com%2Fmcp
Preserve existing public-client and client_secret_post behavior, avoid sending the client secret in the form when Basic is selected, and test refresh with Basic plus a resource indicator. Shared client-secret references can be handled alongside #5563.
Activity