# HG changeset patch # User Matthew Wild # Date 1678873298 0 # Node ID b796e08e6376236d441d35fe0432ff990f5c9fd1 # Parent ddb9e330d627e0931c84460208103061bd6c9ed5 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'. diff -r ddb9e330d627 -r b796e08e6376 util/sasl/oauthbearer.lua --- 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