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

Fails on acquiretoken if using adaljs 1.0.16 #85

Open
kphung138 opened this issue Jan 17, 2018 · 9 comments
Open

Fails on acquiretoken if using adaljs 1.0.16 #85

kphung138 opened this issue Jan 17, 2018 · 9 comments

Comments

@kphung138
Copy link

kphung138 commented Jan 17, 2018

In Adaljs 1.0.16, the way handleWindowCallback works has change in terms of how the _renewStatuses variable is retrieved from the iframe. My work around for now is to add a yarn.lock or npm-shrinkwrap.json to tell it to get v1.0.14 and not 1.0.16 because the package.json allows for minor upgrad eg. ^1.0.14

Previously the logic to get the _renewStatuses from the iframe parent in RequestInfo. But now this code has moved out to handleWindowCallback and ng2-adal implements it's own handleWindowCallback .

@skorunka
Copy link

@kphung138 I had a same issue adal 1.0.16 - the acquire toked sopped to work. Version 1.0.15 works just fine. Thank you for sharing.

@skorunka
Copy link

Do you guys know what to change to make angular2-adal work with adal 1.0.16?

@kphung138
Copy link
Author

kphung138 commented Jan 20, 2018 via email

@skorunka
Copy link

@kphung138 Exactly, you are right. I'm already trying to figure out what changes were made to methods in handleWindowCallback between 1.0.15 and 1.0.16 so I can refactor the wrapper. For now, I'm using v1.0.15.

@kphung138
Copy link
Author

kphung138 commented Jan 20, 2018 via email

@skorunka
Copy link

@kphung138 Can you share the code or the link to the post? Thank you.

@kphung138
Copy link
Author

kphung138 commented Jan 22, 2018

See if this link works https://github.com/AzureAD/azure-activedirectory-library-for-js/issues/698. The issue has been closed as it's a bug with the ng2-adal.

@claudiuconstantin
Copy link

@kphung138, that link is dead, the correct one is: AzureAD/azure-activedirectory-library-for-js#698

@stamler
Copy link

stamler commented Jan 30, 2018

@kphung138 thanks for isolating this. I'm using adal-angular5 and it seems to have the same issue. @grumar has already updated the dependencies to 1.0.16 but it seems to break token acquisition that was working on 1.0.15 so I've locked it to the old version for now. SessionStorage shows invalid adal states (tested using a separate app ID for Angular and the server, in my case falcon/python. Hoping to get a better look at this in 10 days if someone doesn't get to it before me.

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