def __init__(self, assertion, audience): """Prepares credentials for LDAP/sasl bind. Prepares assertion and audience to be used as the ``CB_USER`` and ``CB_AUTHNAME`` fields of a sasl interactive LDAP bind. """ auth_dict = {CB_USER: assertion, CB_AUTHNAME: audience} Sasl.__init__(self, auth_dict, 'BROWSER-ID')
def __init__(self, authz_id, passwd): auth_dict = {CB_AUTHNAME: authz_id, CB_PASS: passwd} sasl.__init__(self, auth_dict, "PLAIN")
def __init__(self, token): auth_dict = {CB_PASS: token} sasl.__init__(self, auth_dict, "LDAPSSOTOKEN")
def __init__(self, assertion, audience): auth_dict = {CB_USER:assertion, CB_AUTHNAME: audience} sasl.__init__(self, auth_dict, 'BROWSER-ID')