From fb4645a3dc9f0c03c7a3a7eb209322063ea76857 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Thu, 10 Sep 2015 20:41:51 +0200 Subject: [PATCH] KEYCLOAK-1833 Fix error messages for identity brokering --- .../login/messages/messages_de.properties | 22 +++++++++---------- .../login/messages/messages_en.properties | 22 +++++++++---------- .../login/messages/messages_it.properties | 22 +++++++++---------- .../login/messages/messages_pt_BR.properties | 22 +++++++++---------- .../broker/IdentityProviderHintTest.java | 2 +- 5 files changed, 45 insertions(+), 45 deletions(-) mode change 100755 => 100644 forms/common-themes/src/main/resources/theme/base/login/messages/messages_de.properties mode change 100755 => 100644 forms/common-themes/src/main/resources/theme/base/login/messages/messages_en.properties mode change 100755 => 100644 forms/common-themes/src/main/resources/theme/base/login/messages/messages_it.properties mode change 100755 => 100644 forms/common-themes/src/main/resources/theme/base/login/messages/messages_pt_BR.properties diff --git a/forms/common-themes/src/main/resources/theme/base/login/messages/messages_de.properties b/forms/common-themes/src/main/resources/theme/base/login/messages/messages_de.properties old mode 100755 new mode 100644 index 3050953770..4cbbf0f44e --- a/forms/common-themes/src/main/resources/theme/base/login/messages/messages_de.properties +++ b/forms/common-themes/src/main/resources/theme/base/login/messages/messages_de.properties @@ -168,24 +168,24 @@ registrationNotAllowedMessage=Registrierung nicht erlaubt. resetCredentialNotAllowedMessage=Reset Credential not allowed permissionNotApprovedMessage=Berechtigung nicht best\u00E4tigt. -noRelayStateInResponseMessage=Kein relay state in der Antwort von dem Identity Provider [{0}]. -identityProviderAlreadyLinkedMessage=Die Identit\u00E4t welche von dem Identity Provider [{0}] zur\u00FCckgegeben wurde, ist bereits mit einem anderen Benutzer verkn\u00FCpft. +noRelayStateInResponseMessage=Kein relay state in der Antwort von dem Identity Provider. +identityProviderAlreadyLinkedMessage=Die Identit\u00E4t welche von dem Identity Provider zur\u00FCckgegeben wurde, ist bereits mit einem anderen Benutzer verkn\u00FCpft. insufficientPermissionMessage=Nicht gen\u00FCgend Rechte um die Identit\u00E4t zu verkn\u00FCpfen. couldNotProceedWithAuthenticationRequestMessage=Konnte den Authentifizierungs Request nicht weiter verarbeiten. -couldNotObtainTokenMessage=Konnte kein token vom Identity Provider [{0}] entnehmen. -unexpectedErrorRetrievingTokenMessage=Unerwarteter Fehler w\u00E4hrend dem Empfang des Token von dem Identity Provider [{0}]. -unexpectedErrorHandlingResponseMessage=Unerwarteter Fehler w\u00E4hrend der Bearbeitung des Respons vom Identity Provider [{0}]. -identityProviderAuthenticationFailedMessage=Authentifizierung Fehlgeschlagen. Konnte sich mit dem Identity Provider [{0}] nicht authentifizieren. -couldNotSendAuthenticationRequestMessage=Konnte Authentifizierungs Request nicht an den Identity Provider [{0}] schicken. -unexpectedErrorHandlingRequestMessage=Unerwarteter Fehler w\u00E4hrend der Bearbeitung des Requests zum Identity Provider [{0}]. +couldNotObtainTokenMessage=Konnte kein token vom Identity Provider entnehmen. +unexpectedErrorRetrievingTokenMessage=Unerwarteter Fehler w\u00E4hrend dem Empfang des Token von dem Identity Provider. +unexpectedErrorHandlingResponseMessage=Unerwarteter Fehler w\u00E4hrend der Bearbeitung des Respons vom Identity Provider. +identityProviderAuthenticationFailedMessage=Authentifizierung Fehlgeschlagen. Konnte sich mit dem Identity Provider nicht authentifizieren. +couldNotSendAuthenticationRequestMessage=Konnte Authentifizierungs Request nicht an den Identity Provider schicken. +unexpectedErrorHandlingRequestMessage=Unerwarteter Fehler w\u00E4hrend der Bearbeitung des Requests zum Identity Provider. invalidAccessCodeMessage=Ung\u00FCltiger Access-Code. sessionNotActiveMessage=Session nicht aktiv. unknownCodeMessage=Unbekannter Code, bitte melden Sie sich erneut \u00FCber die Applikation an. invalidCodeMessage=Ung\u00FCltiger Code, bitte melden Sie sich erneut \u00FCber die Applikation an. identityProviderUnexpectedErrorMessage=Unerwarteter Fehler w\u00E4hrend der Authentifizierung mit dem Identity Provider. -identityProviderNotFoundMessage=Konnte kein Identity Provider mit der Identit\u00E4t [{0}] finden. -realmSupportsNoCredentialsMessage=Realm [{0}] unterst\u00FCtzt keine Credential Typen. -identityProviderNotUniqueMessage=Realm [{0}] unterst\u00FCtz mehrere Identity Providers. +identityProviderNotFoundMessage=Konnte kein Identity Provider mit der Identit\u00E4t finden. +realmSupportsNoCredentialsMessage=Realm unterst\u00FCtzt keine Credential Typen. +identityProviderNotUniqueMessage=Realm unterst\u00FCtz mehrere Identity Providers. invalidParameterMessage=Invalid parameter\: {0} missingParameterMessage=Missing parameter\: {0} diff --git a/forms/common-themes/src/main/resources/theme/base/login/messages/messages_en.properties b/forms/common-themes/src/main/resources/theme/base/login/messages/messages_en.properties old mode 100755 new mode 100644 index bc10220b0d..3dfb8eab9a --- a/forms/common-themes/src/main/resources/theme/base/login/messages/messages_en.properties +++ b/forms/common-themes/src/main/resources/theme/base/login/messages/messages_en.properties @@ -171,23 +171,23 @@ registrationNotAllowedMessage=Registration not allowed resetCredentialNotAllowedMessage=Reset Credential not allowed permissionNotApprovedMessage=Permission not approved. -noRelayStateInResponseMessage=No relay state in response from identity provider [{0}]. -identityProviderAlreadyLinkedMessage=The identity returned by the identity provider [{0}] is already linked to another user. +noRelayStateInResponseMessage=No relay state in response from identity provider. +identityProviderAlreadyLinkedMessage=The identity returned by the identity provider is already linked to another user. insufficientPermissionMessage=Insufficient permissions to link identities. couldNotProceedWithAuthenticationRequestMessage=Could not proceed with authentication request to identity provider. -couldNotObtainTokenMessage=Could not obtain token from identity provider [{0}]. -unexpectedErrorRetrievingTokenMessage=Unexpected error when retrieving token from identity provider [{0}]. -unexpectedErrorHandlingResponseMessage=Unexpected error when handling response from identity provider [{0}]. -identityProviderAuthenticationFailedMessage=Authentication failed. Could not authenticate with identity provider [{0}]. -couldNotSendAuthenticationRequestMessage=Could not send authentication request to identity provider [{0}]. -unexpectedErrorHandlingRequestMessage=Unexpected error when handling authentication request to identity provider [{0}]. +couldNotObtainTokenMessage=Could not obtain token from identity provider. +unexpectedErrorRetrievingTokenMessage=Unexpected error when retrieving token from identity provider. +unexpectedErrorHandlingResponseMessage=Unexpected error when handling response from identity provider. +identityProviderAuthenticationFailedMessage=Authentication failed. Could not authenticate with identity provider. +couldNotSendAuthenticationRequestMessage=Could not send authentication request to identity provider. +unexpectedErrorHandlingRequestMessage=Unexpected error when handling authentication request to identity provider. invalidAccessCodeMessage=Invalid access code. sessionNotActiveMessage=Session not active. invalidCodeMessage=An error occurred, please login again through your application. identityProviderUnexpectedErrorMessage=Unexpected error when authenticating with identity provider -identityProviderNotFoundMessage=Could not find an identity provider with the identifier [{0}]. -realmSupportsNoCredentialsMessage=Realm [{0}] does not support any credential type. -identityProviderNotUniqueMessage=Realm [{0}] supports multiple identity providers. Could not determine which identity provider should be used to authenticate with. +identityProviderNotFoundMessage=Could not find an identity provider with the identifier. +realmSupportsNoCredentialsMessage=Realm does not support any credential type. +identityProviderNotUniqueMessage=Realm supports multiple identity providers. Could not determine which identity provider should be used to authenticate with. emailVerifiedMessage=Your email address has been verified. locale_de=German diff --git a/forms/common-themes/src/main/resources/theme/base/login/messages/messages_it.properties b/forms/common-themes/src/main/resources/theme/base/login/messages/messages_it.properties old mode 100755 new mode 100644 index e57afcdd16..4833b9be18 --- a/forms/common-themes/src/main/resources/theme/base/login/messages/messages_it.properties +++ b/forms/common-themes/src/main/resources/theme/base/login/messages/messages_it.properties @@ -166,23 +166,23 @@ resetCredentialNotAllowedMessage=Reset Credential not allowed permissionNotApprovedMessage=Permesso non approvato. -noRelayStateInResponseMessage=Nessun relay state in risposta dall''identity provider [{0}]. -identityProviderAlreadyLinkedMessage=L''identita'' restituita dall''identity provider [{0}] e'' gia'' associata ad un altro utente. +noRelayStateInResponseMessage=Nessun relay state in risposta dall''identity provider. +identityProviderAlreadyLinkedMessage=L''identita'' restituita dall''identity provider e'' gia'' associata ad un altro utente. insufficientPermissionMessage=Permessi insufficienti per associare le identita''. couldNotProceedWithAuthenticationRequestMessage=Non posso procedere con la richiesta di autenticazione all''identity provider. -couldNotObtainTokenMessage=Non posso ottenere un token dall''identity provider [{0}]. -unexpectedErrorRetrievingTokenMessage=Errore inaspettato nella gestione del token dall''identity provider [{0}]. -unexpectedErrorHandlingResponseMessage=Errore inaspettato nella gestione della risposta dall''identity provider [{0}]. -identityProviderAuthenticationFailedMessage=Autenticazione fallita. Non posso effettuare l''autenticazione con l''identity provider [{0}]. -couldNotSendAuthenticationRequestMessage=Non posso inviare la richiesta di autenticazione all''identity provider [{0}]. -unexpectedErrorHandlingRequestMessage=Errore imprevisto durante l''autenticazione con identity provider [{0}]. +couldNotObtainTokenMessage=Non posso ottenere un token dall''identity provider. +unexpectedErrorRetrievingTokenMessage=Errore inaspettato nella gestione del token dall''identity provider. +unexpectedErrorHandlingResponseMessage=Errore inaspettato nella gestione della risposta dall''identity provider. +identityProviderAuthenticationFailedMessage=Autenticazione fallita. Non posso effettuare l''autenticazione con l''identity provider. +couldNotSendAuthenticationRequestMessage=Non posso inviare la richiesta di autenticazione all''identity provider. +unexpectedErrorHandlingRequestMessage=Errore imprevisto durante l''autenticazione con identity provider. invalidAccessCodeMessage=Codice di accesso non valido. sessionNotActiveMessage=Sessione non attiva. invalidCodeMessage=Si e'' verificato un errore, per piacere effettua di nuovo il login nella tua applicazione. identityProviderUnexpectedErrorMessage=Errore imprevisto durante l''autenticazione con identity provider -identityProviderNotFoundMessage=Non posso trovare un identity provider con l''identificativo [{0}]. -realmSupportsNoCredentialsMessage=Il Realm [{0}] non supporta nessun tipo di credenziali. -identityProviderNotUniqueMessage=Il Realm [{0}] supporta piu'' di un identity provider. Non posso determinare quale identity provider con il quale autenticarti. +identityProviderNotFoundMessage=Non posso trovare un identity provider con l''identificativo. +realmSupportsNoCredentialsMessage=Il Realm non supporta nessun tipo di credenziali. +identityProviderNotUniqueMessage=Il Realm supporta piu'' di un identity provider. Non posso determinare quale identity provider con il quale autenticarti. emailVerifiedMessage=Il tuo indirizzo email e'' stato verificato. locale_de=German diff --git a/forms/common-themes/src/main/resources/theme/base/login/messages/messages_pt_BR.properties b/forms/common-themes/src/main/resources/theme/base/login/messages/messages_pt_BR.properties old mode 100755 new mode 100644 index 89c8808665..d2b1b65204 --- a/forms/common-themes/src/main/resources/theme/base/login/messages/messages_pt_BR.properties +++ b/forms/common-themes/src/main/resources/theme/base/login/messages/messages_pt_BR.properties @@ -171,23 +171,23 @@ registrationNotAllowedMessage=Registro n\u00E3o permitido. resetCredentialNotAllowedMessage=Reset Credential not allowed permissionNotApprovedMessage=Permiss\u00E3o n\u00E3o aprovada. -noRelayStateInResponseMessage=Sem estado de retransmiss\u00E3o na resposta do provedor de identidade [{0}]. -identityProviderAlreadyLinkedMessage=A identidade retornado pelo provedor de identidade [{0}] j\u00E1 est\u00E1 vinculado a outro usu\u00E1rio. +noRelayStateInResponseMessage=Sem estado de retransmiss\u00E3o na resposta do provedor de identidade. +identityProviderAlreadyLinkedMessage=A identidade retornado pelo provedor de identidade j\u00E1 est\u00E1 vinculado a outro usu\u00E1rio. insufficientPermissionMessage=Permiss\u00F5es insuficientes para vincular identidades. couldNotProceedWithAuthenticationRequestMessage=N\u00E3o foi poss\u00EDvel proceder \u00E0 solicita\u00E7\u00E3o de autentica\u00E7\u00E3o para provedor de identidade. -couldNotObtainTokenMessage=N\u00E3o foi poss\u00EDvel obter token do provedor de identidade [{0}]. -unexpectedErrorRetrievingTokenMessage=Erro inesperado ao recuperar token do provedor de identidade [{0}]. -unexpectedErrorHandlingResponseMessage=Erro inesperado ao manusear resposta do provedor de identidade [{0}]. -identityProviderAuthenticationFailedMessage=Falha na autentica\u00E7\u00E3o. N\u00E3o foi poss\u00EDvel autenticar com o provedor de identidade [{0}]. -couldNotSendAuthenticationRequestMessage=N\u00E3o foi poss\u00EDvel enviar solicita\u00E7\u00E3o de autentica\u00E7\u00E3o para o provedor de identidade [{0}]. -unexpectedErrorHandlingRequestMessage=Erro inesperado ao manusear pedido de autentica\u00E7\u00E3o para provedor de identidade [{0}]. +couldNotObtainTokenMessage=N\u00E3o foi poss\u00EDvel obter token do provedor de identidade. +unexpectedErrorRetrievingTokenMessage=Erro inesperado ao recuperar token do provedor de identidade. +unexpectedErrorHandlingResponseMessage=Erro inesperado ao manusear resposta do provedor de identidade. +identityProviderAuthenticationFailedMessage=Falha na autentica\u00E7\u00E3o. N\u00E3o foi poss\u00EDvel autenticar com o provedor de identidade. +couldNotSendAuthenticationRequestMessage=N\u00E3o foi poss\u00EDvel enviar solicita\u00E7\u00E3o de autentica\u00E7\u00E3o para o provedor de identidade. +unexpectedErrorHandlingRequestMessage=Erro inesperado ao manusear pedido de autentica\u00E7\u00E3o para provedor de identidade. invalidAccessCodeMessage=C\u00F3digo de acesso inv\u00E1lido. sessionNotActiveMessage=Sess\u00E3o inativa. invalidCodeMessage=C\u00F3digo inv\u00E1lido, por favor fa\u00E7a login novamente atrav\u00E9s de sua aplica\u00E7\u00E3o. identityProviderUnexpectedErrorMessage=Erro inesperado durante a autentica\u00E7\u00E3o com o provedor de identidade -identityProviderNotFoundMessage=N\u00E3o foi poss\u00EDvel encontrar um provedor de identidade com o identificador [{0}]. -realmSupportsNoCredentialsMessage=O realm [{0}] n\u00E3o suporta qualquer tipo de credencial. -identityProviderNotUniqueMessage=O realm [{0}] suporta m\u00FAltiplos provedores de identidade. N\u00E3o foi poss\u00EDvel determinar qual o provedor de identidade deve ser usado para se autenticar. +identityProviderNotFoundMessage=N\u00E3o foi poss\u00EDvel encontrar um provedor de identidade com o identificador. +realmSupportsNoCredentialsMessage=O realm n\u00E3o suporta qualquer tipo de credencial. +identityProviderNotUniqueMessage=O realm suporta m\u00FAltiplos provedores de identidade. N\u00E3o foi poss\u00EDvel determinar qual o provedor de identidade deve ser usado para se autenticar. emailVerifiedMessage=O seu endere\u00E7o de e-mail foi confirmado. locale_de=Deutsch diff --git a/testsuite/integration/src/test/java/org/keycloak/testsuite/broker/IdentityProviderHintTest.java b/testsuite/integration/src/test/java/org/keycloak/testsuite/broker/IdentityProviderHintTest.java index 8b751e0afe..66d3556d98 100755 --- a/testsuite/integration/src/test/java/org/keycloak/testsuite/broker/IdentityProviderHintTest.java +++ b/testsuite/integration/src/test/java/org/keycloak/testsuite/broker/IdentityProviderHintTest.java @@ -77,6 +77,6 @@ public class IdentityProviderHintTest { assertTrue(this.driver.getCurrentUrl().startsWith("http://localhost:8081/auth/realms/realm-with-broker/protocol/openid-connect/auth")); - assertEquals("Could not find an identity provider with the identifier [invalid-idp-id].", this.driver.findElement(By.className("instruction")).getText()); + assertEquals("Could not find an identity provider with the identifier.", this.driver.findElement(By.className("instruction")).getText()); } }