Azure Key Vault: AADTS700024: .NET Core, контейнер Linux. Утверждение клиента находится за пределами допустимого диапазо ⇐ C#
-
Anonymous
Azure Key Vault: AADTS700024: .NET Core, контейнер Linux. Утверждение клиента находится за пределами допустимого диапазо
I've been having trouble connecting to Azure Key Vault from a ASP .NET Core app running inside docker container.
The app is using clientID/Certificate to authenticate with the vault. I have made an app registration and granted permission to it for using the vault.
When I run the app inside docker I keep getting this error:
Unhandled exception. Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: AADSTS700024: Client assertion is not within its valid time range. Current time: 2020-03-11T00:06:34.4692395Z, expiry time of assertion 2020-03-10T11:40:33.0000000Z.
NuGet: Microsoft.Extensions.Configuration.AzureKeyVault v3.1.2 Nuget: Microsoft.Azure.KeyVault v.3.0.5 NuGet: Microsoft.Azure.Services.AppAuthentication v1.0.3 NuGet: Microsoft.IdentityModel.Clients.ActiveDirectory v3.14.2 Here is how the vault is configured inside ConfigureAppConfiguration
X509Certificate2Collection collection = new X509Certificate2Collection(); collection.Import(path, pwd, X509KeyStorageFlags.PersistKeySet); var cert = collection[0]; config.AddAzureKeyVault( vault, clientId: builtConfig["ApplicationId"], certificate: cert);
Источник: https://stackoverflow.com/questions/606 ... rtion-is-n
I've been having trouble connecting to Azure Key Vault from a ASP .NET Core app running inside docker container.
The app is using clientID/Certificate to authenticate with the vault. I have made an app registration and granted permission to it for using the vault.
When I run the app inside docker I keep getting this error:
Unhandled exception. Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: AADSTS700024: Client assertion is not within its valid time range. Current time: 2020-03-11T00:06:34.4692395Z, expiry time of assertion 2020-03-10T11:40:33.0000000Z.
NuGet: Microsoft.Extensions.Configuration.AzureKeyVault v3.1.2 Nuget: Microsoft.Azure.KeyVault v.3.0.5 NuGet: Microsoft.Azure.Services.AppAuthentication v1.0.3 NuGet: Microsoft.IdentityModel.Clients.ActiveDirectory v3.14.2 Here is how the vault is configured inside ConfigureAppConfiguration
X509Certificate2Collection collection = new X509Certificate2Collection(); collection.Import(path, pwd, X509KeyStorageFlags.PersistKeySet); var cert = collection[0]; config.AddAzureKeyVault( vault, clientId: builtConfig["ApplicationId"], certificate: cert);
Источник: https://stackoverflow.com/questions/606 ... rtion-is-n
Мобильная версия