Test Info

Issuerhttps://isamfed.com:30443/test
Profile[]
Test IDOP-OAuth-2nd-30s
Test descriptionTrying to use authorization code twice with 30 seconds in between uses must result in an error
Timestamp2019-06-18T04:17:02Z

Conditions


check-http-error-response: status=OK [Checks that an error code is either 400 or 401 which are the only ones accepted by OAuth2/OIDC.]
verify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
Done: status=OK

Trace Output

0phase<--<-- 0 --- Note -->-->
0phase<--<-- 1 --- Webfinger -->-->
0not expected to doWebFinger
0phase<--<-- 2 --- Discovery -->-->
0provider_config
kwargs:{'issuer': 'https://isamfed.com:30443/test'}
0http response
url:https://isamfed.com:30443/test/.well-known/openid-configuration status_code:200
0ProviderConfigurationResponse
{
    "authorization_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/authorize",
    "claims_parameter_supported": false,
    "claims_supported": [
        "realmName",
        "preferred_username",
        "given_name",
        "uid",
        "upn",
        "groupIds",
        "employee_id",
        "name",
        "tenantId",
        "mobile_number",
        "department",
        "job_title",
        "family_name",
        "email"
    ],
    "device_authorize_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/device_authorize",
    "grant_types_supported": [
        "urn:ietf:params:oauth:grant-type:jwt-bearer",
        "implicit",
        "urn:ietf:params:oauth:grant-type:saml2-bearer",
        "urn:ietf:params:oauth:grant-type:device_code",
        "client_credentials",
        "password",
        "authorization_code",
        "refresh_token"
    ],
    "id_token_encryption_alg_values_supported": [
        "A128KW"
    ],
    "id_token_encryption_enc_values_supported": [
        "A128CBC-HS256"
    ],
    "id_token_signing_alg_values_supported": [
        "RS256"
    ],
    "introspect_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/introspect",
    "issuer": "https://isamfed.com:30443/test",
    "jwks_uri": "https://isamfed.com:30443/mga/sps/jwks",
    "name": "OIDCDefinition",
    "poc": "https://isamfed.com:30443/mga/",
    "registration_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition",
    "request_parameter_supported": true,
    "request_uri_parameter_supported": true,
    "require_request_uri_registration": false,
    "response_modes_supported": [
        "fragment",
        "form_post"
    ],
    "response_types_supported": [
        "token",
        "id_token",
        "token id_token",
        "code",
        "code id_token",
        "code token id_token",
        "code token",
        "none"
    ],
    "revocation_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/revoke",
    "subject_types_supported": [
        "public"
    ],
    "token_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/token",
    "token_endpoint_auth_methods_supported": [
        "private_key_jwt",
        "client_secret_post",
        "client_secret_basic"
    ],
    "user_authorize_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/user_authorize",
    "userinfo_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo",
    "userinfo_signing_alg_values_supported": [
        "RS256"
    ],
    "version": "3.0"
}
0phase<--<-- 3 --- Registration -->-->
0not expected to doDynamic registration
0phase<--<-- 4 --- AsyncAuthn -->-->
0AuthorizationRequest
{
    "client_id": "clientID",
    "nonce": "7VoyGu34QtfX5gtj",
    "redirect_uri": "https://op.certification.openid.net:61773/authz_cb",
    "response_type": "code id_token token",
    "scope": "openid",
    "state": "F2MvhRB9CXEjAXH9"
}
0redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=F2MvhRB9CXEjAXH9&nonce=7VoyGu34QtfX5gtj&response_type=code+id_token+token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61773%2Fauthz_cb&client_id=clientID
0redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=F2MvhRB9CXEjAXH9&nonce=7VoyGu34QtfX5gtj&response_type=code+id_token+token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61773%2Fauthz_cb&client_id=clientID
1http args{}
2responseURL with fragment
2responseaccess_token=wr8deDwgRGfFSKVGM0Fc&state=F2MvhRB9CXEjAXH9&expires_in=3599&token_type=bearer&code=CD8fS7SMS7ncgGRUgZbOOw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IP8yI3tfX-Mqa7JptZMHXwzQ1H1W6cMGdj6IA--RnTHPvtEoNQP77n00VT.q0NA4xQjf24BZjfCep1dGg
2response{'access_token': 'wr8deDwgRGfFSKVGM0Fc', 'state': 'F2MvhRB9CXEjAXH9', 'expires_in': 3599, 'token_type': 'bearer', 'code': 'CD8fS7SMS7ncgGRUgZbOOwrNIWpiFT', 'scope': 'openid', 'id_token': 'eyJhbGciOiJBMTI4S1ciLCJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiY3R5IjoiSldUIn0.HhDzC_U2CqaBTd54Sz-fpqZ5EaeMnk6q7cXd8BahUbYEb7H6cTm94A.atXT2LBB4n13F0rct7Alkw.QphP3o21jVD7rL_vl9i_CKsCu_uFTgx7jABg70Dhe5r0LzJMtHsmIXq5of81GEmNWVKQyM6W7N4p7mjKNsPJIpC1ahTN1f6WE_xmD9iWFmCCA_BONyYJeSpqP8He4mtF0znpkbRCrMJZCGCGtFvJB35Pqq5wSoBDKX9A7x8IeFUTpsdSJOsrrgaNGUBJMDGEfyOizDGHazZOty-PfHj1zudop4ndsV8yW_BuAS_FKgidk0HXwOvD_c3tmFO3ep-EFfNpUAiQ9TzFOz5usgoGLusmjCf9dvg4WcqYbHQyx9aVeI_Xv1tt9sJW-xEMms2vPfpLOBai3cDCYDnUyh96_GGxCIVyqfbwgtYlJ_kS7MMU_rUJyQyepFKCrSBjxko3L-CFycI4zbKKz4G91y9jR-7rgUfdnWBjRhfH-sE5YezBbQ0x4t5EA3ZFA_1JMCxd_Vm1SowFDBZJy3r6Q3LlqMEN7rBA_KH1bvwa_ifzMCJcpVz5GcDoMfu02i6tRwaMG5mPVtM58kZ-2k852L991veObD5Wl2nq2jBqMPgvFZsKDvWQdygaP0Uq0W4zbfKAi9_G4MoMv0tem8paT4pdpQf7pC5oW3eIS18IzwaY6smCzF4f3lgc7cOPJuojTcqGqNf4o7LOWVXPxg3rg_MikGih534T-t1oT7ETVKbfDi-Z9U5L2VEw6VEnsFeDWbl0lFibCpI0sN8-a-EhZ4bWJKSj1i_YDUZpZSIS7j5-zSFF19zkFf5Vjfnu2rbjKRUCA8G44kNol8_ft5UDKVWCylrguf9fJaNMG4v0i5F8RuqxPwKjusH0AYFZnmRIdb_3Eb5V1jLVGuyTOqGLOCRKJh18qZxSSe-YIUR1eGHuUdcPaS4b6_xg_9qsWKQllWu6kZEMgSIP8yI3tfX-Mqa7JptZMHXwzQ1H1W6cMGdj6IA--RnTHPvtEoNQP77n00VT.q0NA4xQjf24BZjfCep1dGg'}
2AuthorizationResponse
{
    "access_token": "wr8deDwgRGfFSKVGM0Fc",
    "code": "CD8fS7SMS7ncgGRUgZbOOwrNIWpiFT",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "V8Rr2y3k19AVWr_l_PdSDw",
        "aud": [
            "clientID"
        ],
        "c_hash": "SJRAZbxS9X3ROL5Lv8o-VA",
        "exp": 1560834810,
        "iat": 1560831390,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "7VoyGu34QtfX5gtj",
        "sub": "testuser"
    },
    "scope": "openid",
    "state": "F2MvhRB9CXEjAXH9",
    "token_type": "bearer"
}
2phase<--<-- 5 --- AccessToken -->-->
2requestop_args: {'state': 'F2MvhRB9CXEjAXH9'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61773/authz_cb'}
2do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61773/authz_cb', 'code': 'CD8fS7SMS7ncgGRUgZbOOwrNIWpiFT', 'state': 'F2MvhRB9CXEjAXH9', 'grant_type': 'authorization_code', 'client_id': 'clientID'}, 'state': 'F2MvhRB9CXEjAXH9', 'authn_method': 'client_secret_basic'}
2AccessTokenRequest
{
    "code": "CD8fS7SMS7ncgGRUgZbOOwrNIWpiFT",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61773/authz_cb",
    "state": "F2MvhRB9CXEjAXH9"
}
2request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/token
2request_http_args{'headers': {'Authorization': 'Basic Y2xpZW50SUQ6Y2xpZW50U2VjcmV0', 'Content-Type': 'application/x-www-form-urlencoded'}}
2requestgrant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61773%2Fauthz_cb&code=CD8fS7SMS7ncgGRUgZbOOwrNIWpiFT&state=F2MvhRB9CXEjAXH9
2http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
2response{'access_token': 'OfyXD61sFJ0L8V4o8E2V', 'refresh_token': 'SoAbDDitzzstgeEMgzkROHdtYGOusAu8kKBAhds1', 'scope': 'openid', 'id_token': 'eyJhbGciOiJBMTI4S1ciLCJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiY3R5IjoiSldUIn0.nyMi9vhHkP738BlI1_uBWU8bDebtORPfCUK2p690Q_Tvf5NQzjRNTg.hhlOLx4F5vMVPPTtlBbXbw.l-smsGFYhKP39-a9pwkNwABkV4jGZRSlY3oTPI9KXPW4zD1YRw7tu7Ko50dgWYDo0eN1jn-tz2jQxrI4tDzX_PhXDreN_-WDqRMUBpt9lqlr2JwE_mZWitOyIQ21ADPiRLyvmGl0rKkrwBFb47kf0b58gyIACQ5Dmdo29uZmF5GYiY-PFGusEok5QE7H1Ns1m4CbT3u2RE49bLIa4xxgDws0G81ALwhIG8aXvjtX8mo7WiKf7JUBXsvg3IKnGqeLa-tExH8iNHcyzfjxwSBSlKyciXMNQINFigUIrbczR4h-MNq5i3VHqYUkU0aJ_YDR2xeaLGaPVvT7FGXVNLlYBxCQRr_dJWkQNG7gnHh7lNhGBgVUDW8E-9Fbmzw_-yb28qMF3LfNsMMTMqX5xAonKT1jWpYogpWwQxGR88sx7gSgQujx1RwB6v58z1nqEZZKkd4R4HQc5lqeSJ0gjJwuKNydnABMWqZZ1nP4Wyj3aebAsDqj-lDFzryHl9_1mfQpTqXnU6fieONhMK9-jOwR_F3ELF73Aea4_ljv6X4PlcLSaNJ6k09PorRSYzJ7m4tQyaHwBX8aHnzmJKuxf861fEya8LWJsGnmbTxzAISFGdVzBWbg1vci026i89JujMX8EfKBzhlp2TNUKobeQ3U2woDmadnelu_a_hbsutLfASuYRc84UKB7-3bCTf3BztOOvHKfzAnykbtOO7Ig314Br-nrLxCAXCi7VjeV40QJAlPYM2y7TvdV7ygo3XUeWJ2BJdzYd9JkW0FGZ3tsvgZpn9cPni1ue5V70TqRKSFvzrJeb300HsLmYV7FBGsmjLeutcxcF-QGaKAqpTFvQROf3S82Wq5TsVtEQkb-nRNtByDSsn3Om3zucNuCThCyzWl9gViWA5U-LDlk5MEBTmpPKlQq5LS0WCdimx-W99gRTsDxgswuk5fG4wMn5beYfFIh.3Du1w9GrDEvtoSutPCH92w', 'token_type': 'bearer', 'expires_in': 3599}
2AccessTokenResponse
{
    "access_token": "OfyXD61sFJ0L8V4o8E2V",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "fMxGQzQRQ7X3hISoI4mXKg",
        "aud": [
            "clientID"
        ],
        "exp": 1560834811,
        "iat": 1560831391,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "7VoyGu34QtfX5gtj",
        "rt_hash": "W5s7UtJ8ADYUHVTqODsuZw",
        "sub": "testuser"
    },
    "refresh_token": "SoAbDDitzzstgeEMgzkROHdtYGOusAu8kKBAhds1",
    "scope": "openid",
    "token_type": "bearer"
}
2jws header{'kid': '_uhPdeGrTWxobFeH0XbzjJpRrzp3CB9nknx1yFV1G-0', 'alg': 'RS256'}
2jwe header{'alg': 'A128KW', 'enc': 'A128CBC-HS256', 'cty': 'JWT'}
2phase<--<-- 6 --- TimeDelay -->-->
32phase<--<-- 7 --- AccessToken -->-->
32requestop_args: {'state': 'F2MvhRB9CXEjAXH9'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61773/authz_cb'}
32do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61773/authz_cb', 'code': 'CD8fS7SMS7ncgGRUgZbOOwrNIWpiFT', 'state': 'F2MvhRB9CXEjAXH9', 'grant_type': 'authorization_code', 'client_id': 'clientID'}, 'state': 'F2MvhRB9CXEjAXH9', 'authn_method': 'client_secret_basic'}
32AccessTokenRequest
{
    "code": "CD8fS7SMS7ncgGRUgZbOOwrNIWpiFT",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61773/authz_cb",
    "state": "F2MvhRB9CXEjAXH9"
}
32request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/token
32request_http_args{'headers': {'Authorization': 'Basic Y2xpZW50SUQ6Y2xpZW50U2VjcmV0', 'Content-Type': 'application/x-www-form-urlencoded'}}
32requestgrant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61773%2Fauthz_cb&code=CD8fS7SMS7ncgGRUgZbOOwrNIWpiFT&state=F2MvhRB9CXEjAXH9
33http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:400 message:{"error_description":"FBTOAU211E The [authorization_grant] received of type [authorization_code] does not exist.","error":"invalid_grant"}
33response{'error_description': 'FBTOAU211E The [authorization_grant] received of type [authorization_code] does not exist.', 'error': 'invalid_grant'}
33eventGot expected error
33TokenErrorResponse
{
    "error": "invalid_grant",
    "error_description": "FBTOAU211E The [authorization_grant] received of type [authorization_code] does not exist."
}
33phase<--<-- 8 --- Done -->-->
33end
33assertionCheckHTTPErrorResponse
33conditioncheck-http-error-response: status=OK [Checks that an error code is either 400 or 401 which are the only ones accepted by OAuth2/OIDC.]
33assertionVerifyResponse
33conditionverify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
33conditionDone: status=OK

Result

PASSED