-
Notifications
You must be signed in to change notification settings - Fork 2
Add docs for resource indicator #284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -728,6 +728,30 @@ thv run https://api.example.com/mcp \ | |
| --remote-auth-scopes read,write,admin | ||
| ``` | ||
|
|
||
| #### Resource indicator (RFC 8707) | ||
|
|
||
| When authenticating to remote MCP servers, you can specify a resource indicator | ||
| as defined by [RFC 8707](https://www.rfc-editor.org/rfc/rfc8707.html). This | ||
| allows the authorization server to return an access token with a scoped | ||
| audience, which will then be passed to and validated by the remote MCP server. | ||
|
|
||
| By default, ToolHive automatically uses the remote server URL as the resource | ||
| indicator when authenticating. The URL is validated, normalized (lowercase | ||
| scheme and host, fragments stripped), and included in the OAuth token request. | ||
|
|
||
| To explicitly set a different resource indicator, use the | ||
| `--remote-auth-resource` flag: | ||
|
|
||
| ```bash | ||
| thv run https://api.example.com/mcp \ | ||
| ... \ | ||
| --remote-auth-resource https://api.example.com | ||
|
Comment on lines
+746
to
+748
|
||
| ``` | ||
|
|
||
| The resource parameter must include a scheme and host, and cannot contain | ||
| fragments. If you provide an invalid resource parameter, ToolHive will return an | ||
| error. | ||
|
|
||
| #### Custom authentication timeout | ||
|
|
||
| Adjust the authentication timeout for slow networks: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.