Skip to content

Commit 7ae1c35

Browse files
committed
include links to openid documentation for offline access scope
1 parent 42123cc commit 7ae1c35

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

docs/docs/features/ask/connectors.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ Changing connector scopes requires all users to re-authenticate with that connec
8383
</Warning>
8484

8585
<Note>
86-
`offline_access` is pre-selected when you add a connector that offers it because token refresh requires it. You can untick it to opt out of refresh tokens, but users will need to re-authenticate every time their access token expires. Some connectors (such as Atlassian) reject authorization entirely without it.
86+
`offline_access` is pre-selected when you add a connector that offers it because token refresh requires it. You can deselect it to opt out of refresh tokens, but users will need to re-authenticate every time their access token expires. Some connectors, such as Atlassian, reject authorization entirely without it.
87+
For more information, see the [OpenID Connect `offline_access` documentation](https://openid.net/specs/openid-connect-core-1_0.html#OfflineAccess).
8788
</Note>
8889

8990
## Tool Permissions
@@ -127,4 +128,3 @@ You can see all available connectors on this page. After you connect one, you ca
127128
</Frame>
128129
</div>
129130

130-

packages/web/src/ee/features/chat/mcp/oauthScopeUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const OAUTH_SCOPE_TOKEN_REGEX = /^[\x21\x23-\x5B\x5D-\x7E]+$/;
66
// Atlassian only honour that grant when this scope is included in the authorization request,
77
// so the admin UI pre-selects it whenever the connector advertises it. Admins can still
88
// untick it to opt out of refresh tokens.
9+
// See https://openid.net/specs/openid-connect-core-1_0.html#OfflineAccess
910
export const OFFLINE_ACCESS_SCOPE = 'offline_access';
1011

1112
export function normalizeMcpRequestedOAuthScopes(oauthScopes: string[]): string[] {

0 commit comments

Comments
 (0)