We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I am using this piece of code:
defaultScheme := []string{scheme} t := runtimeclient.New(url, client.DefaultBasePath, defaultScheme) t.DefaultAuthentication = runtimeclient.APIKeyAuth(authHeaderName, "header", fmt.Sprintf(authHeaderFormat, token)) return client.New(t, strfmt.Default), nil
I would like to add an option to not verify SSL cert. What is the easiest way to accomplish this ?
Thanks.
The text was updated successfully, but these errors were encountered:
construct your client with this: https://github.com/go-openapi/runtime/blob/master/client/runtime.go#L86
Sorry, something went wrong.
I am not an expert in Go. Could you please tell me how to put the struct TLSClientOptions in my code ?
TLSClientOptions
@smutel You can create a TLSClient with TLSClientOption, which accepts several options:
InsecureSkipVerify
Use: client.TLSClient(client.TLSClientOption{InsecureSkipVerify: true})
client.TLSClient(client.TLSClientOption{InsecureSkipVerify: true})
No branches or pull requests
Hello,
I am using this piece of code:
I would like to add an option to not verify SSL cert. What is the easiest way to accomplish this ?
Thanks.
The text was updated successfully, but these errors were encountered: