-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
feat(oauth): Add UI for creating and viewing public OAuth clients #106654
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
Conversation
- Add isPublic field to API application serializer - Update API endpoint to accept isPublic parameter when creating applications - Add client type selection modal when creating new applications - Show 'Public Client' or 'Confidential Client' tag on application details - Hide client secret section for public clients - Add info alert explaining public client behavior - Update frontend and backend tests
|
🚨 Warning: This pull request contains Frontend and Backend changes! It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently. Have questions? Please ask in the |
- Change Tag prop from 'type' to 'variant' (and 'default' to 'muted') - Change Alert prop from 'type' to 'variant' - Fix CreateApplicationModalProps to not extend full ModalRenderProps
…ecret on public clients - Replace custom ButtonBar styled component with existing ButtonBar from sentry/components - Add backend check to return 400 error when attempting to rotate secret for public clients - Add test to verify public clients cannot rotate secrets
- Move client type tag to subtitle in SettingsPageHeader for proper heading accessibility - Update acceptance test to handle new client type selection modal
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.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
Address PR review comment - add isPublic: false to mock responses in 'renders basic details for confidential client' and 'handles client secret rotation' tests to match the ApiApplication type definition.
Summary
Adds frontend UI support for creating and viewing public OAuth clients, building on the backend support added in #106451.
Changes
Backend (
api_applications.py):isPublicparameter when creating new applicationsisPublic=True, create application withclient_secret=NoneSerializer:
is_publicfield toApiApplicationSerializeroutputFrontend UI:
Screenshots
Client type selection when creating new application
Public client details page showing no client secret
Test Plan
isPublicparameter handlingDepends on #106451 (merged)
Closes #99002