Federated Authentication on Azure

后端 未结 5 1047
面向向阳花
面向向阳花 2020-12-08 10:39

I\'m using WIF (.net 4.5), and Azure Active directory for authentication. The website will sit on Azure.

Everything works as expected locally, however when I put it

5条回答
  •  爱一瞬间的悲伤
    2020-12-08 10:43

    If you are using forms auth. you can signout when you catch the exception and allow your users to login and create a valid cookie

    catch (CryptographicException cex)
    {
        FormsAuthentication.SignOut();
    }
    

提交回复
热议问题