Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easy Auth enabled on Azure portal for function app not allowed to exposed Swagger endpoints #644

Open
aifazk opened this issue Feb 8, 2024 · 0 comments

Comments

@aifazk
Copy link

aifazk commented Feb 8, 2024

Describe the issue
We are using azure-functions-openapi-extension version 1.5.1 for our existing azure function app built with netcoreapp3.1, its working locally fine but when deployed to azure portal and try to access ttps://[somefunctionapp].azurewebsites.net/api/swagger/ui?
returning 401 or "You do not have permission to view this directory or page." However azure function define AllowAnonymous Access in code but using the Latest version of Easy Auth at Azure portal. Please suggest any workaround or fix?

To Reproduce
Steps to reproduce the behavior:

  1. Deploy Azure function to azure portal with Easy Auth enabled
  2. expose url https://[somefunctionapp].azurewebsites.net/api/swagger/ui
  3. See error

Expected behavior
It should render Swagger UI page as working on locally(localhost)

Environment (please complete the following information, if applicable):

  • OS: Windows
  • Browser edge, chrome, firefox, safari

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant