/usr/lib/python2.6/site-packages/keystoneauth1/tests/unit/extras/saml2
Edit: /usr/lib/python2.6/site-packages/keystoneauth1/tests/unit/extras/saml2/test_auth_saml2.pyc (9577B)
Ñò
7
Wc
@ s‰ d d k Z d d k l Z d d k l Z d d k l Z d d k l Z
d d k l Z d d k l
Z
d e i f d „ ƒ YZ d S(
iÿÿÿÿN( t etree( t
exceptions( t _saml2( t fixtures( t utils( t matcherst AuthenticateviaSAML2Testsc B s› e Z d Z e i ƒ i Z d „ Z d „ Z d „ Z d „ Z
d „ Z d „ Z d „ Z
d „ Z d „ Z d
„ Z d „ Z d „ Z d
„ Z d „ Z RS( t authc C sä t t | ƒ i ƒ h d d 6d d 6| _ h d d 6| _ h d d 6d d
6d d 6| _ d
| _ d | _ d | _ d | _ d | _
d | _ d | i d f | _
d | _ t i | i | i | i
| i | i | i ƒ | _ d S( Ns# text/html; application/vnd.paos+xmlt AcceptsM ver="urn:liberty:paos:2003-08";"urn:oasis:names:tc:SAML:2.0:profiles:SSO:ecp"t PAOSs application/vnd.paos+xmls Content-Types, urn:oasis:names:tc:SAML:2.0:profiles:SSO:ecpt ecps) http://schemas.xmlsoap.org/soap/envelope/t Ss urn:liberty:paos:2003-08t paoss //ecp:RelayStates6 /S:Envelope/S:Header/paos:Request/@responseConsumerURLs> /S:Envelope/S:Header/ecp:Response/@AssertionConsumerServiceURLt testidps http://local.urlt saml2s %s/%ss= OS-FEDERATION/identity_providers/testidp/protocols/saml2/auths1 https://openstack4.local/Shibboleth.sso/SAML2/ECP( t superR t setUpt ECP_SP_EMPTY_REQUEST_HEADERSt ECP_SP_SAML2_REQUEST_HEADERSt ECP_SAML2_NAMESPACESt ECP_RELAY_STATEt! ECP_SERVICE_PROVIDER_CONSUMER_URLt ECP_IDP_CONSUMER_URLt IDENTITY_PROVIDERt IDENTITY_PROVIDER_URLt PROTOCOLt TEST_URLt FEDERATION_AUTH_URLt SHIB_CONSUMER_URLR t V3Saml2Passwordt TEST_USERt
TEST_TOKENt saml2plugin( t self( ( s\ /tmp/pip-build-wCUybK/keystoneauth1/keystoneauth1/tests/unit/extras/saml2/test_auth_saml2.pyR s0
c C s± | i i | i d t i t i ƒ ƒ| i i | i ƒ } | i
| ƒ t i | i i
ƒ } | i t i t i | ƒ ƒ | i | i i | i d | i t | i i ƒ f ƒ d S( s' Test initial call, expect SOAP message.t contents- Expected consumer_url set to %s instead of %sN( t
requests_mockt getR R t make_onelinet saml2_fixturest SP_SOAP_RESPONSER t _send_service_provider_requestt sessiont assertFalseR t tostringt saml2_authn_requestt
assertThatR t XMLEqualst assertEqualt sp_response_consumer_urlR t str( R! t at sp_soap_response( ( s\ /tmp/pip-build-wCUybK/keystoneauth1/keystoneauth1/tests/unit/extras/saml2/test_auth_saml2.pyt test_initial_sp_callD s
c C s™ | i i | i d t i d h t i d 6ƒ| i i | i ƒ } | i | ƒ | i
t i d | i i i ƒ d ƒ | i
t i | i i i
d ƒ d S( Nt jsont headerss X-Subject-Tokent token( R# R$ R R&