🔒feat: Enable OpenID Auto-Redirect (#6066)

* added feature for oidc auto redirection

* Added Cooldown logic for OIDC auto redirect for failed login attempts

* 🔧 feat: Implement custom logout redirect handling and enhance OpenID auto-redirect logic

* 🔧 refactor: Update getLoginError to use TranslationKeys for improved type safety

* 🔧 feat: Localize redirect message to OpenID provider in Login component

---------

Co-authored-by: Ruben Talstra <RubenTalstra1211@outlook.com>
This commit is contained in:
heptapod 2025-03-19 14:51:56 +01:00 committed by GitHub
parent 09abce063f
commit f95d5aaf4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 102 additions and 17 deletions

View file

@ -1,5 +1,7 @@
const getLoginError = (errorText: string) => {
const defaultError = 'com_auth_error_login';
import { TranslationKeys } from '~/hooks';
const getLoginError = (errorText: string): TranslationKeys => {
const defaultError: TranslationKeys = 'com_auth_error_login';
if (!errorText) {
return defaultError;