skoruba / Duende.IdentityServer.Admin

The administration for the Duende IdentityServer and Asp.Net Core Identity ⚡
Apache License 2.0
549 stars 194 forks source link

Get forbidden from admin site #168

Open niennguyen84 opened 1 year ago

niennguyen84 commented 1 year ago

I deploy app on iis but when i visit admin site it redirect to sts.identity url and get forbidden 403 error.

It works correctly when i host them on iis of dev machine (map sts.identity and admin url to localhost) Thank you very much.

niennguyen84 commented 1 year ago

I got the error. 2023-08-22 07:18:07.935 +07:00 [ERR] Error unprotecting key with kid 034069A09E3263416E2200B6B00B9643. System.Security.Cryptography.CryptographicException: The key {2d63d676-8c09-4de6-9f55-2d8f1f43441e} was not found in the key ring. For more information go to http://aka.ms/dataprotectionwarning at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.UnprotectCore(Byte[] protectedData, Boolean allowOperationsOnRevokedKeys, UnprotectStatus& status) at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.Unprotect(Byte[] protectedData) at Microsoft.AspNetCore.DataProtection.DataProtectionCommonExtensions.Unprotect(IDataProtector protector, String protectedData) at Duende.IdentityServer.Services.KeyManagement.DataProtectionKeyProtector.Unprotect(SerializedKey key) in /_/src/IdentityServer/Services/Default/KeyManagement/DataProtectionKeyProtector.cs:line 56 at Duende.IdentityServer.Services.KeyManagement.KeyManager.b__200(SerializedKey x) in //src/IdentityServer/Services/Default/KeyManagement/KeyManager.cs:line