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

Only present the sendAccessToken interceptor mechanism in the Readme #554

Merged
merged 1 commit into from Jul 17, 2019
Merged

Only present the sendAccessToken interceptor mechanism in the Readme #554

merged 1 commit into from Jul 17, 2019

Conversation

nhumblot
Copy link
Contributor

@nhumblot nhumblot commented May 8, 2019

Hello,

Firstly, thank you very much for this awesome library. At my company, we build a lot of Angular applications in an Openid Connect environment and this dependency is a must. Having helped some teams implementing it, when coming to the interceptor part, I discovered that most people use a classic http interceptor and use the first snippet of code for sending the access token.

This is sad because the feature you implemented in the 3.1 version is really great and this white listing mechanism is very convenient and improve the security. I think it deservers to be the only displayed implementation in the Readme, which should focus on a basic setup, and let the documentation display alternative ways, which it already does very well. Also, the 3.1 version has been out for a year and half now and all Angular 4+ projects can use this implementation.

The best would have been to display an https url but the provided url in the snippet display an SSL_ERROR_BAD_CERT_DOMAIN when going on https so I didn't make the change on this.

If you think the classic interceptor should be kept into the Readme, I can udpate my pull request and put it back at second.

I'm looking for any comment that you may think useful.
Kind regards

@manfredsteyer
Copy link
Owner

Good idea!

@manfredsteyer manfredsteyer merged commit f078665 into manfredsteyer:master Jul 17, 2019
@nhumblot nhumblot deleted the readme-interceptor branch July 20, 2019 07:01
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

Successfully merging this pull request may close these issues.

None yet

2 participants