Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return error when redirect to popUp window fails while getting token #1400

Open
shruthi1994 opened this issue Apr 7, 2023 · 1 comment
Open

Comments

@shruthi1994
Copy link

Describe the feature request?

Opening the redirectUrl in the popUp doesn't return any error when it fails

popupWindow.location.assign(requestUrl);

For example when the redirectUrl fails because of 429 status code I would like to receive a http status code. Currently if it fails all I get is 'Unable to parse OAuth flow response' which doesn't really explain what's the exact reason.

New or Affected Resource(s)

N/A

Provide a documentation link

No response

Additional Information?

No response

@denysoblohin-okta
Copy link
Contributor

I believe it's not currently possible.
Popup window should have same origin as opener to allow reading HTML content of opened window.
Communication between your app (okta-auth-js SDK) and popup window is implemented with cross-window events and such messages are not produced in case of HTTP 429, 404, 400 or other errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants