-
Notifications
You must be signed in to change notification settings - Fork 104
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
acquireToken issue #137
Comments
Hi @kov-hans , I had exactly the same problem (angular 7, same adal's version)
I tried a lots of things. The game changer for me was to use the frameredirect.html method.
That's all
|
Hi @Chappitono , can you post the complete implementation? I'm sure lots of people will greatly appreciate it. |
Thank you very much for this solution! It solved all my issues! I don't know if there is a better solution but I created one frameRedirect for each of my environments (dev, test etc) since they have different configurations. |
@kov-hans very happy it worked for you. As asked by @bryiantan , I will very soon post the complete solution in a new project with 1 frameRedirect file. Will update the answer as soon as it is ready. |
Thank you @kov-hans |
Íf acquireToken is called, or if a token is acquired by the lib when a method in an API is called, the angular application is restarted when the token response is received. Further more angular change detection does not work at this point, GUIs are not updated with the changes in the model. I tried to use the Router to navigate somewhere else to get change detection working again, but that doesn't help. So everytime I receive a new token I have to call location.reload to make the application work again. I don't know if this is a problem in Angular, Adal or adal-angular4? Has anyone else experienced this problem?
I'm using
Angular 8.0.3
Adal: 1.017
Adal-angular4: 4.0.12
The text was updated successfully, but these errors were encountered: