OPS-475: Fix Keycloak's account links (#181)

This commit is contained in:
Ildar Galeev 2024-05-29 13:53:36 +07:00 committed by GitHub
parent 27cdf3c170
commit 1368639ac7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 19 deletions

View File

@ -30,6 +30,7 @@
"apikeys",
"anapi",
"libphonenumber",
"signingin",
"SNILS",
"ОГРН",

View File

@ -23,20 +23,12 @@ export class UserComponent {
username = this.keycloakService.getUsername();
activeOrg$ = this.contextOrganizationService.organization$;
keycloakAccountEndpoint = `${this.config.keycloakEndpoint}/auth/realms/external/account/`;
keycloakAccountEndpoint = `${this.config.keycloakEndpoint}/auth/realms/external/account/#`;
userLinksConfig$ = this.transloco.selectTranslation('components').pipe(
map(() => [
{
title: this.transloco.translate('actionbar.user.changePassword', {}, 'components'),
href: `${this.keycloakAccountEndpoint}/password`,
},
{
title: this.transloco.translate('actionbar.user.sessions', {}, 'components'),
href: `${this.keycloakAccountEndpoint}/sessions`,
},
{
title: this.transloco.translate('actionbar.user.twoFactorAuth', {}, 'components'),
href: `${this.keycloakAccountEndpoint}/totp`,
title: this.transloco.translate('actionbar.user.accountSecurity', {}, 'components'),
href: `${this.keycloakAccountEndpoint}/security/signingin`,
},
]),
);

View File

@ -4,12 +4,10 @@
"title": "Your organizations"
},
"user": {
"changePassword": "Change password",
"accountSecurity": "Account security",
"logout": "Logout",
"orgList": "Organization list",
"selectActiveOrg": "Choose an active organization",
"sessions": "Session management",
"twoFactorAuth": "Two-step authentication"
"selectActiveOrg": "Choose an active organization"
}
},
"apiModelDetails": {

View File

@ -4,12 +4,10 @@
"title": "Ваши организации"
},
"user": {
"changePassword": "Сменить пароль",
"accountSecurity": "Безопасность учетной записи",
"logout": "Выход",
"orgList": "Список организаций",
"selectActiveOrg": "Выбрать активную организацию",
"sessions": "Управление сессиями",
"twoFactorAuth": "Двухэтапная аутентификация"
"selectActiveOrg": "Выбрать активную организацию"
}
},
"apiModelDetails": {