Mercurial > prosody-modules
diff mod_sasl2_fast/mod_sasl2_fast.lua @ 5286:a91adc164566
mod_sasl2_fast: Add flag to FAST sasl_handler for easier identification
Other code that looks at session.sasl_handler can now detect if a client used
FAST to authenticate.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 29 Mar 2023 16:13:00 +0100 |
parents | 8e1f1eb00b58 |
children | 4834eaf24fc1 |
line wrap: on
line diff
--- a/mod_sasl2_fast/mod_sasl2_fast.lua Wed Mar 29 16:12:15 2023 +0100 +++ b/mod_sasl2_fast/mod_sasl2_fast.lua Wed Mar 29 16:13:00 2023 +0100 @@ -112,6 +112,7 @@ end local sasl_handler = get_sasl_handler(username); if not sasl_handler then return; end + sasl_handler.fast_auth = true; -- For informational purposes -- Copy channel binding info from primary SASL handler sasl_handler.profile.cb = session.sasl_handler.profile.cb; sasl_handler.userdata = session.sasl_handler.userdata;