Software /
code /
prosody-modules
Diff
mod_http_oauth2/mod_http_oauth2.lua @ 5409:993f28798c75
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 02 May 2023 17:04:19 +0200 |
parent | 5408:3989c57cc551 |
child | 5416:2393dbae51ed |
line wrap: on
line diff
--- 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;