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

Ng2SmartTableModule makes JWT AUTH not working #892

Open
omfd opened this issue Oct 14, 2018 · 2 comments
Open

Ng2SmartTableModule makes JWT AUTH not working #892

omfd opened this issue Oct 14, 2018 · 2 comments

Comments

@omfd
Copy link

omfd commented Oct 14, 2018

This issue has happened with me when I created ng2-smart-table component in the module and imported Ng2SmartTableModule in the module which makes JWT based request.

Could be mistake on my part as soon as I remove Ng2SmartTableModule from imports and ng2-smart-table from my components all my failed requests are working properly

@omfd omfd changed the title Ng2SmartTableModule makes JWT AUTH working Ng2SmartTableModule makes JWT AUTH not working Oct 15, 2018
@keerthich
Copy link

I'm also facing the same issue, any update on this issue?

Thanks
keerthi

@andreatoppan
Copy link

andreatoppan commented Feb 28, 2019

I have the same Issue,
I think that the issue is related to the fact that the server.data-source.d.js in /lib/data-source/server is importing the HttpClient, and this component will be then used to issue all the consecutive REST calls.
The JWT Auth is usually defined in the App Module therefore if the misconfigured HttpClient is used the JWT auth is not working.
According to the angular docs, the HttpClientModule need only be imported once, in the root of the App.

This seems a duplicate of the same problem.

Thanks
Andrea

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

3 participants