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

[Question]: How can I use urlHandler when using authorizeWithPopUp, is it supported in popup? #1969

Open
samlotti opened this issue Jun 18, 2024 · 0 comments
Labels

Comments

@samlotti
Copy link

samlotti commented Jun 18, 2024

What Version of the library are you using?
14

Question
I'm trying to login using a popup version of authorize and investigating how the 'urlHandler' can be used. My issue is that I am in an iframe. This is causing me to require the popup version.

During the investigation, I am trying to use the urlHandler. However it appears the popup doesnt support the urlHandler. If i use regular authorize 'urlHandler' is called:

this.oidcSecurityService.authorize(this.user.SSO.configName, { urlHandler: async (url) => { alert('url: ' + url); }, });
The above code will show the alert.

this.oidcSecurityService .authorizeWithPopUp( { urlHandler: async (url) => { alert('url: ' + url); }, }, {}, this.user.SSO.configName, ) .subscribe(({ isAuthenticated, userData, accessToken, errorMessage }) => { });
This code does not get executed.

Is the urlHandler only available for non-popup?

Thank you
-Sam

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

No branches or pull requests

1 participant