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

add rejectUnauthorized flag #13

Closed
wants to merge 2 commits into from
Closed

add rejectUnauthorized flag #13

wants to merge 2 commits into from

Conversation

tbass134
Copy link

@tbass134 tbass134 commented Aug 28, 2017

This is to add the rejectUnauthorized flag in the authorize request.
In my usage, we connect to a Pusher server in an dev environment. However, when trying to connect, the pusher connection error's out:
Couldn't get auth info from your webapp Host: XX. is not in the cert's altnames:
More detail of this issue is found here:
request/request#1777

This update is to allow to connect to an invalid certificate for development.
If not set, rejectUnauthorized will be true(which is the default)

added rejectUnauthorized flag
true by default
@@ -85,6 +85,7 @@ _.extend(Authorizer.prototype, {
url: this.config.authEndpoint,
form: postData,
auth: auth,
rejectUnauthorized: (this.config.rejectUnauthorized == null ? true : this.config.rejectUnauthorized),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use strict comparison (===)

@dirkbonhomme
Copy link
Owner

Hi @tbass134
Sorry for the late reply. Thanks for the update, looks like it could be useful for other people as well!

Can you please update these 2 things before I merge the changes?

  • Use strict comparator (===)
  • Add this config option to the README documentation

Thanks!

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