grim/prosody_mod_auth_jetbrains_hub

Add a tad more debugging

2019-10-24, Gary Kramlich
04429328022c
Parents 297bf63a92af
Children 9225c55c5d30
Add a tad more debugging
--- a/mod_auth_jetbrains_hub.lua Mon Oct 21 20:38:02 2019 -0500
+++ b/mod_auth_jetbrains_hub.lua Thu Oct 24 04:55:25 2019 -0500
@@ -31,7 +31,7 @@
local hub_groups = module:get_option_set("jetbrains_hub_groups", {});
--- we only need to update the group part of the query once on load so do it
+-- we only need to update the group part of the query once on load so do it
-- right away
local group_query = get_group_query()
@@ -152,6 +152,7 @@
end
function provider.test_password(username, password)
+ module:log("debug", "testing password for jbhub auth")
local headers = { Authorization = "Basic "..base64(hub_client_id..":"..hub_client_secret); };
local body = {
{ name = "grant_type", value = "password" };