Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
pysaml2 / tests / test_61_makemeta.pyc
Size: Mime:
ó
6£ßNc@s¢ddlZddlmZddlmZddlmZddlmZddlmZddlmZddlmZdd	l	m
Z
dd
lmZddl
mZmZd„Zid
d6dd6iiidgd6idd6ed6gd6d6dddgd6dgd6idd6d 6d!6d"6id#gd$6d%6d&d'6Zid(d6iiid)gd*6d6iiid+d,6d-6dd.6d/d06d16iid2d,6d-6d3d46d56d66d7gd86id9d:6d;d<6id=d>6d?d@6dAdB6dC6dDdE6idFdB6dGdH6d6idIdH6dJdKgdB6dL6dM6d 6d"6idNgd$6d%6ZdO„ZdP„ZdQ„ZdR„ZdS„ZdT„ZdU„ZdV„ZdW„ZdX„ZdY„ZdS(ZiÿÿÿÿN(tmetadata(tmd(tBINDING_HTTP_POST(textension_elements_to_elements(tshibmd(tmdui(tidpdisc(t
ac_factory(tNAME_FORMAT_URI(tSPConfigt	IdPConfigcCst|ƒt|ƒkS(N(tset(tl1tl2((sB/home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_61_makemeta.pyt_eqss
Rolands SPtnamesOne of the best SPs in businesstdescriptionshttp://localhost:8087/logouttsingle_logout_serviceshttp://localhost:8087/tlocationtbindingtassertion_consumer_servicet	endpointstsnt	givenNametmailtrequired_attributesttitletoptional_attributess,https://example.com/saml2/idp/SSOService.phpttidptsptservicesfoo.xmltlocalRt
attributemapstattribute_map_dirsRolands IdPshttp://localhost:8088/ssotsingle_sign_on_serviceitminutestlifetimetattribute_restrictionss/urn:oasis:names:tc:SAML:2.0:attrname-format:urit	name_formtdefaultis4urn:oasis:names:tc:SAML:2.0:nameid-format:persistentt
nameid_formats#urn:mace:example.com:saml:roland:sptpolicysexample.orgtscopes.http://example.com/saml2/privacyStatement.htmltprivacy_statement_urls"http://example.com/saml2/info.htmltinformation_urlt40theightt30twidthshttp://example.com/logo.jpgttexttlogosExample Co.tdisplay_names
Exempel bolagtsetlangtentfootbartkeywordstui_infosbar.xmlcCsÝidddgd6ddgd
6dgd6}tj|ƒ}|GHt|tjƒsYt‚|jƒGHt|jƒd
ddgƒsˆt‚t|j	ƒdks£t‚t|j
ƒdks¾t‚t|jƒdksÙt‚dS(NsExample CompanyR7s
Exempel ABR5tExampleRs
Example ASsVoorbeeld AZRR4shttp://example.comturltorganization_nametorganization_display_nametorganization_urliii(sExample Companysen(s
Exempel ABsse(sVoorbeeld AZR(shttp://example.comsen(Rtdo_organization_infot
isinstanceRtOrganizationtAssertionErrortkeyswvRtlenR>R?R@(tdesctorg((sB/home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_61_makemeta.pyt
test_org_1Ps

cCs$idddgd6dd6dd
6}tj|ƒ}|GHt|jƒddd
gƒs\t‚t|jƒdkswt‚t|jƒdks’t‚|jdjdks®t‚t|j	ƒdksÉt‚t
|j	dtjƒsèt‚|j	dj
dkst‚|j	djd	ks t‚dS(NsExample CompanyR7s
Exempel ABR5R<Rs
Example ASR4shttp://example.comR=R>R?R@iii(sExample Companysen(s
Exempel ABsse(shttp://example.comsen(RRARRERDRFR>R?R2R@RBRtOrganizationURLR6(RGRH((sB/home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_61_makemeta.pyt
test_org_2`s
cCs\idgd6}tj|ƒ}t|jƒdgƒs=t‚t|jƒdksXt‚dS(NsRolands SAMLR4R?i(RRARRERDRFR?(RGRH((sB/home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_61_makemeta.pyt
test_org_3rscCs’idd6dd6dd6ddgd	6d
d6g}tj|ƒ}t|djƒddddd	gƒsot‚|dGH|d}|jd
ks—t‚t|jtj	ƒs²t‚|jj
dksÊt‚t|jtjƒsåt‚|jj
dksýt‚t|j
dtjƒst‚|j
dj
dks8t‚t|jƒd
ksSt‚t|jdtjƒsrt‚|jdj
dksŽt‚dS(NtRolandt
given_nametHedbergtsur_names+46 70 100 00 00ttelephone_numbersfoo@eample.comsfoo@example.orgt
email_addresst	technicaltcontact_typeii(Rtdo_contact_person_infoRRERDRTRBRNRt	GivenNameR2RPtSurNameRQtTelephoneNumberRFRRtEmailAddress(tconftcontact_persontperson((sB/home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_61_makemeta.pyttest_contact_0xs,

	
cCstjtdddtjdƒ}|GHt|jƒddgƒsKt‚t|dƒdksgt‚|dd}|jdksŠt‚|j	t
ksŸt‚t|dƒdks»t‚|dd}|jd	ksÞt‚|j	t
ksót‚d
|kst‚d|kst‚dS(NRRRRRiishttp://localhost:8087/logoutshttp://localhost:8087/tartifact_resolution_servicetmanage_name_id_service(Rtdo_endpointstSPt	ENDPOINTSRtkeysRDRFRRR(tepstslstacs((sB/home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_61_makemeta.pyttest_do_endpoints‘scCs²tdƒ}tjtddd|ddƒ}t|ƒttdddƒksZt‚|dGH|djdks|t‚|djtks•t‚|dj	dks®t‚dS(	Ns../tests/attributemapsRRRtis_requiredttrueisurn:oid:2.5.4.4(
RRtdo_requested_attributeRaRFRDRtname_formatRRh(tattrconverterstras((sB/home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_61_makemeta.pyttest_required_attributes¥s*	cCs¬tdƒ}tjtddd|ƒ}t|ƒttdddƒksTt‚|dGH|djdksvt‚|djtkst‚|dj	dks¨t‚dS(Ns../tests/attributemapsRRRisurn:oid:2.5.4.12tfalse(
RRRjRaRFRDRRkRRh(RlRm((sB/home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_61_makemeta.pyttest_optional_attributes°s	*	cCs¿tƒjtdtƒ}tj|ƒ}t|tjƒs?t	‚t
|jƒddddddgƒslt	‚|jdkst	‚|j
d	ks–t	‚t|jƒd
ks±t	‚|jd}|jƒGHt
|jƒdd
ddgƒsðt	‚|jdjtdkst	‚|jdjtdks0t	‚t|jƒdksKt	‚|jdjdksgt	‚|jdjdksƒt	‚|jdjtksŸt	‚|jdjd	ks»t	‚dS(Ntmetadata_constructiontauthn_requests_signedtattribute_consuming_serviceRtprotocol_support_enumerationRtwant_assertions_signedRoRiiitrequested_attributetservice_nametservice_descriptiontindexRRiRsurn:oid:2.5.4.4(R	tloadRatTrueRtdo_sp_sso_descriptorRBRtSPSSODescriptorRDRRERrRuRFRsRwR2RxRvt
friendly_nameRRkRRh(RZtspssoRf((sB/home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_61_makemeta.pyttest_do_sp_sso_descriptor»s.
  c	Csdtddd<tƒjtdtƒ}tj|ƒ}t|tjƒsQt	‚|j
ƒGHt|j
ƒdddd	d
ddgƒsŒt	‚|jj
}t|ƒd
ks°t	‚|GHtj|dtjdtjƒ}|GH|jdksñt	‚|jdkst	‚|jdkst	‚dS(Nshttp://example.com/sp/dsRRtdiscovery_responseRqRrRsRRtRRut
extensionsiit	namespacet0s;urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol(RaR	RzR{RR|RBRR}RDRERR‚textension_elementsRFtsaml2textension_element_to_elementRtELEMENT_FROM_STRINGt	NAMESPACERRyR(RZRtextstidpd((sB/home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_61_makemeta.pyttest_do_sp_sso_descriptor_2Ös,
	cCs‘tƒjdƒ}|jGHtj|dƒ}|dk	s>t‚|jƒGHt|jƒdddddgƒsst‚|GH|j	dkst‚dS(	Ntserver_confitvalid_untilt	entity_idR[tspsso_descriptortorganizations#urn:mace:example.com:saml:roland:sp(
R	t	load_filetattribute_convertersRtentity_descriptortNoneRDRERR(tconfdtentd((sB/home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_61_makemeta.pyttest_entity_descriptionñscCsøtƒjtdtƒ}tj|ƒ}t|tjƒs?t	‚t
|jƒddddgƒsft	‚|jj
}t|ƒdksŠt	‚|GHtj|dtjdtjƒ}t|tjƒsÉt	‚|jd	ksÞt	‚|jd
ksót	‚tj|dtjdtjƒ}|s!t	‚t
|jƒdd
ddddgƒsNt	‚t|jƒdksit	‚|jdjdks…t	‚t|jƒdks t	‚|jdjdks¼t	‚|jdjdksØt	‚t|ttgƒ}t|ƒdkst	‚t|dtjƒr:t|dtjƒsot	‚n5t|dtjƒrot|dtjƒsot	‚n|jjtjjtjƒ}t|ƒdks¥t	‚|jjtjjtƒ}t|ƒdksØt	‚t|dtjƒsôt	‚dS(NRqRtR#twant_authn_requests_signedR‚iiRƒsexample.orgRoiR4RR-R,R:R3s.http://example.com/saml2/privacyStatement.htmls
Exempel bolagR5( R
RztIDPR{Rtdo_idp_sso_descriptorRBRtIDPSSODescriptorRDRRER‚R…RFR†R‡RRˆR‰tScopeR2tregexpRR,RR6RtUIInfotfind_extensionstc_tagtextensions_as_elements(RZtidpssoRŠtinsttuiinfotrestfoundtelem((sB/home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_61_makemeta.pyttest_do_idp_sso_descriptorýsP
	
	(R†RRRRtsaml2.extensionRRRtsaml2.attribute_converterRt
saml2.samlRtsaml2.configR	R
RRaR•RšRIRKRLR]RgRnRpR€RŒR˜R©(((sB/home/lgs/proyectos/yaco/pysaml2/pysaml2/tests/test_61_makemeta.pyt<module>s‚	




'