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
* Add example for azure b2c OAuth
This example allows to fetch the tokens for a given user from azure B2C.
* Add explanation to B2C example
Add specific explanation to the example on how to create you own tenant to test the script for getting token.
Fixed one issue on the way, as small difference between costume flow and quick user flows.
* Update 03 oauth-authentication.md
Change pull request suggestions
@@ -56,6 +59,204 @@ export function authenticateUsingAzure(tenantId, clientId, clientSecret, scope,
56
59
}
57
60
```
58
61
62
+
### Azure B2C
63
+
64
+
The following example shows how you can authenticate with Azure B2C using the [Client Credentials Flow](https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-reference-oauth-code#client-credentials-flow).
65
+
66
+
This example is based on a JMeter example found at the [azure-ad-b2c/load-tests](https://github.com/azure-ad-b2c/load-tests) repository.
67
+
68
+
To use this script, you need to:
69
+
70
+
1.[Set up your own Azure B2C tenant](https://learn.microsoft.com/en-us/azure/active-directory-b2c/tutorial-create-tenant)
71
+
* Copy the tenant name, it will be used in your test script.
72
+
2.[Register a web application](https://learn.microsoft.com/en-us/azure/active-directory-b2c/tutorial-register-applications?tabs=app-reg-ga)
73
+
* Register a single page application with the redirect URL of: https://jwt.ms. That's needed for the flow to receive a token.
74
+
* After the creation, you can get the Application (client) ID, and the Directory (tenant) ID. Copy both of them, they'll be used in your test script.
75
+
3.[Create a user flow so that you can sign up and create a user](https://docs.microsoft.com/en-us/azure/active-directory-b2c/tutorial-create-user-flows)
76
+
* Create a new user, and copy the username and password. They'll be used in the test script.
77
+
78
+
If you missed copying any of the settings, you can find them in the B2C settings in the Azure portal.
0 commit comments