-
Notifications
You must be signed in to change notification settings - Fork 4k
Improve OAuth2 scopes handling in OpenAPI #3775
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
Improve OAuth2 scopes handling in OpenAPI #3775
Conversation
🦋 Changeset detectedLatest commit: 8aa46bf The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
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.
Pull Request Overview
This PR enhances OAuth2 security scope resolution and improves UI styling consistency across the OpenAPI documentation components.
Key changes:
- Updates OAuth2 scope resolution to filter operation-specific scopes from security scheme definitions rather than showing all scopes
- Adds conditional rendering logic to display only operation-relevant OAuth2 scopes in the UI
- Applies consistent border-radius styling patterns across OpenAPI components using
straight-cornersandcircular-cornersvariants
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| packages/react-openapi/src/resolveOpenAPIOperation.ts | Updated resolveSecurityScopes to filter and return only operation-specific OAuth2 scopes from security scheme flow definitions |
| packages/react-openapi/src/OpenAPISecurities.tsx | Modified OAuth2 rendering to conditionally display operation-scoped OAuth2 flows, and added scopes property to security type |
| packages/gitbook/src/components/DocumentView/OpenAPI/style.css | Applied consistent border-radius styling patterns using responsive design tokens for corner styles and improved dark mode hover states |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.