Diff

mod_http_oauth2/mod_http_oauth2.lua @ 6239:a931a95e363e

mod_http_oauth2: Pass client to token to enable introspection
author magicfelix <felix@felix-zauberer.de>
date Sat, 19 Apr 2025 18:30:57 +0200
parent 6238:c1b94dd6e53b
child 6240:ab14e7ecb82f
line wrap: on
line diff
--- 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)