Closed arun-a-nayagam closed 1 year ago
Hi, @arun-a-nayagam - this may be possible and falls in line with the insecure
flag... but I do not see a clear way in the oauth client to do this. I welcome research or suggestions, but the package documentation is pretty slim. It may be more straight forward to add the issuer to the system trust store in this case?
Hi @DRuggeri, just came across this same issue.
I'm not an expert on go lang, but I see that there is a way to configure it in the oauth client library using a context. It was proposed in this bug: https://github.com/golang/oauth2/issues/187 (and some usage example here).
I see that you already create an HTTP client, both for the insecure flag and for other features (proxy, cookie jar, etc.). Maybe this same HTTP client can be used for the context of oauth2.
With the help of @yoshigev, pushed #234.
That turned out to be a nice and clean fix! I am releasing a new version now including the change.
I use oauth_client_credentials to specify the token endpoint, client id and secret. I see this error,
Is there a way to pass a flag like, --insecure-skip-tls-verify?
I did try setting insecure = true at the provider level. Still throws the same error.