简体   繁体   中英

Azure B2C Single Sign on working with IIS Express but not with Local IIS

I have two MVC applications using Azure B2C. I have added these two applications to B2C portal. When I use IIS Express, I can log in to one app, and when I refresh the other app, it automatically logs me in. When I use Local IIS, when I log into one app, I refresh the other app, it still thinks that I am not logged in (Request.IsAuthenticated is false). When I log in to the other app, and I refresh my first app, Request.IsAuthenticated is returned as false. I am not sure what I am missing here.

I had to set the machine key and the decryption key same for all the applications using SSO (instead of letting IIS generate a key runtime). Once I did this, SSO works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM