Did I find the right examples for you? yes no

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

        def set_list2dict(sl):
    return dict(sl)
        


src/p/y/pysaml2-2.0.0/src/saml2/ecp_client.py   pysaml2(Download)
from saml2.config import Config
from saml2.entity import Entity
from saml2.httpbase import set_list2dict, dict2set_list
 
from saml2.profile import paos
    def add_paos_headers(self, headers=None):
        if headers:
            headers = set_list2dict(headers)
            headers["PAOS"] = PAOS_HEADER_INFO
            if "Accept" in headers:

src/p/y/pysaml2-HEAD/src/saml2/ecp_client.py   pysaml2(Download)
from saml2.config import Config
from saml2.entity import Entity
from saml2.httpbase import set_list2dict, dict2set_list
 
from saml2.profile import paos
    def add_paos_headers(self, headers=None):
        if headers:
            headers = set_list2dict(headers)
            headers["PAOS"] = PAOS_HEADER_INFO
            if "Accept" in headers:

src/p/y/pysaml2-HEAD/tests/test_63_ecp.py   pysaml2(Download)
from saml2.authn_context import INTERNETPROTOCOLPASSWORD
from saml2.httpbase import set_list2dict
from saml2.profile.ecp import RelayState
from saml2.profile.paos import Request
from saml2.server import Server
    # ------------ @SP -----------------------------
 
    response = DummyResponse(set_list2dict(headers))
 
    assert sp.can_handle_ecp_response(response)

src/p/y/pysaml2-2.0.0/tests/test_63_ecp.py   pysaml2(Download)
from saml2.authn_context import INTERNETPROTOCOLPASSWORD
from saml2.httpbase import set_list2dict
from saml2.profile.ecp import RelayState
from saml2.profile.paos import Request
from saml2.server import Server
    # ------------ @SP -----------------------------
 
    response = DummyResponse(set_list2dict(headers))
 
    assert sp.can_handle_ecp_response(response)