samples icon indicating copy to clipboard operation
samples copied to clipboard

[Question] ReAuthenticate user before the security sensitive API call.

Open ievgennaida opened this issue 2 years ago • 2 comments
trafficstars

I have a sensitive REST API endpoint that I would like user to additionaly pefrom MFA before calling it.

The initial idea was to request additional claim that will cause a login. But incremental flows according to this article are not supported: b2c limitations · AzureAD/microsoft-identity-web Wiki · GitHub

Another article is proposing to check whether second (senstivive) login call was made with a specific argument, that I believe cannot garantee that it's not actually a first call: Forcing reauthentication with Azure AD - Honza’s Blarg (hajekj.net)

I would appreciate any advice on how it should be properly performed.

ievgennaida avatar Mar 22 '23 12:03 ievgennaida

When user tries to access the Sensitive REST API, Compare the current date time with last auth time, trigger sign-in tech profile.

HarshaDoddamane avatar Mar 27 '23 22:03 HarshaDoddamane

When user tries to access the Sensitive REST API, Compare the current date time with last auth time, trigger sign-in tech profile.

Thanks for the answer, but what do you mean by "tech profile" when it should be called. At the moment the general idea: Authentication is happening on the frontend for the logged user, REST API is performing token an scopes check.

ievgennaida avatar Mar 28 '23 05:03 ievgennaida