W.I.F.: Setting IsSessionMode to true, can't seem to make it happen

后端 未结 4 2603
野的像风
野的像风 2021-02-20 13:55

We are having problems with Safari(and Opera) and from what I have read the FedAuth cookies are just too big.

There is an \"neat trick\" to fix this: \"WIF RTM added a p

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-20 14:36

    Old thread, but I believe SessionSecurityTokenCreated is the proper event to handle this--tested it and it works under "old WIF" and NET 4.5 with the appropriate namespace variations.

    void WSFederationAuthenticationModule_SessionSecurityTokenCreated(object sender, System.IdentityModel.Services.SessionSecurityTokenCreatedEventArgs e)
    {
        e.SessionToken.IsReferenceMode = true;
    }
    

提交回复
热议问题