comparison 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
parents 3989c57cc551
children 2393dbae51ed
comparison
equal deleted inserted replaced
5408:3989c57cc551 5409:993f28798c75
986 revocation_endpoint_auth_methods_supported = array({ "client_secret_basic" }); 986 revocation_endpoint_auth_methods_supported = array({ "client_secret_basic" });
987 code_challenge_methods_supported = array(it.keys(verifier_transforms)); 987 code_challenge_methods_supported = array(it.keys(verifier_transforms));
988 grant_types_supported = array(it.keys(response_type_handlers)):map(tmap { token = "implicit"; code = "authorization_code" }); 988 grant_types_supported = array(it.keys(response_type_handlers)):map(tmap { token = "implicit"; code = "authorization_code" });
989 response_modes_supported = array(it.keys(response_type_handlers)):map(tmap { token = "fragment"; code = "query" }); 989 response_modes_supported = array(it.keys(response_type_handlers)):map(tmap { token = "fragment"; code = "query" });
990 authorization_response_iss_parameter_supported = true; 990 authorization_response_iss_parameter_supported = true;
991 service_documentation = module:get_option_string("oauth2_service_documentation", "https://modules.prosody.im/mod_http_oauth2.html");
991 992
992 -- OpenID 993 -- OpenID
993 userinfo_endpoint = handle_register_request and module:http_url() .. "/userinfo" or nil; 994 userinfo_endpoint = handle_register_request and module:http_url() .. "/userinfo" or nil;
994 id_token_signing_alg_values_supported = { "HS256" }; 995 id_token_signing_alg_values_supported = { "HS256" };
995 }; 996 };