Under the e-mail and password form, a button takes the redirect flow (Authorization Code + PKCE), so the password is only ever typed at the identity server. The routes for it were already there; the page had no way to reach them. A Pireon client allows one grant type and the panel's is a password client, so the redirect flow can use its own: PIREON_REDIRECT_CLIENT_ID and PIREON_REDIRECT_CLIENT_SECRET (the main client when they are empty). The button shows up once that client is set, or with PIREON_REDIRECT_LOGIN=true. Each session renews its token with the client that issued it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 lines
1.6 KiB
PHP
29 lines
1.6 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
return [
|
|
'sign_in' => 'Entra',
|
|
'sign_in_intro' => 'Accedeix amb el teu correu i la teva contrasenya, o amb el teu compte de Pireon.',
|
|
'continue_with_pireon' => 'Entra amb Pireon',
|
|
'signing_in' => 'Comprovant les teves credencials…',
|
|
'password_grant_disabled' => 'L\'accés amb contrasenya està desactivat en aquesta instal·lació. Avisa un administrador.',
|
|
'server_unavailable' => 'El servidor d\'identitat no respon. No és cosa de les teves credencials; avisa un administrador.',
|
|
'sign_out' => 'Tanca la sessió',
|
|
|
|
'denied' => 'No s\'ha completat l\'accés: :reason',
|
|
'inactive' => 'El teu compte està desactivat. Contacta amb un administrador.',
|
|
'pending_approval' => 'El teu registre encara està pendent d\'aprovació per part d\'un administrador.',
|
|
'no_permission' => 'El teu compte no té permís per accedir a aquest tauler. Demana a un administrador que t\'assigni un rol.',
|
|
'cannot_grant_super_admin' => 'Només un super administrador pot concedir el rol de super administrador.',
|
|
|
|
'not_configured_title' => 'El client OAuth no està configurat',
|
|
'not_configured_body' => 'Registra aquesta aplicació a :server i omple PIREON_CLIENT_ID i PIREON_CLIENT_SECRET al fitxer .env.',
|
|
|
|
'account' => [
|
|
'remote_roles' => 'Rols al servidor d\'identitat',
|
|
'remote_roles_hint' => 'Només informatius: els permisos d\'aquesta aplicació es gestionen aquí, no al servidor OAuth.',
|
|
'managed_remotely' => 'Aquest camp es gestiona a :server i s\'actualitza a cada inici de sessió.',
|
|
],
|
|
];
|