# HG changeset patch # User Kim Alvefur # Date 1683039859 -7200 # Node ID 993f28798c7562784674ff6ac3933f9551c442f5 # Parent 3989c57cc5512d0545d3ddc986faf270baec1db2 mod_http_oauth2: Add service documentation URL to metadata This is aimed to those building integrations, so the modules site seems appropriate. Configurable so that a deployment can point to their own OAuth documentation. diff -r 3989c57cc551 -r 993f28798c75 mod_http_oauth2/mod_http_oauth2.lua --- a/mod_http_oauth2/mod_http_oauth2.lua Tue May 02 17:01:02 2023 +0200 +++ b/mod_http_oauth2/mod_http_oauth2.lua Tue May 02 17:04:19 2023 +0200 @@ -988,6 +988,7 @@ grant_types_supported = array(it.keys(response_type_handlers)):map(tmap { token = "implicit"; code = "authorization_code" }); response_modes_supported = array(it.keys(response_type_handlers)):map(tmap { token = "fragment"; code = "query" }); authorization_response_iss_parameter_supported = true; + service_documentation = module:get_option_string("oauth2_service_documentation", "https://modules.prosody.im/mod_http_oauth2.html"); -- OpenID userinfo_endpoint = handle_register_request and module:http_url() .. "/userinfo" or nil;