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

Popup doesn't close if the history mode is not on #4

Open
baykingsea opened this issue May 17, 2018 · 9 comments
Open

Popup doesn't close if the history mode is not on #4

baykingsea opened this issue May 17, 2018 · 9 comments

Comments

@baykingsea
Copy link

Sunil - thanks for building a great example. I had tried some other vue npms and samples nothing worked except yours for MSAL. I hope this question is for real since the last two from me turned out to have answers in the services

The code works fine. But when I move the code to production which doesn't support the history mode i.e. my production url has a # in it, it doesn't close the popup. I can see that authorization has happened and I can see tokens in popup window url has well. I unfortunately cannot turn off the # in the production url because that is how the client wants it. Is there a way to handle this scenario?

@sunilbandla
Copy link
Owner

sunilbandla commented May 18, 2018 via email

@baykingsea
Copy link
Author

Both Chrome and Firefox. I couldn't find anything on the stack overflow else I would not have troubled you. Thanks again for creating this plugin and your help.

@baykingsea
Copy link
Author

baykingsea commented May 18, 2018

The homepage url looks like this: www.mydomain.com/website#/ If the has is not there it works fine then.

@sunilbandla
Copy link
Owner

sunilbandla commented May 18, 2018 via email

@baykingsea
Copy link
Author

No I haven't. I am using your code, without any changes.

@sunilbandla
Copy link
Owner

sunilbandla commented May 22, 2018 via email

@bribar
Copy link

bribar commented Mar 1, 2019

Hey @baykingsea ,

I came across this issue and figured out why. I don't think it has to do with the hash, but I could be wrong. Mine was doing same thing but I don't have hashes in url.

I was instantiating the msal library in a component that was within a <div v-if="">, so on a button click I would show that v-if div. Problem was...when the redirect occurred in the popup window the component with msal wasn't loaded because it only happens on click, therefore popup doesn't close and more importantly the promise doesn't complete.

Just thought I'd share...

Nice example @sunilbandla

@KenjiDuggan
Copy link

Hey! I really appreciate you creating this integration for vue.js, I can't seem to get passed this error even though I've registered the URL in the platform, any idea you know something else that is causing this?
image

@sunilbandla
Copy link
Owner

Can you try creating a new application in the portal and add the reply URL? If that doesn't work, asking on stackoverflow will help.

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

No branches or pull requests

4 participants