azure-search-openai-demo icon indicating copy to clipboard operation
azure-search-openai-demo copied to clipboard

Authorization issue (403) after setting up authentication

Open akallai opened this issue 1 year ago • 6 comments

Please provide us with the following information:

This issue is for a: (mark with an x)

- [(x)] bug report -> please search issues before submitting
- [ ] feature request
- [(x)] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

I am facing an issue after trying to setup the authentication.

I followed manual setup instructions for the app registrations. After deployment I am facing the login screen which works fine (loggin in works). But after trying to use the chat i am getting this error "Error: Request failed with status 403" image

Here are the Network logs: GET https://application828273643-dev.azurewebsites.net/.auth/refresh 403 (Forbidden) authConfig.ts:152 POST https://application828273643-dev.azurewebsites.net/ask net::ERR_ABORTED 403 (Forbidden) api.ts:27 Am I missing something?

Minimal steps to reproduce

  1. following manual setup instructions of the add login documentation
  2. running "azd up" with this configuration: AZURE_AUTH_TENANT_ID= AZURE_CLIENT_APP_ID= AZURE_ENABLE_GLOBAL_DOCUMENT_ACCESS="true" AZURE_ENFORCE_ACCESS_CONTROL="false" AZURE_PUBLIC_NETWORK_ACCESS="Enabled" AZURE_SERVER_APP_ID= AZURE_SERVER_APP_SECRET= AZURE_SUBSCRIPTION_ID= AZURE_TENANT_ID= AZURE_USE_AUTHENTICATION="true"
  3. giving consent
  4. Login and afterwards trying to use the app

Any log messages given by the failure

GET https://application828273643-dev.azurewebsites.net/.auth/refresh 403 (Forbidden) - authConfig.ts:152 POST https://application828273643-dev.azurewebsites.net/ask net::ERR_ABORTED 403 (Forbidden) - api.ts:27

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

azd version?

run azd version and copy paste here. azd version 1.9.6

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

akallai avatar Aug 29 '24 11:08 akallai