swagger-api / swagger-ui

Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
https://swagger.io
Apache License 2.0
26.35k stars 8.92k forks source link

Swagger authorization does not complet against Microsoft Entra ID on Chrome and Edge #9338

Open hatvanis opened 11 months ago

hatvanis commented 11 months ago

Hi, I have a ASP.NET Core Web API with Swagger and the authorization happens via Microsoft Entra ID. This is working but only on Firefox. When I click Authorization button in Swagger-UI the Edge and Chrome browsers are keep waiting for something but nothing happens.

CORS is enabled: policy.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod(); Swagger registration redirectURL is https://localhost:7215/swagger/oauth2-redirect.html

tualatin commented 3 months ago

The same here, but with the latest Firefox also.

mshasib commented 2 months ago

It seems this is not supported by Entra ID. Look at this issue #9800