-
Notifications
You must be signed in to change notification settings - Fork 149
[Docs] Add note on API token organization scope limitations #860
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
[Docs] Add note on API token organization scope limitations #860
Conversation
✅ Deploy Preview for bejewelled-pegasus-b0ce81 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Co-authored-by: aabidsofi19 <[email protected]>
|
|
||
| Access tokens are opaque tokens that conform to the OAuth 2.0 framework. They contain authorization information, but not identity information. They are used to authenticate and provide authorization information to Layer5 APIs. Access tokens are associated with a user account. They have an unlimited lifetime and can be revoked at any time. | ||
|
|
||
| {{< alert type="info" title="API Tokens are User-Scoped, Not Organization-Scoped" >}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aabidsofi19 do you want these two additions swapped with the callout on the API docs and the description in the Organizations docs or is this fine?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah , API docs seems better place .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot move the actual description of how scope api call to org in rest api docs , and inside the callouts in tokens page refer to them .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simplified the tokens.md callout to just reference the REST API docs. The detailed description and examples remain in api-reference.md. See commit 33717dc.
Co-authored-by: aabidsofi19 <[email protected]>

Notes for Reviewers
This PR fixes #1386
API tokens are user-scoped, not organization-scoped. Users with membership in multiple organizations need to understand how to explicitly control which organization their API requests operate on.
Changes
layer5-current-orgidheader for per-request org targetingExample
Screenshots
Tokens page

REST API page

Signed commits
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.