azure-functions-openapi-extension icon indicating copy to clipboard operation
azure-functions-openapi-extension copied to clipboard

Question: How is it possible to host swagger ui behind AAD identity provider

Open agravity-philipp opened this issue 2 years ago • 0 comments

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.

agravity-philipp avatar Aug 17 '23 21:08 agravity-philipp