IdentityServer / IdentityServer3.EntityFramework

EntityFramework persistence layer for IdentityServer3
Apache License 2.0
68 stars 97 forks source link

SHA256 of secret not Validating #122

Closed waynevdm closed 8 years ago

waynevdm commented 8 years ago

Hi

I have used the database structure that is used in the EF sample. However I am using Dapper to retrieve the data. The value in the ClientSecrets table is SHA256 encrypted and is "K7gNU3sdo+OL0wNhqoVWhr3g6s1xYv72ol/pe/Unols=" which is "secret". When I make a call to get the access token I get the following error in the log.

2016-09-22 10:39:06.680 +02:00 [Information] Secret validators could not validate secret

Should I be storing the secret in the SHA256 format in the value field in the table? I Have just noticed that the Type in the database is "". What should the type be for SHA256?

Thanks, Wayne