This repository was archived by the owner on Dec 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 582
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
OpenId connect fails with SecurityTokenInvalidSignatureException on latest coreclr #223
Copy link
Copy link
Closed
Description
[12:16:17][xunit-test] <h1>An unhandled exception occurred while processing the request.</h1>
[12:16:17][xunit-test] <div class="titleerror">SecurityTokenInvalidSignatureException: IDX10503: Signature validation failed. Keys tried: 'System.IdentityModel.Tokens.X509SecurityKey - (thumbprint) : 92B88C3DD981BF1EBCB244FCFA63C007706C79E0<br />
[12:16:17][xunit-test] System.IdentityModel.Tokens.RsaSecurityKey<br />
[12:16:17][xunit-test] System.IdentityModel.Tokens.X509SecurityKey - (thumbprint) : 3270BF5597004DF339A4E62224731B6BD82810A6<br />
[12:16:17][xunit-test] System.IdentityModel.Tokens.RsaSecurityKey<br />
[12:16:17][xunit-test] '.<br />
[12:16:17][xunit-test] Exceptions caught:<br />
[12:16:17][xunit-test] 'System.ArgumentNullException: Value cannot be null.<br />
[12:16:17][xunit-test] Parameter name: SafeHandle cannot be null.<br />
[12:16:17][xunit-test] at System.StubHelpers.StubHelpers.SafeHandleAddRef(SafeHandle pHandle, Boolean& success)<br />
[12:16:17][xunit-test] at Internal.NativeCrypto.CapiHelper.Interop.CryptCreateHash(SafeProvHandle hProv, Int32 algId, SafeKeyHandle hKey, CryptCreateHashFlags dwFlags, SafeHashHandle& phHash)<br />
[12:16:17][xunit-test] at Internal.NativeCrypto.CapiHelper.CreateHashHandle(SafeProvHandle hProv, Byte[] hash, Int32 calgHash)<br />
[12:16:17][xunit-test] at Internal.NativeCrypto.CapiHelper.VerifySign(SafeProvHandle hProv, SafeKeyHandle hKey, Int32 calgKey, Int32 calgHash, Byte[] hash, Byte[] signature)<br />
[12:16:17][xunit-test] at System.Security.Cryptography.RSACryptoServiceProvider.VerifyData(Byte[] buffer, Object halg, Byte[] signature)<br />
[12:16:17][xunit-test] at System.IdentityModel.Tokens.RSACryptoServiceProviderProxy.VerifyData(Byte[] signingInput, Object hash, Byte[] signature)<br />
[12:16:17][xunit-test] at System.IdentityModel.Tokens.AsymmetricSignatureProvider.Verify(Byte[] input, Byte[] signature)<br />
[12:16:17][xunit-test] at System.IdentityModel.Tokens.JwtSecurityTokenHandler.ValidateSignature(Byte[] encodedBytes, Byte[] signature, SecurityKey key, String algorithm)<br />
[12:16:17][xunit-test] at System.IdentityModel.Tokens.JwtSecurityTokenHandler.ValidateSignature(String token, TokenValidationParameters validationParameters)<br />
[12:16:17][xunit-test] System.ArgumentNullException: Value cannot be null.<br />
[12:16:17][xunit-test] Parameter name: SafeHandle cannot be null.<br />
[12:16:17][xunit-test] at System.StubHelpers.StubHelpers.SafeHandleAddRef(SafeHandle pHandle, Boolean& success)<br />
[12:16:17][xunit-test] at Internal.NativeCrypto.CapiHelper.Interop.CryptCreateHash(SafeProvHandle hProv, Int32 algId, SafeKeyHandle hKey, CryptCreateHashFlags dwFlags, SafeHashHandle& phHash)<br />
[12:16:17][xunit-test] at Internal.NativeCrypto.CapiHelper.CreateHashHandle(SafeProvHandle hProv, Byte[] hash, Int32 calgHash)<br />
[12:16:17][xunit-test] at Internal.NativeCrypto.CapiHelper.VerifySign(SafeProvHandle hProv, SafeKeyHandle hKey, Int32 calgKey, Int32 calgHash, Byte[] hash, Byte[] signature)<br />
[12:16:17][xunit-test] at System.Security.Cryptography.RSACryptoServiceProvider.VerifyData(Byte[] buffer, Object halg, Byte[] signature)<br />
[12:16:17][xunit-test] at System.IdentityModel.Tokens.AsymmetricSignatureProvider.Verify(Byte[] input, Byte[] signature)<br />
[12:16:17][xunit-test] at System.IdentityModel.Tokens.JwtSecurityTokenHandler.ValidateSignature(Byte[] encodedBytes, Byte[] signature, SecurityKey key, String algorithm)<br />
[12:16:17][xunit-test] at System.IdentityModel.Tokens.JwtSecurityTokenHandler.ValidateSignature(String token, TokenValidationParameters validationParameters)<br />
[12:16:17][xunit-test] System.ArgumentNullException: Value cannot be null.<br />
[12:16:17][xunit-test] Parameter name: SafeHandle cannot be null.<br />
[12:16:17][xunit-test] at System.StubHelpers.StubHelpers.SafeHandleAddRef(SafeHandle pHandle, Boolean& success)<br />
[12:16:17][xunit-test] at Internal.NativeCrypto.CapiHelper.Interop.CryptCreateHash(SafeProvHandle hProv, Int32 algId, SafeKeyHandle hKey, CryptCreateHashFlags dwFlags, SafeHashHandle& phHash)<br />
[12:16:17][xunit-test] at Internal.NativeCrypto.CapiHelper.CreateHashHandle(SafeProvHandle hProv, Byte[] hash, Int32 calgHash)<br />
[12:16:17][xunit-test] at Internal.NativeCrypto.CapiHelper.VerifySign(SafeProvHandle hProv, SafeKeyHandle hKey, Int32 calgKey, Int32 calgHash, Byte[] hash, Byte[] signature)<br />
[12:16:17][xunit-test] at System.Security.Cryptography.RSACryptoServiceProvider.VerifyData(Byte[] buffer, Object halg, Byte[] signature)<br />
[12:16:17][xunit-test] at System.IdentityModel.Tokens.RSACryptoServiceProviderProxy.VerifyData(Byte[] signingInput, Object hash, Byte[] signature)<br />
[12:16:17][xunit-test] at System.IdentityModel.Tokens.AsymmetricSignatureProvider.Verify(Byte[] input, Byte[] signature)<br />
[12:16:17][xunit-test] at System.IdentityModel.Tokens.JwtSecurityTokenHandler.ValidateSignature(Byte[] encodedBytes, Byte[] signature, SecurityKey key, String algorithm)<br />
[12:16:17][xunit-test] at System.IdentityModel.Tokens.JwtSecurityTokenHandler.ValidateSignature(String token, TokenValidationParameters validationParameters)<br />
[12:16:17][xunit-test] System.ArgumentNullException: Value cannot be null.<br />
[12:16:17][xunit-test] Parameter name: SafeHandle cannot be null.<br />
[12:16:17][xunit-test] at System.StubHelpers.StubHelpers.SafeHandleAddRef(SafeHandle pHandle, Boolean& success)<br />
[12:16:17][xunit-test] at Internal.NativeCrypto.CapiHelper.Interop.CryptCreateHash(SafeProvHandle hProv, Int32 algId, SafeKeyHandle hKey, CryptCreateHashFlags dwFlags, SafeHashHandle& phHash)<br />
[12:16:17][xunit-test] at Internal.NativeCrypto.CapiHelper.CreateHashHandle(SafeProvHandle hProv, Byte[] hash, Int32 calgHash)<br />
[12:16:17][xunit-test] at Internal.NativeCrypto.CapiHelper.VerifySign(SafeProvHandle hProv, SafeKeyHandle hKey, Int32 calgKey, Int32 calgHash, Byte[] hash, Byte[] signature)<br />
[12:16:17][xunit-test] at System.Security.Cryptography.RSACryptoServiceProvider.VerifyData(Byte[] buffer, Object halg, Byte[] signature)<br />
[12:16:17][xunit-test] at System.IdentityModel.Tokens.AsymmetricSignatureProvider.Verify(Byte[] input, Byte[] signature)<br />
[12:16:17][xunit-test] at System.IdentityModel.Tokens.JwtSecurityTokenHandler.ValidateSignature(Byte[] encodedBytes, Byte[] signature, SecurityKey key, String algorithm)<br />
[12:16:17][xunit-test] at System.IdentityModel.Tokens.JwtSecurityTokenHandler.ValidateSignature(String token, TokenValidationParameters validationParameters)<br />
[12:16:17][xunit-test] '.<br />
[12:16:17][xunit-test] token: '{"typ":"JWT","alg":"RS256","x5t":"kriMPdmBvx68skT8-mPAB3BseeA"}.{"aud":"c99497aa-3ee2-4707-b8a8-c33f51323fef","iss":"https://sts.windows.net/4afbc689-805b-48cf-a24c-d4aa3248a248/","iat":1422395763,"nbf":1422395763,"exp":1422399663,"ver":"1.0","tid":"4afbc689-805b-48cf-a24c-d4aa3248a248","amr":["pwd"],"oid":"f876abeb-d6b5-44e4-9716-6266ac0181a8","upn":"user3@testgmail.onmicrosoft.com","sub":"PUdhclP5PgIjSU9P1S-HelDaSFSf-mXV1Y60-K2vWqw","given_name":"User3","family_name":"User3","name":"User3","unique_name":"user3@testgmail.onmicrosoft.com","nonce":"635579928639517715.OTRjOTVkM2EtMDRmYS00ZDE3LThhZGUtZWZmZGM4ODkzZGZkMDRlNDhkN2MtOWIwMC00ZmVkLWI5MTItMTUwYmQ4MzdmOWI0","c_hash":"FGt3wcQADe0PY1Qx7O1r6g","pwd_exp":"6693280","pwd_url":"https://portal.microsoftonline.com/ChangePassword.aspx"}'</div>
[12:16:17][xunit-test] <p class="location">Microsoft.IdentityModel.Logging.LogHelper.LogError(String message, Type exceptionType, Boolean throwException)</p>
Reactions are currently unavailable