N°7423 - Forbid UserTokens to be able to connect to the backoffice (or any portal) - add context to users

This commit is contained in:
Eric Espie
2024-04-30 11:14:32 +02:00
parent 24cf28f09a
commit 23e0988838
12 changed files with 199 additions and 16 deletions

View File

@@ -209,12 +209,15 @@ Operators:<br/>
'Core:AttributeTag' => 'Tags',
'Core:AttributeTag+' => '',
'Core:Context=REST/JSON' => 'REST',
'Core:Context=REST/JSON' => 'Webservice',
'Core:Context=Synchro' => 'Synchro',
'Core:Context=Setup' => 'Setup',
'Core:Context=GUI:Console' => 'Console',
'Core:Context=CRON' => 'cron',
'Core:Context=CRON' => 'Background tasks',
'Core:Context=GUI:Portal' => 'Portal',
'Core:Context=GUI' => 'GUI',
'Core:Context=Import' => 'Import',
'Core:Context=Export' => 'Export',
));

View File

@@ -175,6 +175,8 @@ Dict::Add('EN US', 'English', 'English', array(
'Class:User/Attribute:status+' => 'Whether the user account is enabled or disabled.',
'Class:User/Attribute:status/Value:enabled' => 'Enabled',
'Class:User/Attribute:status/Value:disabled' => 'Disabled',
'Class:User/Attribute:allowed_contexts' => 'Allowed authentication contexts',
'Class:User/Attribute:allowed_contexts+' => 'List of authentication contexts that the user is allowed to access',
'Class:User/Error:LoginMustBeUnique' => 'Login must be unique - "%1$s" is already being used.',
'Class:User/Error:AtLeastOneProfileIsNeeded' => 'At least one profile must be assigned to this user.',

View File

@@ -161,12 +161,15 @@ Opérateurs :<br/>
'Core:FriendlyName-Description' => 'Nom complet',
'Core:AttributeTag' => 'Taxon',
'Core:AttributeTag+' => '',
'Core:Context=REST/JSON' => 'REST',
'Core:Context=REST/JSON' => 'Webservice',
'Core:Context=Synchro' => 'Synchro',
'Core:Context=Setup' => 'Setup',
'Core:Context=GUI:Console' => 'Console',
'Core:Context=CRON' => 'cron',
'Core:Context=CRON' => 'Tâche de fond',
'Core:Context=GUI:Portal' => 'Portal',
'Core:Context=GUI' => 'Interface graphique',
'Core:Context=Import' => 'Import',
'Core:Context=Export' => 'Export',
));

View File

@@ -160,6 +160,8 @@ Dict::Add('FR FR', 'French', 'Français', array(
'Class:User/Attribute:status+' => 'Est-ce que ce compte utilisateur est actif, ou non?',
'Class:User/Attribute:status/Value:enabled' => 'Actif',
'Class:User/Attribute:status/Value:disabled' => 'Désactivé',
'Class:User/Attribute:allowed_contexts' => 'Contextes de connexion autorisés',
'Class:User/Attribute:allowed_contexts+' => 'Liste des contextes de connexion autorisés pour cet utilisateur',
'Class:User/Error:LoginMustBeUnique' => 'Le login doit être unique - "%1s" est déjà utilisé.',
'Class:User/Error:AtLeastOneProfileIsNeeded' => 'L\'utilisateur doit avoir au moins un profil.',
'Class:User/Error:ProfileNotAllowed' => 'Le profil "%1$s" ne peux pas être ajouté à son propre utilisateur, il interdit l\'accès à la console',