Skip to content

Commit b1806f0

Browse files
committed
zmartzone#204 Access to OIDC Token endpoint don't fully respect OAuth Specifications
1 parent fdfb567 commit b1806f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/resty/openidc.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ function openidc.call_token_endpoint(opts, endpoint, body, auth, endpoint_name)
386386
if auth then
387387
if auth == "client_secret_basic" then
388388
if opts.client_secret then
389-
if opt.strict_oauth_client_authentication then
389+
if opts.strict_oauth_client_authentication then
390390
headers.Authorization = "Basic " .. b64(ngx.escape_uri(opts.client_id) .. ":" .. ngx.escape_uri(opts.client_secret))
391391
else
392392
headers.Authorization = "Basic " .. b64(opts.client_id .. ":" .. opts.client_secret)

0 commit comments

Comments
 (0)