Multiple B2C strategies to protect different endpoints

In this post discusses several policies for the protection of B2C different endpoints that causes someone to log in again to more sensitive resources.

It sounds great and in the text this post was posted with examples from Facebook or Google.

I tried to implement this by setting two acceptable rules on one controller and one policy on the other.

And if you select a page with a less secure policy and login, and then you select a different page with a more secure policy, you will be asked to login again. So far so good.

But now the cookie contains a short expiration time for the secure policy, so you will be prompted to log back in after the cookie expires, even though your cookie from the less secure login is still valid. And your stuck login multiple times after a short interval of a more secure cookie.

How do I tell me to switch back to use the still valid old cookie (if it still exists)?

I thought about this and I'm not sure if the best way to deal with this is to check the claim issued at

in the authorization policy to see if it is recent enough, and if not, return it unauthorized so that they 'will be forced to login again. They will receive another long-lived token at this point, with a new expression issued at

, and they can go anywhere on the site.

Any ideas?

TIA

+3
asp.net-mvc asp.net-core katana asp.net-authentication azure-ad-b2c


source to share


No one has answered this question yet

See similar questions:

five
How can I specify the appropriate Media and Cookie ID in ASP.NET with multiple authorization schemes?

or similar:

3
Local account created in AzureAD B2C with "forceChangePasswordNextLogin" cannot log in after initial password change
2
Azure AD B2C logout after session timeout
1
Request an access token in Postman for Azure App feature protected by Azure AD B2C
1
Is it possible to put security stamp from Asp.Net Core Identity as a requirement for OIDC
1
Azure AD B2C Bad Request - Request HTTP 400 error too long. Request headers are too large. After login
1
azure ad b2c session does not expire
0
FormsAuthentication timeout - validation in JavaScript or JQuery
0
Tracking the first login from the browser
0
Force Password Change in AD B2C User Journey
0
Azure AD B2C custom policy set extension attribute value



All Articles
Loading...
X
Show
Funny
Dev
Pics