The microsoft identity platform supports the OAuth 2.0 Resource Owner Password Credentials(ROPC) grant, which allows an application to sign in the user by directly handling their password.
Here is the documentation for your reference:
https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth-ropc
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.