azure-functions-openapi-extension
azure-functions-openapi-extension copied to clipboard
Question: How is it possible to host swagger ui behind AAD identity provider
Maybe someone in this community can help me here.
I have the OpenAPI hosted on a Azure Function which is protected by the OAuth2 flow via the AAD identity provider. Now I want to "embed" the Swagger UI inside my Angular frontend application (via iFrame) but the swagger UI needs the OAuth2 token to be accessed.
One thing I already tried is that I made a blob response with the swagger UI (which worked) - but then I am unauthenticated via the swagger.json file (inside Swagger UI).
Does anyone have an idea how to handle this? Thanks for any hint.