# HG changeset patch # User magicfelix # Date 1745080257 -7200 # Node ID a931a95e363e0fc4a56f10c5ccbbc382bfa6e04c # Parent c1b94dd6e53b16b159f87e75f11b6919c6792ff3 mod_http_oauth2: Pass client to token to enable introspection diff -r c1b94dd6e53b -r a931a95e363e mod_http_oauth2/mod_http_oauth2.lua --- a/mod_http_oauth2/mod_http_oauth2.lua Sat Apr 19 16:25:24 2025 +0200 +++ b/mod_http_oauth2/mod_http_oauth2.lua Sat Apr 19 18:30:57 2025 +0200 @@ -428,7 +428,7 @@ local granted_jid = jid.join(request_username, module.host); local granted_scopes, granted_role = filter_scopes(request_username, params.scope); - return json.encode(new_access_token(granted_jid, granted_role, granted_scopes, nil)); + return json.encode(new_access_token(granted_jid, granted_role, granted_scopes, client)); end function response_type_handlers.code(client, params, granted_jid, id_token)