Closed rtvu closed 3 months ago
You need to use localhost, versus 127.0.0.1, as that's what we configure the app registrations for: https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/scripts/auth_update.py#L36
Unfortunately, Entra doesn't support specifying 127.0.0.1 in the redirect URIs, last I checked.
Let me know where I can make that clearer in the documentation. Thanks!
Thanks! I got it to work once I used localhost.
I think adding a small section to "login_and_acl.md" on how to deploy locally where it discusses the 127.0.0.1 limitation and instructs to use localhost would really help.
By the way, since #1812, this is the output when running npm run dev
:
> frontend@0.0.0 dev
> vite --host 127.0.0.1
VITE v4.5.3 ready in 188 ms
➜ Local: http://127.0.0.1:5173/
➜ press h to show help
With local deployment, I can access the application as an unauthenticated user. However, when I try to login in, I get an error.
How would I configure the application to allow me to authenticate while deploying locally.
This issue is for a: (mark with an
x
)Minimal steps to reproduce
azd up
./app/start.sh
.Any log messages given by the failure
AADSTS50011: The redirect URI 'http://127.0.0.1:50505/redirect' specified in the request does not match the redirect URIs configured for the application '33ca7bc5-6a02-463a-a650-1d74a1a6ab17'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this.
Expected/desired behavior
Can log into application with local deployment. Necessary to working on frontend changes.
OS and Version?
Mac Sonoma, Running latest VSCode and Devcontainers
azd version?
azd version 1.9.5 (commit cd2b7af9995d358aab33c782614f801ac1997dde)
Versions
Repo at commit: 55b0961b98bf22b44fc6fd45c9ef0fc583c14f6e
Mention any other details that might be useful