Skip to content

Commit 62342e0

Browse files
committed
Use string from resource
1 parent fdb8781 commit 62342e0

13 files changed

+44
-2
lines changed

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/ActiveDirectoryAuthenticationProvider.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public override async Task<SqlAuthenticationToken> AcquireTokenAsync(SqlAuthenti
235235

236236
if (clientAssertionCredential == null)
237237
{
238-
throw new CredentialUnavailableException("FederatedIdentityCredentials authentication unavailable. The required environment variables are not fully configured.");
238+
throw new CredentialUnavailableException(Strings.AAD_FIC_Invalid_Setup);
239239
}
240240
AccessToken accessToken = await clientAssertionCredential.GetTokenAsync(tokenRequestContext, cts.Token).ConfigureAwait(false);
241241
SqlClientEventSource.Log.TryTraceEvent("AcquireTokenAsync | Acquired access token for Federated Identity Credentials auth mode. Expiry Time: {0}", accessToken.ExpiresOn);

src/Microsoft.Data.SqlClient/src/Resources/Strings.Designer.cs

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Microsoft.Data.SqlClient/src/Resources/Strings.de.resx

+3
Original file line numberDiff line numberDiff line change
@@ -4737,4 +4737,7 @@
47374737
<data name="SQL_RemoteCertificateNotAvailable" xml:space="preserve">
47384738
<value>Das Zertifikat ist während der Überprüfung des Zertifikats nicht verfügbar.</value>
47394739
</data>
4740+
<data name="AAD_FIC_Invalid_Setup" xml:space="preserve">
4741+
<value>Die Authentifizierung mit Federated Identity Credentials ist nicht verfügbar. Die erforderlichen Umgebungsvariablen sind nicht vollständig konfiguriert.</value>
4742+
</data>
47404743
</root>

src/Microsoft.Data.SqlClient/src/Resources/Strings.es.resx

+3
Original file line numberDiff line numberDiff line change
@@ -4737,4 +4737,7 @@
47374737
<data name="SQL_RemoteCertificateNotAvailable" xml:space="preserve">
47384738
<value>El certificado no está disponible al validar el certificado.</value>
47394739
</data>
4740+
<data name="AAD_FIC_Invalid_Setup" xml:space="preserve">
4741+
<value>La autenticación de credenciales de identidad federada no está disponible. Las variables de entorno necesarias no están totalmente configuradas.</value>
4742+
</data>
47404743
</root>

src/Microsoft.Data.SqlClient/src/Resources/Strings.fr.resx

+3
Original file line numberDiff line numberDiff line change
@@ -4737,4 +4737,7 @@
47374737
<data name="SQL_RemoteCertificateNotAvailable" xml:space="preserve">
47384738
<value>Certificat non disponible lors de sa validation.</value>
47394739
</data>
4740+
<data name="AAD_FIC_Invalid_Setup" xml:space="preserve">
4741+
<value>L'authentification Federated Identity Credentials n'est pas disponible. Les variables d'environnement requises ne sont pas entièrement configurées.</value>
4742+
</data>
47404743
</root>

src/Microsoft.Data.SqlClient/src/Resources/Strings.it.resx

+3
Original file line numberDiff line numberDiff line change
@@ -4737,4 +4737,7 @@
47374737
<data name="SQL_RemoteCertificateNotAvailable" xml:space="preserve">
47384738
<value>Certificato non disponibile durante la convalida del certificato.</value>
47394739
</data>
4740+
<data name="AAD_FIC_Invalid_Setup" xml:space="preserve">
4741+
<value>Autenticazione Federated Identity Credentials non disponibile. Le variabili d'ambiente richieste non sono completamente configurate.</value>
4742+
</data>
47404743
</root>

src/Microsoft.Data.SqlClient/src/Resources/Strings.ja.resx

+3
Original file line numberDiff line numberDiff line change
@@ -4737,4 +4737,7 @@
47374737
<data name="SQL_RemoteCertificateNotAvailable" xml:space="preserve">
47384738
<value>証明書の検証中は証明書を使用できません。</value>
47394739
</data>
4740+
<data name="AAD_FIC_Invalid_Setup" xml:space="preserve">
4741+
<value>Federated Identity Credentials 認証が使用できません。必要な環境変数が完全に構成されていません。</value>
4742+
</data>
47404743
</root>

src/Microsoft.Data.SqlClient/src/Resources/Strings.ko.resx

+3
Original file line numberDiff line numberDiff line change
@@ -4737,4 +4737,7 @@
47374737
<data name="SQL_RemoteCertificateNotAvailable" xml:space="preserve">
47384738
<value>인증서의 유효성을 검사하는 동안에는 인증서를 사용할 수 없습니다.</value>
47394739
</data>
4740+
<data name="AAD_FIC_Invalid_Setup" xml:space="preserve">
4741+
<value>페더레이션 ID 자격 증명 인증을 사용할 수 없습니다. 필수 환경 변수가 완전히 구성되지 않았습니다.</value>
4742+
</data>
47404743
</root>

src/Microsoft.Data.SqlClient/src/Resources/Strings.pt-BR.resx

+3
Original file line numberDiff line numberDiff line change
@@ -4737,4 +4737,7 @@
47374737
<data name="SQL_RemoteCertificateNotAvailable" xml:space="preserve">
47384738
<value>Certificado não disponível durante a validação do certificado.</value>
47394739
</data>
4740+
<data name="AAD_FIC_Invalid_Setup" xml:space="preserve">
4741+
<value>Autenticação de Credenciais de Identidade Federada indisponível. As variáveis de ambiente necessárias não estão totalmente configuradas.</value>
4742+
</data>
47404743
</root>

src/Microsoft.Data.SqlClient/src/Resources/Strings.resx

+4-1
Original file line numberDiff line numberDiff line change
@@ -4740,4 +4740,7 @@
47404740
<data name="SQL_RemoteCertificateDoesNotMatchServerCertificate" xml:space="preserve">
47414741
<value>The certificate provided by the server does not match the certificate provided by the ServerCertificate option.</value>
47424742
</data>
4743-
</root>
4743+
<data name="AAD_FIC_Invalid_Setup" xml:space="preserve">
4744+
<value>Federated Identity Credentials authentication unavailable. The required environment variables are not fully configured.</value>
4745+
</data>
4746+
</root>

src/Microsoft.Data.SqlClient/src/Resources/Strings.ru.resx

+3
Original file line numberDiff line numberDiff line change
@@ -4737,4 +4737,7 @@
47374737
<data name="SQL_RemoteCertificateNotAvailable" xml:space="preserve">
47384738
<value>Сертификат недоступен при проверке сертификата.</value>
47394739
</data>
4740+
<data name="AAD_FIC_Invalid_Setup" xml:space="preserve">
4741+
<value>Недоступна аутентификация Federated Identity Credentials. Необходимые переменные среды настроены не полностью.</value>
4742+
</data>
47404743
</root>

src/Microsoft.Data.SqlClient/src/Resources/Strings.zh-Hans.resx

+3
Original file line numberDiff line numberDiff line change
@@ -4737,4 +4737,7 @@
47374737
<data name="SQL_RemoteCertificateNotAvailable" xml:space="preserve">
47384738
<value>验证证书时证书不可用。</value>
47394739
</data>
4740+
<data name="AAD_FIC_Invalid_Setup" xml:space="preserve">
4741+
<value>联合身份凭证验证不可用。所需环境变量配置不全。</value>
4742+
</data>
47404743
</root>

src/Microsoft.Data.SqlClient/src/Resources/Strings.zh-Hant.resx

+3
Original file line numberDiff line numberDiff line change
@@ -4737,4 +4737,7 @@
47374737
<data name="SQL_RemoteCertificateNotAvailable" xml:space="preserve">
47384738
<value>驗證在進行憑證驗證時無法使用。</value>
47394739
</data>
4740+
<data name="AAD_FIC_Invalid_Setup" xml:space="preserve">
4741+
<value>聯合身份憑証騐証不可用。所需環境變量配置不全。</value>
4742+
</data>
47404743
</root>

0 commit comments

Comments
 (0)