0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 21:45:25 +08:00
discourse/plugins/discourse-ai/spec/lib/mcp
Natalie Tay edead80936
DEV: Support other OAuth token auth methods (#41219)
Some MCP OAuth providers only support `client_secret_post` at the token
endpoint.

This stores the discovered token endpoint auth methods and reuses them
for callback and refresh flows. Here's an example of what we're now
saving as part of this change e.g.

```
  {
    ...
    "oauth_status": "connected",
    "oauth_issuer": "https://mcp.hubspot.com",
    "oauth_authorization_endpoint": "https://mcp.hubspot.com/oauth/authorize/user",
    "oauth_token_endpoint": "https://mcp.hubspot.com/oauth/v3/token",
    "oauth_token_endpoint_auth_methods_supported": ["client_secret_post"],
    ...
  }
```
2026-06-26 20:30:53 +08:00
..
client_spec.rb FEATURE: Add advanced OAuth options for MCP servers (#38913) 2026-04-01 08:47:23 +11:00
oauth_client_registration_spec.rb
oauth_flow_spec.rb DEV: Support other OAuth token auth methods (#41219) 2026-06-26 20:30:53 +08:00
tool_registry_spec.rb