aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-06-15 11:47:39 +0100
committerMatthew Wild <mwild1@gmail.com>2022-06-15 11:47:39 +0100
commit8b384dc77fe54fc6a6c228dd5b6208d403f74216 (patch)
treeb6e1da018cdc4d29f0024aafaea816fe4d825a80
parent7ebea134e6fd45a524b8a924be04c3b51f8f7799 (diff)
downloadprosody-8b384dc77fe54fc6a6c228dd5b6208d403f74216.tar.gz
prosody-8b384dc77fe54fc6a6c228dd5b6208d403f74216.zip
mod_saslauth: Rename field from 'scope'->'role'
The 'scope' term derives from OAuth, and represents a bundle of permissions. We're now setting on the term 'role' for a bundle of permissions. This change does not affect any public modules I'm aware of.
-rw-r--r--plugins/mod_saslauth.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index e94b2d78..c7228b10 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -52,7 +52,7 @@ local function handle_status(session, status, ret, err_msg)
module:fire_event("authentication-failure", { session = session, condition = ret, text = err_msg });
session.sasl_handler = session.sasl_handler:clean_clone();
elseif status == "success" then
- local ok, err = sm_make_authenticated(session, session.sasl_handler.username, session.sasl_handler.scope);
+ local ok, err = sm_make_authenticated(session, session.sasl_handler.username, session.sasl_handler.role);
if ok then
module:fire_event("authentication-success", { session = session });
session.sasl_handler = nil;