aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl.lua
Commit message (Collapse)AuthorAgeFilesLines
* util.sasl: Preserve 'userdata' field between clonesMatthew Wild13 days1-3/+8
| | | | | | | | | | | | | | The :clean_clone() method is designed to provide a new cloned SASL handler, to be used when starting a fresh SASL negotiation on an existing connection. The userdata field is currently populated by mod_saslauth with the "read-only" information that the channel binding methods need to do their stuff. When :clean_clone() does not preserve this, it causes tracebacks in the cb profile handlers due to the property being nil. This does mean that SASL handlers should now not be reused (even when cloned) across different connections, if they ever could.
* util.sasl: Fix a singularsKim Alvefur2023-04-071-1/+1
| | | | | Thanks timeless, your mere existence inspires us to improve our spelling, tho this was more syntax.
* util: Prefix module imports with prosody namespaceKim Alvefur2023-03-171-5/+5
|
* util.sasl: Add SASL OAUTHBEARER mechanism (RFC 7628)Matthew Wild2023-03-011-4/+5
|
* Spelling: Fix various spelling mistakes (thanks timeless)Kim Alvefur2022-03-071-2/+2
| | | | | | Words, sometimes I wonder how they even work Maybe I missed something.
* Fix various spelling errors (thanks codespell)Kim Alvefur2021-07-271-1/+1
| | | | | Also special thanks to timeless, for wordlessly reminding me to check for typos.
* util.sasl.digest-md5: Remove, obsolete since 2011Kim Alvefur2020-04-141-1/+0
| | | | | | | RFC 6331 lists several problems with this outdated authentication mechanism. The code here was also completely ignored by lint checks and has probably not been used for a long time, as it is incompatible with SCRAM-hashed password storage.
* vairious: Add annotation when an empty environment is set [luacheck]Kim Alvefur2018-02-281-0/+1
|
* util: Various minor changes to please [luacheck]Kim Alvefur2017-11-101-4/+4
|
* util.*: Remove use of module() function, make all module functions local and ↵Kim Alvefur2015-02-211-4/+7
| | | | return them in a table at the end
* util.sasl: Fix logic for when mechanisms with channel binding support are ↵Kim Alvefur2014-03-221-6/+8
| | | | offered
* util.sasl: Remove unused print() import.Waqas Hussain2013-10-071-1/+0
|
* util.sasl: Make registerMechanism a public function (again)Waqas Hussain2013-10-071-1/+1
|
* Merge Tobias SCRAM-PLUS workKim Alvefur2013-09-221-2/+45
|\
| * Only advertise mechanisms needing channel binding if a channel binding ↵Tobias Markmann2011-02-071-2/+25
| | | | | | | | backend is avaliable.
| * util.sasl: New method to add channel binding handler to a SASL instance.Tobias Markmann2011-01-171-0/+9
| |
| * Check whether we support the proposed channel binding type.Tobias Markmann2011-01-151-0/+11
| |
* | util.sasl.external: Add SASL EXTERNAL mechanismKim Alvefur2013-06-131-0/+1
| |
* | util.sasl: Make registerMechanism a public functionMatthew Wild2012-06-181-1/+1
| |
* | util.sasl: Cache the calculated mechanisms set for SASL profiles ↵Waqas Hussain2010-12-291-5/+9
|/ | | | (profile.mechanisms table).
* util.sasl, util.sasl_cyrus: Mechanism selection cleaned up to be more ↵Waqas Hussain2010-11-021-6/+4
| | | | consistent.
* util.sasl, util.sasl_cyrus: Load mechanisms list early rather than lazily, ↵Waqas Hussain2010-11-021-14/+10
| | | | as they are always loaded anyway.
* util.sasl: Simplified some code a bit.Waqas Hussain2010-08-031-9/+5
|
* util.sasl, util.sasl_cyrus: Removed a ton of unused variables.Waqas Hussain2010-08-031-15/+1
|
* util.sasl: Removed method:forbidden() and its side effects.Waqas Hussain2010-08-021-21/+5
|
* util.sasl, util.sasl_cyrus: s/self.mechanisms()/self:mechanisms()/ in ↵Waqas Hussain2010-07-151-1/+1
| | | | method:select().
* util.sasl, util.sasl_cyrus: Use method:mechanisms() in method:select(), ↵Waqas Hussain2010-07-141-1/+1
| | | | instead of using the mechanisms list directly (fixes a traceback).
* util.sasl, util.sasl_cyrus: Updated method:mechanisms() to cache and re-use ↵Waqas Hussain2010-07-141-7/+10
| | | | list of mechanisms.
* util.sasl: Use the proper session-specific table of mechanisms when ↵Waqas Hussain2010-07-141-2/+2
| | | | selecting a mechanism, and not the global table.
* SASL: Simplified sasl_handler:mechanisms() to return a set, and not an array.Waqas Hussain2010-07-141-1/+1
|
* SASL: Minor cleanup.Waqas Hussain2010-06-031-5/+2
|
* Merge with tip.Tobias Markmann2010-03-121-1/+1
|\
| * util.sasl: Fixed a nil global access.Waqas Hussain2010-03-021-1/+1
| |
* | util.sasl: 2009 -> 2010 in copyright header.Tobias Markmann2010-03-121-1/+1
| |
* | util.sasl: Moving SASL authentication backends documentation to the ↵Tobias Markmann2010-02-281-21/+0
|/ | | | mechanism files.
* util.sasl: Move some variables to local space. Fix a bug.Tobias Markmann2009-11-281-4/+5
|
* util.sasl: Adding clean_clone() method.Tobias Markmann2009-11-261-0/+5
|
* Cleaning up.Tobias Markmann2009-11-181-5/+5
|
* Tidying up.Tobias Markmann2009-11-181-7/+3
|
* Enable restriction of supported mechanisms in the SASL library.Tobias Markmann2009-11-181-4/+20
|
* Making interop with libpurple. (Thanks darkrain).Tobias Markmann2009-11-171-1/+1
|
* Merge with sasl branch.Tobias Markmann2009-11-161-219/+84
|\
| * Adding support for digest-md5 profile in DIGEST-MD5 implementation.Tobias Markmann2009-11-131-1/+1
| |
| * Change of the digest-md5 profile.Tobias Markmann2009-11-131-1/+2
| |
| * Add support for plain profile in digest-md5 implementation.Tobias Markmann2009-11-131-7/+11
| |
| * Getting PLAIN mechanism work with the new API.Tobias Markmann2009-11-131-3/+6
| |
| * Move each mechanism in an own file.Tobias Markmann2009-11-121-214/+4
| |
| * Fail if mechanism has already been selected.Tobias Markmann2009-08-281-0/+4
| |
| * Store stage in SASL object.Tobias Markmann2009-08-281-91/+88
| |
| * Importing SASL Digest-MD5 code. Now for real.Tobias Markmann2009-08-281-0/+182
| |