Mercurial > prosody-modules
comparison mod_http_oauth2/mod_http_oauth2.lua @ 5399:89c9e9bba60d
mod_http_oauth2: Advertise response modes
Are you supposed to be able to influence these somewhere, or is this
just response types with different labels?
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 02 May 2023 16:08:35 +0200 |
parents | 38da5ca498dd |
children | 71766a4a7322 |
comparison
equal
deleted
inserted
replaced
5398:38da5ca498dd | 5399:89c9e9bba60d |
---|---|
961 return "implicit" | 961 return "implicit" |
962 elseif h == "code" then | 962 elseif h == "code" then |
963 return "authorization_code" | 963 return "authorization_code" |
964 end | 964 end |
965 end); | 965 end); |
966 response_modes_supported = array(it.keys(response_type_handlers)):map(function(h) | |
967 if h == "token" then | |
968 return "fragment" | |
969 elseif h == "code" then | |
970 return "query" | |
971 end | |
972 end); | |
966 authorization_response_iss_parameter_supported = true; | 973 authorization_response_iss_parameter_supported = true; |
967 | 974 |
968 -- OpenID | 975 -- OpenID |
969 userinfo_endpoint = handle_register_request and module:http_url() .. "/userinfo" or nil; | 976 userinfo_endpoint = handle_register_request and module:http_url() .. "/userinfo" or nil; |
970 id_token_signing_alg_values_supported = { "HS256" }; | 977 id_token_signing_alg_values_supported = { "HS256" }; |