summaryrefslogtreecommitdiff
path: root/sleekxmpp/features/feature_mechanisms/mechanisms.py
AgeCommit message (Collapse)Author
2014-07-17Rename to slixmppFlorent Le Coz
2014-05-14Support jabberd2 SASL with really empty responseGraham
Despite http://xmpp.org/rfcs/rfc3920.html#rfc.section.6.2, jabberd version 2.2.14 cannot accept the typical "<response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">=</response>". Instead it must be truly empty, so we force an empty response for this stanza only.
2013-09-21Add log message noting that SCRAM-SHA-1-PLUS requires Py3.3+Lance Stout
2013-07-26optimize importsJean-Philippe Caruana
2013-03-28`failed_auth` data returnedAnton Ryzhov
Manual updated
2013-03-28XMLStream `proxy_error` event duplicated with `connection_failed`Anton Ryzhov
SASL `no_auth` event duplicated with `failed_auth`
2013-03-28Changed `failed_auth` event according to manualAnton Ryzhov
2013-01-24Put StringPrep exception handler with the right try block.Lance Stout
2012-12-03Fix requesting channel binding from sockets that don't support it.Lance Stout
2012-11-27Use the username credential instead of jid to enable ANONYMOUS auth.Lance Stout
2012-11-27Allow for more credential values to be user specified instead of auto-filled.Lance Stout
2012-10-01Update legacy auth to be used outside of stream features.Lance Stout
Also, add detection of legacy XMPP version.
2012-08-17Ensure that auth is done based on the original, requested JID and not on the ↵Lance Stout
bound JID.
2012-08-14Fix using PLAIN over older SSL method.Lance Stout
2012-08-10Fix tracking service name for DIGEST-MD5Lance Stout
2012-08-02Ensure default authzids are handled.Lance Stout
2012-08-01Use correct method for getting channel binding.Lance Stout
2012-07-30Update and integrate Suelta.Lance Stout
2012-07-26Enhance plugin config with attribute accessors.Lance Stout
This makes updating the config after plugin initialization much easier.
2012-05-15Add auth_success event.Lance Stout
The auth_success event is triggered upon successful SASL negotiation.
2012-05-14Use SASLPrepFailure as the exception name instead of UnicodeError.Lance Stout
2012-05-14Add an exception handler for SASLprep failures.Lance Stout
2012-04-11Reset attempted SASL mech set after no suitable mechs are found.Lance Stout
2012-03-13Explicitly set the desired SASL mech to ANONYMOUS if no username is provided.Lance Stout
2012-03-13Correct handling SASL auth failures when forcing the use of a specific ↵Lance Stout
mechanism.
2012-03-12Move feature_mechanisms to new system.Lance Stout
2012-02-17More extraneous import cleanup.Lance Stout
2012-01-21Require explicitly setting access_token value.Lance Stout
Silently substituting the password field was nice, but for mechs that can use either the password or an access token, it makes things very difficult. This really only affects MSN clients since Facebook clients should already be setting the api key.
2012-01-21Handle SASLCancelled and SASLError exceptions.Lance Stout
2012-01-20Allow attempting multiple SASL mechs during a single stream.Lance Stout
Instead of disconnecting when the first chosen mech fails, we will try all of them once.
2012-01-20Add an extra config dict to store SASL credentials.Lance Stout
We'll need extra things beyond just a password, such as api_key.
2012-01-18Revert "Remove stream feature handlers on session_start."Lance Stout
This reverts commit 4274f49ada77d709b931f65e34d3a64e75b81638. The SASL mech was choking on this, so let's send it back for some more refining.
2012-01-17Remove stream feature handlers on session_start.Lance Stout
Based on profiling, using around 35 stream handlers quarters the number of basic message stanzas that can be processed in a second, in comparison to only using the bare minimum of four handlers. To help, we can drop handlers for stream features once the session has started. So that we can re-enable these handlers when a stream must restart, the 'stream_start' event has been added which fires whenever a stream header is received. The 'stream_start' event is a more generic replacement for the existing start_stream_handler() method.
2012-01-06Add support for MSN with X-MESSENGER-OAUTH2 SASL support.Lance Stout
NOTE: This requires already having the access token. It does NOT perform any OAuth requests.
2011-11-19Tidy up logging calls.Lance Stout
2011-11-20This change stops sleekxmpp from spending huge amounts of time unnecessarily ↵Vijay Pandurangan
computing logging data that may never be used. This is a HUGE performance improvement; in some of my test runs, unnecessary string creation was accounting for > 60% of all CPU time. Note that using % in a string will _always_ perform the sting substitutions, because the strings are constructed before the function is called. So log.debug('%s' % expensiveoperation()) will take about the same CPU time whether or not the logging level is DEBUG or INFO. if you use , no substitutions are performed unless the string is actually logged
2011-08-09Enable forcing a specififc SASL mech:Lance Stout
xmpp = ClientXMPP(jid, password, { 'feature_mechanisms': {'use_mech':'PLAIN'}})
2011-08-04Cosmetic PEP8 fixes.Lance Stout
2011-08-03Integrate a modified version of Dave Cridland's Suelta SASL library.Lance Stout
2011-07-02SASL failure event now includes the failure stanza.Lance Stout
Broke SASL stanzas into separate files. Fixed typo in feature_bind.
2011-07-02It isn't 2010 anymore.Lance Stout
I keep forgetting to update the copyright on new code.
2011-07-02Use a set to track negotiated features.Lance Stout
Added guards to prevent renegotiating STARTTLS or SASL in cases where servers don't behave properly.
2011-07-02Simplify SASL mech registration.Lance Stout
Moved SASL registration completely to the feature plugin, instead of keeping a portion of it in ClientXMPP.
2011-07-02Finish cleaning up stream feature organization.Lance Stout
Fixed missing references that weren't caught due to leftover pyc file allowing tests to keep working when they shouldn't have.
2011-07-01Continued reorganization and streamlining.Lance Stout