mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-04 18:08:50 +00:00
fix(login): allow fallback to local auth in case of IdP errors (#9178)
# Which Problems Are Solved The current login will always prefer external authentication (through an IdP) over local authentication. So as soon as either the user had connected to an IdP or even when the login policy was just set up to have an IdP allowed, users would be redirected to that IdP for (re)authentication. This could lead to problems, where the IdP was not available or any other error occurred in the process (such as secret expired for EntraID). Even when local authentication (passkeys or password) was allowed for the corresponding user, they would always be redirected to the IdP again, preventing any authentication. If admins were affected, they might not even be able to update the client secret of the IdP. # How the Problems Are Solved Errors during the external IdP flow are handled in an `externalAuthFailed` function, which will check if the organisation allows local authentication and if the user has set up such. If either password or passkeys is set up, the corresponding login page will be presented to the user. As already with local auth passkeys is preferred over password authentication. The user is informed that the external login failed and fail back to local auth as an error on the corresponding page in a focused mode. Any interaction or after 5 second the focus mode is disabled. # Additional Changes None. # Additional Context closes #6466
This commit is contained in:
@@ -505,6 +505,10 @@ Errors:
|
||||
CreationNotAllowed: 이 제공자에서는 새 사용자 생성을 허용하지 않습니다
|
||||
LinkingNotAllowed: 이 제공자에서는 사용자를 연결할 수 없습니다
|
||||
NoOptionAllowed: 이 제공자에서는 생성과 연결이 모두 허용되지 않습니다. 관리자에게 문의하세요.
|
||||
LoginFailedSwitchLocal: |
|
||||
외부 IDP에서 로그인에 실패했습니다. 로컬 로그인으로 돌아갑니다.
|
||||
|
||||
오류 세부 정보: {{.Details}}
|
||||
GrantRequired: 로그인 불가. 사용자는 애플리케이션에서 최소한 하나의 권한이 필요합니다. 관리자에게 문의하세요.
|
||||
ProjectRequired: 로그인 불가. 사용자의 조직이 프로젝트에 허가되어야 합니다. 관리자에게 문의하세요.
|
||||
IdentityProvider:
|
||||
|
||||
Reference in New Issue
Block a user