You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Client_id* is the value that you previously noted as the application ID. *Offline_access* is optional if you want to receive a refresh token.
74
+
*Client_id* is the value that you previously noted as the application ID. *Offline_access* is optional if you want to receive a refresh token. The username and password that you use must be credentials from an existing user in your Azure AD B2C tenant.
75
75
76
76
The actual POST request looks like the following:
77
77
78
78
```
79
-
POST /yourtenant.onmicrosoft.com/B2C_1A_ROPC_Auth/oauth2/v2.0/token HTTP/1.1
79
+
POST /yourtenant.onmicrosoft.com/oauth2/v2.0/token?B2C_1_ROPC_Auth HTTP/1.1
80
80
Host: login.microsoftonline.com
81
81
Content-Type: application/x-www-form-urlencoded
82
82
@@ -100,7 +100,7 @@ A successful response with offline-access looks like the following example:
100
100
101
101
Construct a POST call like the one shown here with the information in the following table as the body of the request:
@@ -112,6 +112,24 @@ Construct a POST call like the one shown here with the information in the follow
112
112
113
113
*Client_id* and *resource* are the values that you previously noted as the application ID. *Refresh_token* is the token that you received in the authentication call mentioned previously.
114
114
115
+
A successful response looks like the following example:
## Implement with your preferred native SDK or use App-Auth
116
134
117
135
The Azure AD B2C implementation meets OAuth 2.0 standards for public client resource owner password credentials and should be compatible with most client SDKs. We have tested this flow extensively, in production, with AppAuth for iOS and AppAuth for Android. For the latest information, see [Native App SDK for OAuth 2.0 and OpenID Connect implementing modern best practices](https://appauth.io/).
0 commit comments