mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
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'.
This commit is contained in:
parent
adb37b8272
commit
9dedc78f3c
1 changed files with 2 additions and 0 deletions
|
@ -75,6 +75,8 @@ local function oauthbearer(self, message)
|
|||
|
||||
self.resource = token_info.resource;
|
||||
self.role = token_info.role;
|
||||
self.token_info token_info;
|
||||
|
||||
return "success";
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue