Can I use “Resource Owner Password Grant” flow with Azure AD B2C

前端 未结 2 1487
一个人的身影
一个人的身影 2021-01-25 18:23

I need to be able to get an identity/access token to a backend API for a native client, where the native client must use native UI to collect username and password.

I w

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-25 18:34

    Is it possible to get a token from Azure AD B2C by programmatically posting username and password somewhere?

    You can use the Azure AD Client Credential Flow to obtain a token. See this SO Post.


    ROPC might be the right OAuth Flow for you, but before you start using it, you might want to check out this blog post: Why the Resource Owner Password Credentials Grant Type is not Authentication nor Suitable for Modern Applications.

提交回复
热议问题