# HG changeset patch # User Kim Alvefur # Date 1730407772 -3600 # Node ID 277ccafb4826053334bb3886edf9d92ed74b99d1 # Parent 1ef53e0264f4c7e63a96b2241a5b3bcb4d514514 mod_http_oauth2: Fix check for userinfo endpoint handler It was checking whether the wrong handler exists. It could have made sense if there was some dependency between them but there isn't. diff -r 1ef53e0264f4 -r 277ccafb4826 mod_http_oauth2/mod_http_oauth2.lua --- a/mod_http_oauth2/mod_http_oauth2.lua Fri Nov 01 11:09:49 2024 -0500 +++ b/mod_http_oauth2/mod_http_oauth2.lua Thu Oct 31 21:49:32 2024 +0100 @@ -1678,7 +1678,7 @@ ui_locales_supported = allowed_locales[1] and allowed_locales; -- OpenID - userinfo_endpoint = handle_register_request and module:http_url() .. "/userinfo" or nil; + userinfo_endpoint = handle_userinfo_request and module:http_url() .. "/userinfo" or nil; jwks_uri = nil; -- REQUIRED in OpenID Discovery but not in OAuth 2.0 Metadata id_token_signing_alg_values_supported = { "HS256" }; -- The algorithm RS256 MUST be included, but we use HS256 and client_secret as shared key. }