-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add angular 5 and replace AuthHttp with new Http Interceptor #77
Conversation
can't say if the implementation of the interceptor is correct or not, but i want it |
Also looking to use this... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirm this for Angular 5
@sureshchahal almost two months passed, any info about merge for Angular 5 (current) support? Tx |
package-lock.json
Outdated
@@ -0,0 +1,3145 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rjwijnen you should probably not be pushing this file in.
What's the status for this one? |
I have leveraged the AuthHttpInterceptor that is provided in this PR in my own project (copy and paste) and I can confirm that it works. From what I see, there might just be a webpack warning due to dynamic requires if you were to try to use this with Angular 5, but this would at least enable folks to continue using this library with Angular 5. Great work @rjwijnen , much appreciated! |
@ranveeraggarwal i removed the package lock. |
@sureshchahal could you look at this pull request and push it to master and NPM? |
Hi Is this already fix i am getting this error WARNING in ./node_modules/ng2-adal/node_modules/@angular/core/@angular/core.es5.js WARNING in ./node_modules/ng2-adal/node_modules/@angular/core/@angular/core.es5.js If already fxed may i know how will i implement it in my proj 👍 tnx |
@rjwijnen can you please create your own project for the version 5 changes and host it on NPM? Looks like @sureshchahal is not active on this anymore. |
Yes please, sorry I have lot at hand at moment. If someone wants to take
ownership , I am happy to add them as owner also.
…On Tue, Aug 7, 2018 at 3:23 PM saransh944 ***@***.***> wrote:
@rjwijnen <https://github.com/rjwijnen> can you please create your own
project for the version 5 changes and host it on NPM? Looks like
@sureshchahal <https://github.com/sureshchahal> is not active on this
anymore.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#77 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARLaHy_iCnuejP4g0b_eAsYlS9UE-c_7ks5uOhN7gaJpZM4QwIQS>
.
|
Thanks for the response @sureshchahal . Just a quick note, a lot of users of this repo including myself reviewed the changes by @rjwijnen and everything looks good. Is it possible for you to merge this change? |
@saransh944 in the meantime i switched to https://github.com/benbaran/adal-angular4 .. |
@rjwijnen , thanks for the suggestion. Since we are talking about this, how are you handling the behavior that happens after the token is refreshed? I have noticed whenever the token refreshes, app is initialized 2-3 times, also Angular change detection does not work properly, i.e. ngModule breaks, @input changes from parent to child component doesn't propagate, etc. I am deleting the adal iFrame that gets created for the token refresh in case that is the reason for this weird behavior, but still I'm seeing these glitches. Do you have any recommendations on that? |
Yesterday i tried to make the library work on Angular 5 and use the new HttpClient. As i saw a lot of other library's changed to the http interceptor for adding the auth. token. I tried to implement the logic from the old Auth Http into a new Interceptor. I hope some of you can double check everything is working?