# HG changeset patch # User Kim Alvefur # Date 1683036429 -7200 # Node ID 38da5ca498ddf7cb788d4569badd8fa01b5a8a5d # Parent 18b57e91b5e5ecc6f936496d6612bdf9ec59719b mod_http_oauth2: Advertise supported grant types Seems redundant, since it's just the response types with other labels. diff -r 18b57e91b5e5 -r 38da5ca498dd mod_http_oauth2/mod_http_oauth2.lua --- a/mod_http_oauth2/mod_http_oauth2.lua Tue May 02 15:41:36 2023 +0200 +++ b/mod_http_oauth2/mod_http_oauth2.lua Tue May 02 16:07:09 2023 +0200 @@ -956,6 +956,13 @@ revocation_endpoint = handle_revocation_request and module:http_url() .. "/revoke" or nil; revocation_endpoint_auth_methods_supported = array({ "client_secret_basic" }); code_challenge_methods_supported = array(it.keys(verifier_transforms)); + grant_types_supported = array(it.keys(response_type_handlers)):map(function(h) + if h == "token" then + return "implicit" + elseif h == "code" then + return "authorization_code" + end + end); authorization_response_iss_parameter_supported = true; -- OpenID