I have an application made in dotnet mvc made in C# which is using Asp Identity framework for user authentication and authorization.
I need to integrate a method which can authenticate user first agaist Azure actice directory then login using Identity framework.
I know how to Authenticate user against Azure active Directory by selecting user authentication type school or organization and then registring your app on Azure app registration.
It would automatically redirect you to login using your domain username and password, then authenticate against Azure Active directory. But that is for new application.
The problem here is I can not use the default method of automatically generating code for user authenticating against Azure Active Directory because at same time either you can use Identity framework or Azure AD authentication.
Is is possible to do by passing email and passowrd to an api or any better way of doing this. Any help would be much appreciated. Or you can provde me some sample code that will be icing on the cake. Thank you
or Microsoft Azure Active Directory Authentication Library (ADAL) can help me? Kindly give me a starting point.