Test Info

Test descriptionTrying to use authorization code twice should result in revoking previously issued access tokens
Profile[]
Timestamp2018-05-17T15:54:33Z
Issuerhttps://reference.mobileconnect.io/mobileconnect
Test IDOP-OAuth-2nd-Revokes

Conditions


UserInfo:OP-OAuth-2nd-Revokes: status=ERROR, message=

Trace Output

0.0phase<--<-- 0 --- Webfinger -->-->
0.0not expected to doWebFinger
0.0phase<--<-- 1 --- Discovery -->-->
0.0provider_config
kwargs:{'issuer': 'https://reference.mobileconnect.io/mobileconnect'}
0.368http response
url:https://reference.mobileconnect.io/mobileconnect/.well-known/openid-configuration status_code:200
0.37ProviderConfigurationResponse
{
    "acr_values_supported": [
        "2",
        "3"
    ],
    "authorization_endpoint": "https://reference.mobileconnect.io/mobileconnect/index.php/auth",
    "check_session_iframe": "https://reference.mobileconnect.io/mobileconnect/opframe.php",
    "claim_types_supported": [
        "normal"
    ],
    "claims_locales_supported": [
        "en-US"
    ],
    "claims_parameter_supported": true,
    "claims_supported": [
        "name",
        "given_name",
        "family_name",
        "middle_name",
        "nickname",
        "preferred_username",
        "profile",
        "picture",
        "website",
        "email",
        "email_verified",
        "gender",
        "birthdate",
        "zoneinfo",
        "locale",
        "phone_number",
        "phone_number_verified",
        "address",
        "updated_at"
    ],
    "display_values_supported": [
        "page",
        "popup"
    ],
    "end_session_endpoint": "https://reference.mobileconnect.io/mobileconnect/index.php/endsession",
    "grant_types_supported": [
        "authorization_code"
    ],
    "id_token_encryption_alg_values_supported": [
        "RSA1_5",
        "RSA-OAEP"
    ],
    "id_token_encryption_enc_values_supported": [
        "A128CBC-HS256",
        "A256CBC-HS512",
        "A128GCM",
        "A256GCM"
    ],
    "id_token_signing_alg_values_supported": [
        "HS256",
        "HS384",
        "HS512",
        "RS256",
        "RS384",
        "RS512"
    ],
    "issuer": "https://reference.mobileconnect.io/mobileconnect",
    "jwks_uri": "https://reference.mobileconnect.io/mobileconnect/op.jwk",
    "login_hint_methods_supported": [
        "MSISDN",
        "ENCR_MSISDN",
        "PCR"
    ],
    "mc_atp_endpoint": "https://reference.mobileconnect.io/mobileconnect/index.php/atp",
    "mobile_connect_version_supported": [
        {
            "openid": "mc_v1.1"
        },
        {
            "openid mc_authn": "mc_v1.2"
        },
        {
            "openid mc_authz": "mc_v1.2"
        },
        {
            "openid mc_identity_phonenumber": "mc_v1.2"
        },
        {
            "openid mc_identity_signup": "mc_v1.2"
        },
        {
            "openid mc_identity_nationalid": "mc_v1.2"
        },
        {
            "openid mc_atp": "mc_v1.2"
        }
    ],
    "op_policy_uri": "https://reference.mobileconnect.io/mobileconnect/index.php/op_policy",
    "op_tos_uri": "https://reference.mobileconnect.io/mobileconnect/index.php/op_tos",
    "premiuminfo_endpoint": "https://reference.mobileconnect.io/mobileconnect/index.php/premiuminfo",
    "request_object_encryption_alg_values_supported": [
        "RSA1_5",
        "RSA-OAEP"
    ],
    "request_object_encryption_enc_values_supported": [
        "A128CBC-HS256",
        "A256CBC-HS512",
        "A128GCM",
        "A256GCM"
    ],
    "request_object_signing_alg_values_supported": [
        "HS256",
        "HS384",
        "HS512",
        "RS256",
        "RS384",
        "RS512"
    ],
    "request_parameter_supported": true,
    "request_uri_parameter_supported": true,
    "require_request_uri_registration": false,
    "response_types_supported": [
        "code",
        "code token",
        "code id_token",
        "token",
        "token id_token",
        "code token id_token",
        "id_token"
    ],
    "scopes_supported": [
        "openid",
        "mc_authn",
        "mc_authz",
        "profile",
        "email",
        "address",
        "phone",
        "mc_identity_phonenumber",
        "mc_identity_signup",
        "mc_identity_nationalid",
        "mc_atp"
    ],
    "service_documentation": "https://reference.mobileconnect.io/mobileconnect/index.php/servicedocs",
    "subject_types_supported": [
        "public",
        "pairwise"
    ],
    "token_endpoint": "https://reference.mobileconnect.io/mobileconnect/index.php/token",
    "token_endpoint_auth_methods_supported": [
        "client_secret_post",
        "client_secret_basic",
        "client_secret_jwt",
        "private_key_jwt"
    ],
    "token_endpoint_auth_signing_alg_values_supported": [
        "HS256",
        "HS384",
        "HS512",
        "RS256",
        "RS384",
        "RS512"
    ],
    "ui_locales_supported": [
        "en-US"
    ],
    "userinfo_encryption_alg_values_supported": [
        "RSA1_5",
        "RSA-OAEP"
    ],
    "userinfo_encryption_enc_values_supported": [
        "A128CBC-HS256",
        "A256CBC-HS512",
        "A128GCM",
        "A256GCM"
    ],
    "userinfo_endpoint": "https://reference.mobileconnect.io/mobileconnect/index.php/userinfo",
    "userinfo_signing_alg_values_supported": [
        "HS256",
        "HS384",
        "HS512",
        "RS256",
        "RS384",
        "RS512"
    ],
    "version": "3.0"
}
0.37phase<--<-- 2 --- Registration -->-->
0.37not expected to doDynamic registration
0.37phase<--<-- 3 --- Note -->-->
3.131phase<--<-- 4 --- AsyncAuthn -->-->
3.132AuthorizationRequest
{
    "client_id": "7cf82bd4-71c3-47df-9c49-70fae9c9b142",
    "nonce": "WqMWwYu3y5Mqscr1",
    "redirect_uri": "https://op.certification.openid.net:61286/authz_cb",
    "response_type": "code",
    "scope": "openid",
    "state": "KdxWpkNoxnQmD5sk"
}
3.132redirect urlhttps://reference.mobileconnect.io/mobileconnect/index.php/auth?response_type=code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61286%2Fauthz_cb&scope=openid&nonce=WqMWwYu3y5Mqscr1&client_id=7cf82bd4-71c3-47df-9c49-70fae9c9b142&state=KdxWpkNoxnQmD5sk
3.132redirecthttps://reference.mobileconnect.io/mobileconnect/index.php/auth?response_type=code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61286%2Fauthz_cb&scope=openid&nonce=WqMWwYu3y5Mqscr1&client_id=7cf82bd4-71c3-47df-9c49-70fae9c9b142&state=KdxWpkNoxnQmD5sk
3.368response{'code': '-T-UhMWvYZ6inWXN1NAmx0XbC8SylxuKP6oxpgfbdW4', 'state': 'KdxWpkNoxnQmD5sk'}
3.368response{'code': '-T-UhMWvYZ6inWXN1NAmx0XbC8SylxuKP6oxpgfbdW4', 'state': 'KdxWpkNoxnQmD5sk'}
3.368AuthorizationResponse
{
    "code": "-T-UhMWvYZ6inWXN1NAmx0XbC8SylxuKP6oxpgfbdW4",
    "state": "KdxWpkNoxnQmD5sk"
}
3.369phase<--<-- 5 --- AccessToken -->-->
3.369requestop_args: {'state': 'KdxWpkNoxnQmD5sk'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61286/authz_cb'}
3.369do_access_token_request
kwargs:{'request_args': {'grant_type': 'authorization_code', 'client_id': '7cf82bd4-71c3-47df-9c49-70fae9c9b142', 'code': '-T-UhMWvYZ6inWXN1NAmx0XbC8SylxuKP6oxpgfbdW4', 'redirect_uri': 'https://op.certification.openid.net:61286/authz_cb', 'state': 'KdxWpkNoxnQmD5sk'}, 'state': 'KdxWpkNoxnQmD5sk'}
3.369AccessTokenRequest
{
    "code": "-T-UhMWvYZ6inWXN1NAmx0XbC8SylxuKP6oxpgfbdW4",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61286/authz_cb",
    "state": "KdxWpkNoxnQmD5sk"
}
3.369request_urlhttps://reference.mobileconnect.io/mobileconnect/index.php/token
3.369request_http_args{'headers': {'Authorization': 'Basic N2NmODJiZDQtNzFjMy00N2RmLTljNDktNzBmYWU5YzliMTQyOmNhNmE5ZDVjLTg5OTctNDZmOC05NjQwLTdiNTE5MWQyNGVkZQ==', 'Content-Type': 'application/x-www-form-urlencoded'}}
3.369requestgrant_type=authorization_code&code=-T-UhMWvYZ6inWXN1NAmx0XbC8SylxuKP6oxpgfbdW4&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61286%2Fauthz_cb&state=KdxWpkNoxnQmD5sk
3.769http response
url:https://reference.mobileconnect.io/mobileconnect/index.php/token status_code:200
3.77response{'id_token': 'eyJhbGciOiJSUzI1NiIsImtpZCI6IlBIUE9QLTAwIn0.eyJpc3MiOiJodHRwczpcL1wvcmVmZXJlbmNlLm1vYmlsZWNvbm5lY3QuaW9cL21vYmlsZWNvbm5lY3QiLCJzdWIiOiJGM0VFRDU1RC01RTZELTQ4MjktODhBNi1BMzY1MzI1QThBNUMiLCJhdWQiOlsiN2NmODJiZDQtNzFjMy00N2RmLTljNDktNzBmYWU5YzliMTQyIl0sImV4cCI6MTUyNjU3Mjc3MSwiaWF0IjoxNTI2NTcyNDcxLCJub25jZSI6IldxTVd3WXUzeTVNcXNjcjEiLCJhdF9oYXNoIjoiS2g4N2ZGa2dDVVlWOGhpUUJ2WlM3USIsImF1dGhfdGltZSI6MTUyNjU3MTY5MCwiYWNyIjoiMiIsImF6cCI6IjdjZjgyYmQ0LTcxYzMtNDdkZi05YzQ5LTcwZmFlOWM5YjE0MiIsImhhc2hlZF9sb2dpbl9oaW50IjoiZTNiMGM0NDI5OGZjMWMxNDlhZmJmNGM4OTk2ZmI5MjQyN2FlNDFlNDY0OWI5MzRjYTQ5NTk5MWI3ODUyYjg1NSJ9.KJ4LKSZmYI7VL1QZV-guQgt5YMOA6nBkFiMUwj11z10rpnt7pRRG427iK3CSDiFK-S5Jw9MR5tGkFoKv0F-8soO9x--PhX6EK78OiotFGiDDksRY-e-JgX_4sUDcYX8nMXsMEt9Kxe8TGxTXWzA_q4x1dUNejG_R3U4KpoF9OD8', 'token_type': 'Bearer', 'expires_in': 3600, 'access_token': 'avA_20nHv2NE-3S39dVu1AG_jTzvAoWf1hn9u0IHIoc'}
4.131AccessTokenResponse
{
    "access_token": "avA_20nHv2NE-3S39dVu1AG_jTzvAoWf1hn9u0IHIoc",
    "expires_in": 3600,
    "id_token": {
        "acr": "2",
        "at_hash": "Kh87fFkgCUYV8hiQBvZS7Q",
        "aud": [
            "7cf82bd4-71c3-47df-9c49-70fae9c9b142"
        ],
        "auth_time": 1526571690,
        "azp": "7cf82bd4-71c3-47df-9c49-70fae9c9b142",
        "exp": 1526572771,
        "hashed_login_hint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
        "iat": 1526572471,
        "iss": "https://reference.mobileconnect.io/mobileconnect",
        "nonce": "WqMWwYu3y5Mqscr1",
        "sub": "F3EED55D-5E6D-4829-88A6-A365325A8A5C"
    },
    "token_type": "Bearer"
}
4.131phase<--<-- 6 --- AccessToken -->-->
4.131requestop_args: {'state': 'KdxWpkNoxnQmD5sk'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61286/authz_cb'}
4.131do_access_token_request
kwargs:{'request_args': {'grant_type': 'authorization_code', 'client_id': '7cf82bd4-71c3-47df-9c49-70fae9c9b142', 'code': '-T-UhMWvYZ6inWXN1NAmx0XbC8SylxuKP6oxpgfbdW4', 'redirect_uri': 'https://op.certification.openid.net:61286/authz_cb', 'state': 'KdxWpkNoxnQmD5sk'}, 'state': 'KdxWpkNoxnQmD5sk'}
4.131AccessTokenRequest
{
    "code": "-T-UhMWvYZ6inWXN1NAmx0XbC8SylxuKP6oxpgfbdW4",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61286/authz_cb",
    "state": "KdxWpkNoxnQmD5sk"
}
4.131request_urlhttps://reference.mobileconnect.io/mobileconnect/index.php/token
4.131request_http_args{'headers': {'Authorization': 'Basic N2NmODJiZDQtNzFjMy00N2RmLTljNDktNzBmYWU5YzliMTQyOmNhNmE5ZDVjLTg5OTctNDZmOC05NjQwLTdiNTE5MWQyNGVkZQ==', 'Content-Type': 'application/x-www-form-urlencoded'}}
4.131requestgrant_type=authorization_code&code=-T-UhMWvYZ6inWXN1NAmx0XbC8SylxuKP6oxpgfbdW4&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61286%2Fauthz_cb&state=KdxWpkNoxnQmD5sk
4.509http response
url:https://reference.mobileconnect.io/mobileconnect/index.php/token status_code:400 message:{"error":"access_denied","error_description":"no such code"}
4.51response{'error_description': 'no such code', 'error': 'access_denied'}
4.51eventGot expected error
4.51TokenErrorResponse
{
    "error": "access_denied",
    "error_description": "no such code"
}
4.51phase<--<-- 7 --- UserInfo -->-->
4.51do_user_info_request
kwargs:{'method': 'GET', 'authn_method': 'bearer_header', 'state': 'KdxWpkNoxnQmD5sk'}
4.511request{'body': None}
4.511request_urlhttps://reference.mobileconnect.io/mobileconnect/index.php/userinfo
4.511request_http_args{'headers': {'Authorization': 'Bearer avA_20nHv2NE-3S39dVu1AG_jTzvAoWf1hn9u0IHIoc'}}
4.886http response
url:https://reference.mobileconnect.io/mobileconnect/index.php/userinfo status_code:401
4.886exception
RequestError:
4.886conditionUserInfo:OP-OAuth-2nd-Revokes: status=ERROR, message=

Result

PARTIAL RESULT