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.
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