feat: Implement SSO auto-assign permission management#3062
Conversation
- Added AuthorizationGlobalConfigWrapper to handle loading and error states for authorization configurations. - Introduced AutoAssignToggleTile for toggling auto-assignment of permissions based on SSO login. - Created LearnMoreTippy for providing additional information on auto-assignment. - Developed UserAutoAssignedRoleGroupsTable to display role groups assigned via SSO. - Implemented UserPermissionConfirmationModal for confirming changes to user permissions. - Added common components and constants for SSO configuration management. - Updated SSOLogin component to integrate new auto-assign features. - Refactored UserAndGroupPermissions to utilize the new AuthorizationGlobalConfigWrapper. - Enhanced UserForm to display auto-assigned role groups and related information. - Updated routing constants to include new authorization global config route.
|
Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n |
There was a problem hiding this comment.
Pull request overview
Implements “SSO auto-assign permission management” in the Global Config Authorization area by introducing a new AutoAssign component set and wiring it into SSO login + user/group permission screens.
Changes:
- Added AutoAssign UI/components (toggle tile, learn-more tippy, confirmation modal, auto-assigned role groups table) and an authorization global-config loader wrapper + service.
- Integrated AutoAssign into SSO Login and refactored Authorization screens to use the new global-config wrapper.
- Added a new API route constant for fetching authorization global configuration.
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 13 comments.
Show a summary per file
| File | Description |
|---|---|
| src/config/constants.ts | Adds Routes.AUTHORISATION_GLOBAL_CONFIG API route constant used by the new global-config service. |
| src/Pages/GlobalConfigurations/Authorization/UserPermissions/AddEdit/UserForm.tsx | Switches User auto-assigned role group UI imports to local AutoAssign components. |
| src/Pages/GlobalConfigurations/Authorization/UserAndGroupPermissions.tsx | Always wraps user/group permission routes with AuthorizationGlobalConfigWrapper to manage auto-assign enablement. |
| src/Pages/GlobalConfigurations/Authorization/SSOLoginServices/SSOLogin.component.tsx | Integrates local AutoAssign toggle + confirmation modal; adjusts payload globalAuthConfigType behavior. |
| src/Pages/GlobalConfigurations/Authorization/SSOLoginServices/AutoAssign/* | New feature module: constants/types/service + UI components and wrapper. |
| src/Pages/GlobalConfigurations/Authorization/PermissionGroups/List/PermissionGroupContainer.tsx | Uses local PermissionGroupInfoBar gated by isAutoAssignFlowEnabled. |
| CLAUDE.md | Adds repo guidance doc (commands, structure, conventions). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n |
… and UserPermissionsInfoBar descriptions
|
Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n |
|
Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n |
…in AdditionalContent
|
Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n |
feat: add Upgrade to OSS Plus dialog and integrate into navigation
|
Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n |
… feat/auto-assign-user-permission
… feat/auto-assign-user-permission
6bd97bc
|



Description
Fixes https://github.com/devtron-labs/sprint-tasks/issues/2839
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: