comparison mod_auth_oauth_external/mod_auth_oauth_external.lua @ 5439:721f79ac88d8

mod_auth_oauth_external: Remove untested JID mapping This should probably be opt-in.
author Kim Alvefur <zash@zash.se>
date Wed, 10 May 2023 13:45:28 +0200
parents 53f34e17d590
children 82a14082be3f
comparison
equal deleted inserted replaced
5438:53f34e17d590 5439:721f79ac88d8
72 end 72 end
73 local response = json.decode(ret.body); 73 local response = json.decode(ret.body);
74 if type(response) ~= "table" or (response[username_field]) ~= username then 74 if type(response) ~= "table" or (response[username_field]) ~= username then
75 return false, nil, nil; 75 return false, nil, nil;
76 end 76 end
77 if response.jid then
78 self.username, self.realm, self.resource = jid.prepped_split(response.jid, true);
79 end
80 self.token_info = response; 77 self.token_info = response;
81 return true, true; 78 return true, true;
82 end 79 end
83 end 80 end
84 if validation_endpoint then 81 if validation_endpoint then