oAuth2 redirect page does not work with Internet Explorer
See original GitHub issueQ&A (please complete the following information)
- OS: Windows 7
- Browser: Internet Explorer
- Version: 11
- Method of installation: dist assets
- Swagger-UI version: 3.17.2
- Swagger/OpenAPI version: Swagger 2.0
Content & configuration
Any config using oAuth2 authentication flow.
Describe the bug you’re encountering
oAuth2 redirect page does not work with Internet Explorer 11, the redirect page get stuck on an empty webpage (oauth2-redirect.html) with an error (in french sorry):
SCRIPT5007: Impossible d’obtenir la propriété « swaggerUIRedirectOauth2 » d’une référence null ou non définie
It says ‘Impossible to obtain the property “swaggerUIRedirectOauth2” from a null or undefined reference’.
To reproduce…
Try to use oAuth2 with Internet Explorer 11
Expected behavior
I except the window to close and be back authenticated on Swagger UI interface (like in Chrome).
Additional context or thoughts
It seems that window.opener is undefined in Internet Explorer which cause this issue
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
IE ignores 303 redirect in POST -> redirect -> GET scenario
I have an OAuth2 enabled site that experiencing issues related to how IE is handling the 303 response. In the flow, 3 redirects...
Read more >Error AADSTS50011 the redirect URI not match the redirect ...
This error occurs if the redirect URI that the application sent doesn't match any of the redirect URIs that are registered on the...
Read more >Redirect URL of OAuth2.0 of Azure application can not set ...
When using double slash in redirect URL, open microsoft login page by OAuth 2.0 auth API from Android native App, after got authrization, ......
Read more >redirect URI specified in the request does not match the ...
I have checked and checked and checked and the redirect uri's ABSOLUTELY DO MATCH. The app runs fine within IIS Express, prompting for...
Read more >Redirect URI (reply URL) restrictions - Microsoft Entra
Always add redirect URIs to the application object only. · Do not add redirect URI values to a service principal because these values...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same issue here. Any resolution for this one? This should be a high priority issue if oAuth2 fails when using IE.
Same problem here. I found out that adding the page to the “trusted sites” in IE resolves the problem for both IE and Edge.