-
Notifications
You must be signed in to change notification settings - Fork 195
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
Configurable url for /api/oauth2-redirect.html endpoint behind FrontDoor #244
Comments
@lecamarade Thanks for the issue! Wonder whether you've found this doc or not: https://github.com/Azure/azure-functions-openapi-extension/blob/main/docs/openapi-core.md#overriding-base-urls |
@justinyoo , Thank you for the link, yes I did find it. The library adds prefix that comes from HttpSettings.RoutePrefix = "api". From swagger-ui-bundle.js: [[SWAGGER_UI_API_PREFIX]] gets replaced by RoutePrefix from above. That's separate from the base url mentioned in the docs. |
@justinyoo, please upate the labels. This is not a question and it is not resolved. |
Let me take a further look. |
@justinyoo , any updates on this one? |
Hi,
We use Azure Funtion app behind FrontDoor. This adds complication of url rewrites.
The swagger url for the function app is:
https://myapp.azurewebsites.net/api/swagger/ui
With FrontDoor it becomes:
https://mycompany/api/myapp/swagger/ui
The generated oauth2 redirect is
https://mycompany/api/oauth2-redirect.html
instead of
https://mycompany/api/myapp/oauth2-redirect.html
Can we modify the prefix for the redirect url to match the path expected by FrontDoor?
The text was updated successfully, but these errors were encountered: