Diff

util/sasl/oauthbearer.lua @ 12936:b796e08e6376

util.sasl.oauthbearer: Attach token_info to sasl handler This allows token-aware things to access extra information about the authentication, such as when the token is due to expire and the attached custom 'data'.
author Matthew Wild <mwild1@gmail.com>
date Wed, 15 Mar 2023 09:41:38 +0000
parent 12918:ed20555f163a
child 12937:23b20ede9c34
line wrap: on
line diff
--- a/util/sasl/oauthbearer.lua	Tue Mar 14 19:46:46 2023 +0100
+++ b/util/sasl/oauthbearer.lua	Wed Mar 15 09:41:38 2023 +0000
@@ -75,6 +75,8 @@
 
 	self.resource = token_info.resource;
 	self.role = token_info.role;
+	self.token_info token_info;
+
 	return "success";
 end