'ws-fedration in dotnet 5
We are migrating project with sso and wsfedration to dot net 5.0. facing issue with below code snippet. it is not compatible with dot net 5.0. can you please help me with it. how it could be tweak for dot net 5.0.
Write session token to cookie:
var token = new System.IdentityModel.Tokens.SessionSecurityToken(principal);
System.IdentityModel.Services.FederatedAuthentication.SessionAuthenticationModule.WriteSessionTokenToCookie(token);
Redirect to identity provider:
FederationConfiguration config = FederatedAuthentication.FederationConfiguration;
WSFederationAuthenticationModule fam = FederatedAuthentication.WSFederationAuthenticationModule;
FederatedAuthentication.WSFederationAuthenticationModule.RedirectToIdentityProvider(fam.Issuer, config.WsFederationConfiguration.Realm, true);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
