Skip to content

Commit 73477b5

Browse files
committed
allow setting ssl_verify to "false" on userinfo endpoint call
closes #125; thanks @hugomcfonseca Signed-off-by: Hans Zandbelt <[email protected]>
1 parent aafa890 commit 73477b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/resty/openidc.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ local function openidc_call_userinfo_endpoint(opts, access_token)
326326
local httpc = http.new()
327327
openidc_configure_timeouts(httpc, opts.timeout)
328328
local res, err = httpc:request_uri(opts.discovery.userinfo_endpoint, {
329-
headers = headers
329+
headers = headers,
330+
ssl_verify = (opts.ssl_verify ~= "no")
330331
})
331332
if not res then
332333
err = "accessing ("..opts.discovery.userinfo_endpoint..") failed: "..err

0 commit comments

Comments
 (0)