Module auth_nb
source code
Provides plugs for SASL and NON-SASL authentication mechanisms.
Can be used both for client and transport authentication
See client_nb.py
    |  | SASL Implements SASL authentication. Can be plugged into NonBlockingClient
to start authentication
 | 
    |  | NonBlockingNonSASL Implements old Non-SASL (JEP-0078) authentication used in jabberd1.4 and
transport authentication
 | 
    |  | NonBlockingBind Bind some JID to the current connection to allow router know of our
location. Must be plugged after successful SASL auth
 | 
Imports:
  NS_SASL,
  NS_SESSION,
  NS_STREAMS,
  NS_BIND,
  NS_AUTH,
  NS_STREAM_MGMT,
  Node,
  NodeProcessed,
  isResultNode,
  Iq,
  Protocol,
  JID,
  PlugIn,
  Smacks,
  base64,
  random,
  itertools,
  dispatcher_nb,
  hmac,
  hashlib,
  logging
| Helper function that creates a dict from challenge string 
Sample challenge string:
username="example.org",realm="somerealm",
nonce="OA6MG9tEQGm2hh",cnonce="OA6MHXh6VqTrRk",
nc=00000001,qop="auth,auth-int,auth-conf",charset=utf-8Expected result for challan:
dict['qop'] = ('auth','auth-int','auth-conf')dict['realm'] = 'somerealm' 
   | 
 
| log
   
    Value:| 
logging.getLogger('nbxmpp.auth_nb')
 | 
 | 
 
| SASL_FAILURE_IN_PROGRESS
   
    Value:
 |