mod_saslauth: Rename field from 'scope'->'role'
authorMatthew Wild <mwild1@gmail.com>
Wed, 15 Jun 2022 11:47:39 +0100
changeset 12645 e9865b0cfb89
parent 12644 999b1c59af6f
child 12646 9061f9621330
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.
plugins/mod_saslauth.lua
--- a/plugins/mod_saslauth.lua	Wed Jun 15 11:37:09 2022 +0100
+++ b/plugins/mod_saslauth.lua	Wed Jun 15 11:47:39 2022 +0100
@@ -52,7 +52,7 @@
 		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;