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

option to disable ssl cert check #229

Closed
rahulreddy opened this issue Feb 6, 2015 · 3 comments
Closed

option to disable ssl cert check #229

rahulreddy opened this issue Feb 6, 2015 · 3 comments

Comments

@rahulreddy
Copy link

Currently there is no way to disable ssl certificate check, so I am using this monkey patch in my code

var src = fs.readFileSync(module_file, 'utf8')
    .replace(
        'this.shred = new this.Shred(options)',
        'this.shred = new this.Shred({defaults: {sslStrict:false}})' 
    )

It would be helpful if we can pass this as an option when instantiating the client.

@webron
Copy link
Contributor

webron commented Feb 6, 2015

That looks like one step before submitting a PR ;)

@fehguy
Copy link
Contributor

fehguy commented Feb 19, 2015

you can now pass opts to the client when making the calls:

new SwaggerHttp().execute(obj, opts);

These opts will flow to which either client specified as in obj.useJQuery.

@nrshrivatsan
Copy link

Should the options be passed like

var opts = {};
      opts.spec = {
          swagger: '2.0',
          defaults: {
              sslStrict:false
          }      
      };
      new SwaggerHttp().execute(obj,opts);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants