Test Info

Issuerhttps://isamfed.com:30443/test
Profile[]
Test IDOP-OAuth-2nd-Revokes
Test descriptionTrying to use authorization code twice should result in revoking previously issued access tokens
Timestamp2019-06-17T07:05:42Z

Conditions


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 --- Webfinger -->-->
0not expected to doWebFinger
0phase<--<-- 1 --- Discovery -->-->
0provider_config
kwargs:{'issuer': 'https://isamfed.com:30443/test'}
1http response
url:https://isamfed.com:30443/test/.well-known/openid-configuration status_code:200
1ProviderConfigurationResponse
{
    "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_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"
}
1phase<--<-- 2 --- Registration -->-->
1register
kwargs:{'response_types': ['code token'], 'grant_types': ['authorization_code', 'implicit'], 'application_name': 'OIC test tool', 'application_type': 'web', 'redirect_uris': ['https://op.certification.openid.net:61240/authz_cb'], 'contacts': ['roland@example.com'], 'post_logout_redirect_uris': ['https://op.certification.openid.net:61240/logout'], 'url': 'https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition', 'jwks_uri': 'https://op.certification.openid.net:61240/static/jwks_61240.json', 'token_endpoint_auth_method': 'private_key_jwt'}
1RegistrationRequest
{
    "application_type": "web",
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code",
        "implicit"
    ],
    "jwks_uri": "https://op.certification.openid.net:61240/static/jwks_61240.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61240/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61240/authz_cb"
    ],
    "response_types": [
        "code token"
    ],
    "token_endpoint_auth_method": "private_key_jwt"
}
1http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition status_code:200
1RegistrationResponse
{
    "application_type": "web",
    "client_id": "LxjvXDtnzfrWhpTQF5un",
    "client_id_issued_at": 1560755138,
    "client_secret": "JZ7fM5bI1g9YuTe1ZnNz",
    "client_secret_expires_at": 0,
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code",
        "implicit"
    ],
    "jwks_uri": "https://op.certification.openid.net:61240/static/jwks_61240.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61240/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61240/authz_cb"
    ],
    "registration_access_token": "OA90q9kzprOeZKywpE7M",
    "registration_client_uri": "https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition?client_id=LxjvXDtnzfrWhpTQF5un",
    "response_types": [
        "code",
        "token"
    ],
    "token_endpoint_auth_method": "private_key_jwt"
}
1phase<--<-- 3 --- Note -->-->
1phase<--<-- 4 --- AsyncAuthn -->-->
1AuthorizationRequest
{
    "client_id": "LxjvXDtnzfrWhpTQF5un",
    "nonce": "BI4BwKbMscuqKLSn",
    "redirect_uri": "https://op.certification.openid.net:61240/authz_cb",
    "response_type": "code token",
    "scope": "openid",
    "state": "AAJpZW0tp9SyeRrN"
}
1redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=AAJpZW0tp9SyeRrN&nonce=BI4BwKbMscuqKLSn&response_type=code+token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61240%2Fauthz_cb&client_id=LxjvXDtnzfrWhpTQF5un
1redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=AAJpZW0tp9SyeRrN&nonce=BI4BwKbMscuqKLSn&response_type=code+token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61240%2Fauthz_cb&client_id=LxjvXDtnzfrWhpTQF5un
3http args{}
3responseURL with fragment
3responseaccess_token=a7CRSswxPS3Q4VAn6qTm&state=AAJpZW0tp9SyeRrN&expires_in=3599&token_type=bearer&code=s5gnhvFK4TYh22mv1CbIw7QHlE1s04&scope=openid
3response{'access_token': 'a7CRSswxPS3Q4VAn6qTm', 'state': 'AAJpZW0tp9SyeRrN', 'expires_in': 3599, 'token_type': 'bearer', 'code': 's5gnhvFK4TYh22mv1CbIw7QHlE1s04', 'scope': 'openid'}
3AuthorizationResponse
{
    "access_token": "a7CRSswxPS3Q4VAn6qTm",
    "code": "s5gnhvFK4TYh22mv1CbIw7QHlE1s04",
    "expires_in": 3599,
    "scope": "openid",
    "state": "AAJpZW0tp9SyeRrN",
    "token_type": "bearer"
}
3phase<--<-- 5 --- AccessToken -->-->
3requestop_args: {'state': 'AAJpZW0tp9SyeRrN'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61240/authz_cb'}
3do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61240/authz_cb', 'code': 's5gnhvFK4TYh22mv1CbIw7QHlE1s04', 'state': 'AAJpZW0tp9SyeRrN', 'grant_type': 'authorization_code', 'client_id': 'LxjvXDtnzfrWhpTQF5un'}, 'state': 'AAJpZW0tp9SyeRrN', 'authn_method': 'private_key_jwt'}
3AccessTokenRequest
{
    "client_assertion": "eyJhbGciOiJSUzI1NiIsImtpZCI6Ind0MjVPZ3lSX256RzNPb1E3ZGFhMnJMNi1nTW5GZGZSekJqaFVWUHU4UlEifQ.eyJpc3MiOiAiTHhqdlhEdG56ZnJXaHBUUUY1dW4iLCAic3ViIjogIkx4anZYRHRuemZyV2hwVFFGNXVuIiwgImF1ZCI6IFsiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My9tZ2Evc3BzL29hdXRoL29hdXRoMjAvdG9rZW4iXSwgImp0aSI6ICJkU3IwYkhnVlRHY2ZNS1VjVnpKQUx3TG1MSzlRbWdCOSIsICJleHAiOiAxNTYwNzU1NzQwLCAiaWF0IjogMTU2MDc1NTE0MH0.Jm-aa2nvouREQmSa3b1NKQUXmqJ1Tt45v1NAZWx_CcN-6UFVU5UGKdis16aKHMTUvMingha-1QcKz6VQZZu6C-Dmqu7m8vhG9MaROsGYYkPK89MvbMnGGg1vVIwXu0owHuL5KH1krW8M7xhbiR3Nz_phXXH_dlk2c32MT9mMsv01rvVZpo1Brx9E7O-A8m9d8OyyfLPIouVZ8gUhennFvV2GXJahnA-K-vyBP1rfouEtf6zc0YoJffbVPOGLCwd_ZbPqfwHzQmIHCSk-dc6lO6CroHwhNQ-X5SE2oDCexLI8NLw0UIIw7o9YRScxlOI0gsZ10lUl7_RaUmegKDsUDA",
    "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    "code": "s5gnhvFK4TYh22mv1CbIw7QHlE1s04",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61240/authz_cb",
    "state": "AAJpZW0tp9SyeRrN"
}
3request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/token
3request_http_args{'headers': {'Content-Type': 'application/x-www-form-urlencoded'}}
3requestgrant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61240%2Fauthz_cb&code=s5gnhvFK4TYh22mv1CbIw7QHlE1s04&state=AAJpZW0tp9SyeRrN&client_assertion=eyJhbGciOiJSUzI1NiIsImtpZCI6Ind0MjVPZ3lSX256RzNPb1E3ZGFhMnJMNi1nTW5GZGZSekJqaFVWUHU4UlEifQ.eyJpc3MiOiAiTHhqdlhEdG56ZnJXaHBUUUY1dW4iLCAic3ViIjogIkx4anZYRHRuemZyV2hwVFFGNXVuIiwgImF1ZCI6IFsiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My9tZ2Evc3BzL29hdXRoL29hdXRoMjAvdG9rZW4iXSwgImp0aSI6ICJkU3IwYkhnVlRHY2ZNS1VjVnpKQUx3TG1MSzlRbWdCOSIsICJleHAiOiAxNTYwNzU1NzQwLCAiaWF0IjogMTU2MDc1NTE0MH0.Jm-aa2nvouREQmSa3b1NKQUXmqJ1Tt45v1NAZWx_CcN-6UFVU5UGKdis16aKHMTUvMingha-1QcKz6VQZZu6C-Dmqu7m8vhG9MaROsGYYkPK89MvbMnGGg1vVIwXu0owHuL5KH1krW8M7xhbiR3Nz_phXXH_dlk2c32MT9mMsv01rvVZpo1Brx9E7O-A8m9d8OyyfLPIouVZ8gUhennFvV2GXJahnA-K-vyBP1rfouEtf6zc0YoJffbVPOGLCwd_ZbPqfwHzQmIHCSk-dc6lO6CroHwhNQ-X5SE2oDCexLI8NLw0UIIw7o9YRScxlOI0gsZ10lUl7_RaUmegKDsUDA&client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer
4http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
4response{'access_token': 'jDfe0cEG42arue4TdyGi', 'refresh_token': 'MpxV845i020Ly30EX3KBr2JEouxKbF6H5wE0KIvd', 'scope': 'openid', 'id_token': 'eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJydF9oYXNoIjoidl9IWHU2RFpVaHFoRWJCWVVEcUZrZyIsIm5vbmNlIjoiQkk0QndLYk1zY3VxS0xTbiIsImlhdCI6MTU2MDc1NTE0MSwiaXNzIjoiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My90ZXN0IiwiYXRfaGFzaCI6IllSNXVzRGZNZTJRV05zWXRVcWpCYXciLCJzdWIiOiJ0ZXN0dXNlciIsImV4cCI6MTU2MDc1ODU2MSwiYXVkIjoiTHhqdlhEdG56ZnJXaHBUUUY1dW4ifQ.D3YSkhbA-vkrJb2EMit2iOeDwS4DABM5YkgSGZXwrhZKwcAM7-iY33ZKjSbftBAt_QMIFJGIbGeZaMiz8NYOqV5lG0CFyCQhUhMUzgcUzOwFpEQva4I7oZt3u_oNUSFqV9F61BzCEjrDerY1cCjirdUWT-AMZIQo4L5rl5UK77iD5nx3XbEEX3SG7mSGNgFQuPx_lA-5z3fpKVDn6wFtxxGyRpWpjLUFF_FeeZ9ysMBpPgprshqFQFv1LQmtGL3SfLOZmI00SJQPE-inG-nzKvlTlT9oGrxhU34s-teQRreiY9qZnl4FwRh9NH70IloKDsSDrD3BHefKBckMEw0I9A', 'token_type': 'bearer', 'expires_in': 3599}
4AccessTokenResponse
{
    "access_token": "jDfe0cEG42arue4TdyGi",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "YR5usDfMe2QWNsYtUqjBaw",
        "aud": [
            "LxjvXDtnzfrWhpTQF5un"
        ],
        "exp": 1560758561,
        "iat": 1560755141,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "BI4BwKbMscuqKLSn",
        "rt_hash": "v_HXu6DZUhqhEbBYUDqFkg",
        "sub": "testuser"
    },
    "refresh_token": "MpxV845i020Ly30EX3KBr2JEouxKbF6H5wE0KIvd",
    "scope": "openid",
    "token_type": "bearer"
}
4jws header{'kid': '_uhPdeGrTWxobFeH0XbzjJpRrzp3CB9nknx1yFV1G-0', 'alg': 'RS256'}
4phase<--<-- 6 --- AccessToken -->-->
4requestop_args: {'state': 'AAJpZW0tp9SyeRrN'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61240/authz_cb'}
4do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61240/authz_cb', 'code': 's5gnhvFK4TYh22mv1CbIw7QHlE1s04', 'state': 'AAJpZW0tp9SyeRrN', 'grant_type': 'authorization_code', 'client_id': 'LxjvXDtnzfrWhpTQF5un'}, 'state': 'AAJpZW0tp9SyeRrN', 'authn_method': 'private_key_jwt'}
4AccessTokenRequest
{
    "client_assertion": "eyJhbGciOiJSUzI1NiIsImtpZCI6Ind0MjVPZ3lSX256RzNPb1E3ZGFhMnJMNi1nTW5GZGZSekJqaFVWUHU4UlEifQ.eyJpc3MiOiAiTHhqdlhEdG56ZnJXaHBUUUY1dW4iLCAic3ViIjogIkx4anZYRHRuemZyV2hwVFFGNXVuIiwgImF1ZCI6IFsiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My9tZ2Evc3BzL29hdXRoL29hdXRoMjAvdG9rZW4iXSwgImp0aSI6ICJoV0ZrZ0pkZW5hRDI1UFlsQWk2TzRaS0xleGV6bEIzayIsICJleHAiOiAxNTYwNzU1NzQxLCAiaWF0IjogMTU2MDc1NTE0MX0.HZiUYo2wnX774sLhTIcg0xTeGVXKZU6kgxkaxxnjbfn8TGlPjo2E7RuTBBZkY8p91_Y8XhfmmhyZimlUz3IQQtTFxcBpE7eOnsboW_5GHNgob9ieiKwio3pDkmtpDLZix4Xg23dXS6ha_zHWZW_t4UqCNkav7pXXJRu7VUTcViTaXTddbBMazoHpgaORP9ljJUJJhHWf2V2j4jyHJgqomJBklXfRTvdNiUSV__lKnHwrJg85Ul27L8JRflZqiWogE0wQd5--wmevGHNe1zpjmSA7eGkZlQ3NpHSw-I30inDKOS52F1OjK64Lp3yK7ISTz2cz-OPHLrVqpJ84VAGMiQ",
    "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    "code": "s5gnhvFK4TYh22mv1CbIw7QHlE1s04",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61240/authz_cb",
    "state": "AAJpZW0tp9SyeRrN"
}
4request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/token
4request_http_args{'headers': {'Content-Type': 'application/x-www-form-urlencoded'}}
4requestgrant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61240%2Fauthz_cb&code=s5gnhvFK4TYh22mv1CbIw7QHlE1s04&state=AAJpZW0tp9SyeRrN&client_assertion=eyJhbGciOiJSUzI1NiIsImtpZCI6Ind0MjVPZ3lSX256RzNPb1E3ZGFhMnJMNi1nTW5GZGZSekJqaFVWUHU4UlEifQ.eyJpc3MiOiAiTHhqdlhEdG56ZnJXaHBUUUY1dW4iLCAic3ViIjogIkx4anZYRHRuemZyV2hwVFFGNXVuIiwgImF1ZCI6IFsiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My9tZ2Evc3BzL29hdXRoL29hdXRoMjAvdG9rZW4iXSwgImp0aSI6ICJoV0ZrZ0pkZW5hRDI1UFlsQWk2TzRaS0xleGV6bEIzayIsICJleHAiOiAxNTYwNzU1NzQxLCAiaWF0IjogMTU2MDc1NTE0MX0.HZiUYo2wnX774sLhTIcg0xTeGVXKZU6kgxkaxxnjbfn8TGlPjo2E7RuTBBZkY8p91_Y8XhfmmhyZimlUz3IQQtTFxcBpE7eOnsboW_5GHNgob9ieiKwio3pDkmtpDLZix4Xg23dXS6ha_zHWZW_t4UqCNkav7pXXJRu7VUTcViTaXTddbBMazoHpgaORP9ljJUJJhHWf2V2j4jyHJgqomJBklXfRTvdNiUSV__lKnHwrJg85Ul27L8JRflZqiWogE0wQd5--wmevGHNe1zpjmSA7eGkZlQ3NpHSw-I30inDKOS52F1OjK64Lp3yK7ISTz2cz-OPHLrVqpJ84VAGMiQ&client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer
4http 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"}
4response{'error_description': 'FBTOAU211E The [authorization_grant] received of type [authorization_code] does not exist.', 'error': 'invalid_grant'}
4eventGot expected error
4TokenErrorResponse
{
    "error": "invalid_grant",
    "error_description": "FBTOAU211E The [authorization_grant] received of type [authorization_code] does not exist."
}
4phase<--<-- 7 --- UserInfo -->-->
4do_user_info_request
kwargs:{'state': 'AAJpZW0tp9SyeRrN', 'method': 'GET', 'authn_method': 'bearer_header'}
4request{'body': None}
4request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo
4request_http_args{'headers': {'Authorization': 'Bearer jDfe0cEG42arue4TdyGi'}}
5http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo status_code:401 message:{"error_description":"FBTOAU211E The [access_token] received of type [bearer] does not exist.","error":"invalid_token"}
5eventGot expected error
5ErrorResponse
{
    "error": "invalid_token",
    "error_description": "Server returned 401 Unauthorized without a WWW-Authenticate header which is required as per https://tools.ietf.org/html/rfc6750#section-3"
}
5ErrorResponse
{
    "error": "invalid_token",
    "error_description": "Server returned 401 Unauthorized without a WWW-Authenticate header which is required as per https://tools.ietf.org/html/rfc6750#section-3"
}
5phase<--<-- 8 --- Done -->-->
5end
5assertionVerifyResponse
5conditionverify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
5conditionDone: status=OK

Result

PASSED