AuthorizationServer icon indicating copy to clipboard operation
AuthorizationServer copied to clipboard

Jwt10316: Signature validation failed. Keys tried

Open iamsoorya opened this issue 8 years ago • 0 comments

Dear Dominic,

I have set up the certificate and entered the following config

<system.identityModel> <identityConfiguration saveBootstrapContext="true">

  <!-- relying party -->
  <audienceUris>
    <add value="http://localhost:82/" />
    <add value="urn:RPMI.Login.Test/" />
  </audienceUris>

  <securityTokenHandlers>
    <add type="System.IdentityModel.Tokens.JwtSecurityTokenHandler, System.IdentityModel.Tokens.Jwt"/>
    <securityTokenHandlerConfiguration>
      <issuerNameRegistry type="System.IdentityModel.Tokens.ValidatingIssuerNameRegistry, System.IdentityModel.Tokens.ValidatingIssuerNameRegistry">
        <authority name="https://localhost/WebSite/Services/IdentityServer">
          <keys>
            <add thumbprint="‎6b57c557b281689fe8b697fab01d2c03fb494cd7"/>
                         </keys>
          <validIssuers>
            <add name="https://localhost/WebSite/Services/IdentityServer"/>
          </validIssuers>
        </authority>
      </issuerNameRegistry>
      <issuerTokenResolver type="System.IdentityModel.Tokens.NamedKeyIssuerTokenResolver, System.IdentityModel.Tokens.Jwt">            
        <securityKey symmetricKey="LuzhmoCg2LmPeXKdwiI0j8N2ZS32J3mYo92I2gY/CDI=" name="https://localhost/WebSite/Services/IdentityServer"/>           
      </issuerTokenResolver>
      <certificateValidation certificateValidationMode="None"/>
    </securityTokenHandlerConfiguration>
  </securityTokenHandlers>
</identityConfiguration>

</system.identityModel>

Why must be wrong? When we are using the certificate, I guess we do not need certificate? Could you please help?

iamsoorya avatar Mar 22 '16 12:03 iamsoorya