How to sign security tokens using SHA256 in WIF STS?

I am using Thinktecture STS and would like to sign issued tokens using SHA256 instead of SHA1? I tried to add the algorithm to the application using:

CryptoConfig.AddAlgorithm(
         typeof(RSAPKCS1SHA256SignatureDescription),
         "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256");

      

But it starts giving an error:

Invalid algorithm specified

Knowing that the certificate I'm using is SHA256 compliant. Any idea?

+3
.net-4.5 wif claims-based-identity thinktecture-ident-model


source to share


No one has answered this question yet

See similar questions:

2
XML signed with SHA-256

or similar:

178
Catch-22 prevents WIF from protecting the TCP WCF WSF service; ruining my christmas, mental health
12
How can I verify the signature for a signed XML document using SHA256?
eleven
WIF security token caching
eleven
JwtSecurityTokenHandler (). ValidateToken () :: Signature verification failed ... sha256 is not supported in this context
3
TrustedIssuers in Windows Identity Foundation
2
Unable to sign security tokens with certificate in WIF script
1
ASP.Net MVC act token still works
1
ADFS 2.0 - Request token for serving across ADs
1
WIF 3.5 + 4.5 Compatibility
1
WIF STS ID3242: Security token could not be authenticated or authorized



All Articles
Loading...
X
Show
Funny
Dev
Pics