question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

oAuth2 redirect page does not work with Internet Explorer

See original GitHub issue

Q&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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
patricknolancommented, May 10, 2019

Same issue here. Any resolution for this one? This should be a high priority issue if oAuth2 fails when using IE.

1reaction
jurepurgarcommented, Oct 5, 2018

Same problem here. I found out that adding the page to the “trusted sites” in IE resolves the problem for both IE and Edge.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found