Skip to content

Commit 55a9780

Browse files
authored
[event-hubs] Update browser sample with AAD troubleshooting tip (Azure#13180)
* [event-hubs] Update browser sample with AAD troubleshooting tip * call out setting redirect uri to localhost
1 parent b92dcdc commit 55a9780

File tree

1 file changed

+9
-0
lines changed
  • sdk/eventhub/event-hubs/samples/browserSample

1 file changed

+9
-0
lines changed

sdk/eventhub/event-hubs/samples/browserSample/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ Register a new application in AAD and assign the "Azure Event Hubs Data Owner" r
3737

3838
Ensure your app registration has been configured properly to allow the [implicit grant flow][implicitgrantflow]
3939
and allow both `Access tokens` and `ID tokens` to be issued by the authorization endpoint.
40+
Also add a `redirect URI` that points to where you'll be hosting your application.
41+
For running the sample locally, you can set this to `http://localhost:8080`.
4042
In your app registration, you will also need to add a permission for the `Microsoft.EventHubs` app.
4143
When adding permission for `Microsoft.EventHubs`, the type should be `delegated permissions` and the permission should be `user_impersonation`.
4244

@@ -64,6 +66,13 @@ npm start
6466

6567
4. Navigate to the web page by visiting http://localhost:8080 in a browser.
6668

69+
## Troubleshooting
70+
71+
### Authentication error: AADSTS50011
72+
73+
If you receive error `AADSTS50011` with the message `The reply URL specified in the request does not match the reply URLs configured for the application`, make sure that you're accessing the sample using the same URI
74+
as the redirect URI you added to your app registration. If you're following along with the sample, this should be `http://localhost:8080`.
75+
6776
## Next Steps
6877

6978
Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.

0 commit comments

Comments
 (0)