Changeset

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
parents 12935:ddb9e330d627
children 12937:23b20ede9c34
files util/sasl/oauthbearer.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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