Software /
code /
prosody-modules
Comparison
mod_http_oauth2/mod_http_oauth2.lua @ 6037:277ccafb4826
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 31 Oct 2024 21:49:32 +0100 |
parent | 5989:7308ec4aaad1 |
child | 6207:a1a33f0f6f6e |
comparison
equal
deleted
inserted
replaced
6036:1ef53e0264f4 | 6037:277ccafb4826 |
---|---|
1676 authorization_response_iss_parameter_supported = true; | 1676 authorization_response_iss_parameter_supported = true; |
1677 service_documentation = module:get_option_string("oauth2_service_documentation", "https://modules.prosody.im/mod_http_oauth2.html"); | 1677 service_documentation = module:get_option_string("oauth2_service_documentation", "https://modules.prosody.im/mod_http_oauth2.html"); |
1678 ui_locales_supported = allowed_locales[1] and allowed_locales; | 1678 ui_locales_supported = allowed_locales[1] and allowed_locales; |
1679 | 1679 |
1680 -- OpenID | 1680 -- OpenID |
1681 userinfo_endpoint = handle_register_request and module:http_url() .. "/userinfo" or nil; | 1681 userinfo_endpoint = handle_userinfo_request and module:http_url() .. "/userinfo" or nil; |
1682 jwks_uri = nil; -- REQUIRED in OpenID Discovery but not in OAuth 2.0 Metadata | 1682 jwks_uri = nil; -- REQUIRED in OpenID Discovery but not in OAuth 2.0 Metadata |
1683 id_token_signing_alg_values_supported = { "HS256" }; -- The algorithm RS256 MUST be included, but we use HS256 and client_secret as shared key. | 1683 id_token_signing_alg_values_supported = { "HS256" }; -- The algorithm RS256 MUST be included, but we use HS256 and client_secret as shared key. |
1684 } | 1684 } |
1685 return authorization_server_metadata; | 1685 return authorization_server_metadata; |
1686 end | 1686 end |