sureshchahal / angular2-adal

Angular 2 wrapper for adal.js
MIT License
41 stars 50 forks source link

Fix for refresh ignoring id_token #45

Closed jjbrunton closed 7 years ago

jjbrunton commented 7 years ago

Hiya,

I've been working with this library for our Azure Angular application for authentication and I've encountered an issue where the parent window isn't informed of a successful authentication within the iframe that is used for silent authentication.

Upon looking over the code, it looks like adal.js checks for either an access_token or id_token and stores them to allow the continuation of the application. This library appears to ignore the id_token which causes the internal iframe to ignore the callback.

I'm happy to be corrected on this issue and if it turns out to be a configuration issue I'll go ahead and change our code.

sureshchahal commented 7 years ago

Merged and published