mirror of
https://github.com/docker/docs.git
synced 2026-11-04 10:01:00 +00:00
sbx: document offline_access for MCP authorization
When sbx uses recorded default or resource-required scopes, it also requests offline_access if the authorization server advertises it, so the server can issue a refresh token. Explicit --scope values are requested as given. Source: docker/sandboxes#6284 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
1 parent
12d9ac4a09
commit
a9db96855a
1 file changed
+8
@@ -339,6 +339,14 @@ If none of these provide a scope set, `sbx` omits the OAuth `scope` parameter so
|
||||
the authorization server applies its default grant. Other advertised scopes
|
||||
aren't included in the fallback.
|
||||
|
||||
When `sbx` uses recorded defaults or resource-required scopes, it also
|
||||
requests `offline_access` if the authorization server advertises it. The
|
||||
server can then issue a refresh token, so you don't have to authorize again
|
||||
when the access token expires. Scopes passed to `sbx mcp auth --scope` are
|
||||
requested exactly as given, without `offline_access`. Existing credentials
|
||||
issued without a refresh token aren't upgraded; run `sbx mcp auth` again to
|
||||
request a new grant.
|
||||
|
||||
Pass `--no-scope` to suppress the recorded defaults, resource-required scopes,
|
||||
and advertised scope fallback for one authorization, without changing the
|
||||
stored defaults:
|
||||
|
||||
Reference in new issue
Block a user