We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bb2413 commit b9fd68eCopy full SHA for b9fd68e
lib/resty/openidc.lua
@@ -583,8 +583,11 @@ end
583
584
-- make a call to the userinfo endpoint
585
function openidc.call_userinfo_endpoint(opts, access_token)
586
- openidc_ensure_discovered_data(opts)
587
- if not opts.discovery.userinfo_endpoint then
+ local err = openidc_ensure_discovered_data(opts)
+ if err then
588
+ return nil, err
589
+ end
590
+ if not (opts and opts.discovery and opts.discovery.userinfo_endpoint) then
591
log(DEBUG, "no userinfo endpoint supplied")
592
return nil, nil
593
end
0 commit comments