Skip to main content

Command Palette

Search for a command to run...

/api/usertoken/GetToken 404 - Don't use a redirect URL

Published
1 min read
B

Expert generalist • Independent Contractor • Microsoft MVP • Home Assistant enthusiast Hi there! I'm Bogdan Bujdea, a software developer from Romania. I'm currently a .NET independent contractor, and in my free time I get involved in the local .NET community or I'm co-organizing the @dotnetdays conference. I consider myself an expert generalist, mostly because I enjoy trying out new stuff whenever I get the chance and I get bored pretty easily, so on this blog you'll see me posting content from programming tutorials to playing with my smart gadgets.

If you get a 404 on the /api/usertoken/GetToken request and you're doing AAD authentication with Bot Framework, then most likely the problem comes from the fact that you're using a redirect URL in the OAuth connection. Just remove it and things should be fine.

Azure Active Directory (AAD) authentication v2