/usr/lib/python2.6/site-packages/keystoneauth1/tests/unit/identity
NameSizeModeActions
test_access.py27690644editdlrm
test_access.pyc34490644editdlrm
test_identity_common.py172830644editdlrm
test_identity_common.pyc187010644editdlrm
test_identity_v2.py121950644editdlrm
test_identity_v2.pyc119850644editdlrm
test_identity_v3.py216370644editdlrm
test_identity_v3.pyc193750644editdlrm
test_identity_v3_federation.py79410644editdlrm
test_identity_v3_federation.pyc93070644editdlrm
test_identity_v3_oidc.py64970644editdlrm
test_identity_v3_oidc.pyc53390644editdlrm
test_password.py21000644editdlrm
test_password.pyc29200644editdlrm
test_token.py12220644editdlrm
test_token.pyc14650644editdlrm
utils.py48060644editdlrm
utils.pyc63480644editdlrm
__init__.py00644editdlrm
__init__.pyc1680644editdlrm
Edit: /usr/lib/python2.6/site-packages/keystoneauth1/tests/unit/identity/test_identity_v3_oidc.pyc (5339B)
Ņō 7 Wc @s´ddkZddklZddklZddklZddklZddkl Z ei ƒi Z de i fd„ƒYZd efd „ƒYZd efd „ƒYZdS( i˙˙˙˙N(turllib(toidc(tsession(t oidc_fixtures(tutilstAuthenticateOIDCTestscBseZd„ZRS(cCsMtt|ƒiƒtiƒ|_d|_d|_d|_d|_t i ƒi |_ t i ƒi |_ t i ƒi |_d|_d|idf|_d|_d |_ti|i|i|id |i d |id |id |id|i ƒ|_ti|i|i|id |i d |id |id|id|iƒ|_dS(Nshttp://keystone:5000/v3t bluepagesRsoidc_user@example.coms!https://localhost:8020/oidc/tokens%s/%ss>OS-FEDERATION/identity_providers/bluepages/protocols/oidc/authsurn:ietf:wg:oauth:2.0:oobs84/M9TNz2G9WVwYxSjx0w9AgA1bOmryJltQvOhQMq0czJs.cnLNVAfqwGt client_idt client_secrettaccess_token_endpointtusernametpasswordt redirect_uritcode(tsuperRtsetUpRtSessiontAUTH_URLtIDENTITY_PROVIDERtPROTOCOLt USER_NAMEtuuidtuuid4thextPASSWORDt CLIENT_IDt CLIENT_SECRETtACCESS_TOKEN_ENDPOINTtFEDERATION_AUTH_URLt REDIRECT_URLtCODERt OidcPasswordt oidc_passwordtOidcAuthorizationCodet oidc_grant(tself((s^/tmp/pip-build-wCUybK/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_oidc.pyRsB                  (t__name__t __module__R(((s^/tmp/pip-build-wCUybK/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_oidc.pyRstOIDCPasswordTestscBs#eZd„Zd„Zd„ZRS(cCsŪ|ii|idtiƒd}d}|i|if}h|d6|id6|id6|d6}|i i |i |||iƒ}|i |i|i iƒ|i d|i iƒtii|ƒ}|i ||i iƒdS( s,Test initial call, expect JSON access token.tjsonR s profile emailt grant_typeR tscopetPOSTN(t requests_mocktpostRRtACCESS_TOKEN_VIA_PASSWORD_RESPRRRRR t_get_access_tokenRt assertEqualtrequestturltmethodRtparset urlencodetbody(R#R(R)t client_authtpayloadtrestencoded_payload((s^/tmp/pip-build-wCUybK/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_oidc.pyt%test_initial_call_to_get_access_tokenEs     cCs¸|ii|idtidhtd6ƒtiƒi}hd|d6}|i i |i ||iƒ}|i |i|i iƒ|i d|i iƒ|i |d|i idƒdS(s,Test subsequent call, expect Keystone token.R'theaderssX-Subject-TokensBearer t AuthorizationR*N(R+R,RRtUNSCOPED_TOKENtKEYSTONE_TOKEN_VALUERRRR t_get_keystone_tokenRR/R0R1R2R;(R#t access_tokenR;R8((s^/tmp/pip-build-wCUybK/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_oidc.pyt!test_second_call_to_protected_url]s     cCsq|ii|idtiƒ|ii|idtidhtd6ƒ|ii |i ƒ}|i t|i ƒdS(s"Test full OpenID Connect workflow.R'R;sX-Subject-TokenN( R+R,RRR-RR=R>R tget_unscoped_auth_refRR/t auth_token(R#tresponse((s^/tmp/pip-build-wCUybK/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_oidc.pyttest_end_to_end_workflowrs      (R$R%R:RARE(((s^/tmp/pip-build-wCUybK/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_oidc.pyR&Cs  tOIDCAuthorizationGrantTestscBseZd„ZRS(cCsŅ|ii|idtiƒd}|i|if}h|d6|id6|id6}|i i |i |||iƒ}|i |i|i iƒ|i d|i iƒtii|ƒ}|i ||i iƒdS(s,Test initial call, expect JSON access token.R'tauthorization_codeR(R R R*N(R+R,RRt ACCESS_TOKEN_VIA_AUTH_GRANT_RESPRRRRR"R.RR/R0R1R2RR3R4R5(R#R(R6R7R8R9((s^/tmp/pip-build-wCUybK/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_oidc.pyR:…s        (R$R%R:(((s^/tmp/pip-build-wCUybK/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_oidc.pyRFƒs(Rt six.movesRtkeystoneauth1.identity.v3Rt keystoneauth1Rtkeystoneauth1.tests.unitRRRRR>tTestCaseRR&RF(((s^/tmp/pip-build-wCUybK/keystoneauth1/keystoneauth1/tests/unit/identity/test_identity_v3_oidc.pyt s )@