mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-21 12:28:46 +00:00
chore: rename authorization to role assignment (#11588)
# Which Problems Are Solved As part of the naming consistency initiative, the terms Authorization, User grants, internal authorization and other similar terms that are used in the context of assigning project roles to users are replaced by Role Assignments in the UI, API docs, and documentation. # How the Problems Are Solved By replacing the following terms with Role Assignments in API docs, Console UI, and guides. - Authorization - internal authorization - external authorization - User Grant - Roles and Authorizations By adding a note in the API docs to make it clear that Authorization within the context of Authorization Service API refers to role assignments, not to OAuth authorization as it is still used in the APIs. By updating some screenshots in documentation / guides to show "Role Assignments" instead of "Authorizations" in the UI. # Additional Changes N/A # Additional Context - Closes https://github.com/zitadel/zitadel/issues/11289 --------- Co-authored-by: Copilot <[email protected]>
This commit is contained in:
co-authored by
Copilot
parent
fa5e76661a
commit
93a4ed8857
@@ -1,12 +1,14 @@
|
||||
<div class="max-width-container">
|
||||
<div class="enlarged-container">
|
||||
<div class="grants-title-row">
|
||||
<h1>{{ 'DESCRIPTIONS.AUTHORIZATIONS.TITLE' | translate }}</h1>
|
||||
<h1>{{ 'DESCRIPTIONS.ROLE_ASSIGNMENTS.TITLE' | translate }}</h1>
|
||||
<a mat-icon-button href="https://zitadel.com/docs/concepts/structure/administrators" rel="noreferrer" target="_blank">
|
||||
<mat-icon class="icon">info_outline</mat-icon>
|
||||
</a>
|
||||
</div>
|
||||
<p class="sub cnsl-secondary-text max-width-description">{{ 'DESCRIPTIONS.AUTHORIZATIONS.DESCRIPTION' | translate }}</p>
|
||||
<p class="sub cnsl-secondary-text max-width-description">
|
||||
{{ 'DESCRIPTIONS.ROLE_ASSIGNMENTS.DESCRIPTION' | translate }}
|
||||
</p>
|
||||
<cnsl-user-grants
|
||||
*ngIf="grantContext === UserGrantContext.NONE"
|
||||
[displayedColumns]="[
|
||||
|
||||
+1
-1
@@ -62,7 +62,7 @@ export class AuthUserDetailComponent implements OnInit {
|
||||
{ id: 'general', i18nKey: 'USER.SETTINGS.GENERAL' },
|
||||
{ id: 'security', i18nKey: 'USER.SETTINGS.SECURITY' },
|
||||
{ id: 'idp', i18nKey: 'USER.SETTINGS.IDP' },
|
||||
{ id: 'grants', i18nKey: 'USER.SETTINGS.USERGRANTS' },
|
||||
{ id: 'grants', i18nKey: 'USER.SETTINGS.ROLEASSIGNMENTS' },
|
||||
{ id: 'memberships', i18nKey: 'USER.SETTINGS.MEMBERSHIPS' },
|
||||
{
|
||||
id: 'metadata',
|
||||
|
||||
@@ -55,7 +55,7 @@ import { Metadata } from '@zitadel/proto/zitadel/metadata_pb';
|
||||
import { ManagementService } from 'src/app/services/mgmt.service';
|
||||
|
||||
const GENERAL: SidenavSetting = { id: 'general', i18nKey: 'USER.SETTINGS.GENERAL' };
|
||||
const GRANTS: SidenavSetting = { id: 'grants', i18nKey: 'USER.SETTINGS.USERGRANTS' };
|
||||
const GRANTS: SidenavSetting = { id: 'grants', i18nKey: 'USER.SETTINGS.ROLEASSIGNMENTS' };
|
||||
const METADATA: SidenavSetting = { id: 'metadata', i18nKey: 'USER.SETTINGS.METADATA' };
|
||||
const IDP: SidenavSetting = { id: 'idp', i18nKey: 'USER.SETTINGS.IDP' };
|
||||
const SECURITY: SidenavSetting = { id: 'security', i18nKey: 'USER.SETTINGS.SECURITY' };
|
||||
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
ORG,
|
||||
ORGSETTINGS,
|
||||
PROJECTS,
|
||||
USERGRANTS,
|
||||
ROLEASSIGNMENTS,
|
||||
USERS,
|
||||
} from './keyboard-shortcuts';
|
||||
|
||||
@@ -84,9 +84,9 @@ export class KeyboardShortcutsService implements OnDestroy {
|
||||
this.router.navigate(USERS.link);
|
||||
}
|
||||
}
|
||||
if (firstKey.code === 'KeyG' && secondKey.code === 'KeyA') {
|
||||
if (this.hasPermission(USERGRANTS)) {
|
||||
this.router.navigate(USERGRANTS.link);
|
||||
if (firstKey.code === 'KeyG' && secondKey.code === 'KeyR') {
|
||||
if (this.hasPermission(ROLEASSIGNMENTS)) {
|
||||
this.router.navigate(ROLEASSIGNMENTS.link);
|
||||
}
|
||||
}
|
||||
if (firstKey.code === 'KeyG' && secondKey.code === 'KeyF') {
|
||||
|
||||
@@ -45,10 +45,10 @@ export const USERS: KeyboardShortcut = {
|
||||
permissions: ['user.read'],
|
||||
};
|
||||
|
||||
export const USERGRANTS: KeyboardShortcut = {
|
||||
i18nKey: 'KEYBOARDSHORTCUTS.SHORTCUTS.USERGRANTS',
|
||||
export const ROLEASSIGNMENTS: KeyboardShortcut = {
|
||||
i18nKey: 'KEYBOARDSHORTCUTS.SHORTCUTS.ROLEASSIGNMENTS',
|
||||
link: ['/grants'],
|
||||
keyboardKeys: ['g', 'a'],
|
||||
keyboardKeys: ['g', 'r'],
|
||||
permissions: ['usergrant.read'],
|
||||
};
|
||||
|
||||
@@ -73,7 +73,7 @@ export const ORGSETTINGS: KeyboardShortcut = {
|
||||
permissions: ['org.read'],
|
||||
};
|
||||
|
||||
export const SIDEWIDESHORTCUTS = [ME, HOME, INSTANCE, ORG, PROJECTS, USERS, USERGRANTS, ACTIONS, DOMAINS, ORGSETTINGS];
|
||||
export const SIDEWIDESHORTCUTS = [ME, HOME, INSTANCE, ORG, PROJECTS, USERS, ROLEASSIGNMENTS, ACTIONS, DOMAINS, ORGSETTINGS];
|
||||
|
||||
export const ORGSWITCHER: KeyboardShortcut = {
|
||||
i18nKey: 'KEYBOARDSHORTCUTS.SHORTCUTS.ORGSWITCHER',
|
||||
|
||||
Reference in New Issue
Block a user