36
Views
1
Comments
How to detect if user is from Azure AD or email+password when logged in?
Application Type
Reactive
Service Studio Version
11.51.1 (Build 55783)

Is there a way to detect whether the user is using Azure AD or email+password when logged in? I want to implement a logout button that correspond to the user's type of authentication.

2023-12-14 09-56-57
Yogesh Javir

Hey,

See when user tried with Azure AD then there will some response  from Ad ,if it is userid then check in your dB for respective ID.

1.may be azure I'd is separate column or separate  table for AD details.

2.If record not found in user main entity then check for AD details detail, you will surely get that I'd in table.

3.Basis upon that result you can say by using what user get logged in.


Hope you understood. 

Thanks

YOGESH

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.