I want to fetch the token in a way where I can use username password of the users added in the Azure AD for fetching the token without redirecting it to the microsoft or google login page and without using Azure AD B2C or without creating a seperate login api in .net web api project.
I have created a web api project in .net 6. I have publised the same in Azure APP Service along with API Management.
I have added the Azure AD Microsoft Authentication layer in the APP Service where my web apis are published. Now to access the Web APIs I have to fetch the access token from the token endpoints given in the App Registrations where I have to add client id and secret for the fetching the token.
What all things I need to change or update in order to create such type of login authentication?