ory-am/hydra

View on GitHub
internal/certification/CI.F.T.T.s/OP-Response-code+id_token.txt

Summary

Maintainability
Test Coverage
Test tool version: 2.1.3
Issuer: https://oidc-certification.ory.sh:8443/
Profile: []
Test ID: OP-Response-code+id_token
Test description: Request with response_type=code id_token
Timestamp: 2018-06-23T10:51:41Z

============================================================

Trace output

0.0 phase <--<-- 0 --- Webfinger -->-->
0.0 not expected to do WebFinger
0.0 phase <--<-- 1 --- Discovery -->-->
0.0 provider_config kwargs:{'issuer': 'https://oidc-certification.ory.sh:8443/'}
0.075 http response url:https://oidc-certification.ory.sh:8443/.well-known/openid-configuration status_code:200
0.076 ProviderConfigurationResponse {
    "authorization_endpoint": "https://oidc-certification.ory.sh:8443/oauth2/auth",
    "claims_parameter_supported": false,
    "claims_supported": [
        "sub"
    ],
    "grant_types_supported": [
        "authorization_code",
        "implicit",
        "client_credentials",
        "refresh_token"
    ],
    "id_token_signing_alg_values_supported": [
        "RS256"
    ],
    "issuer": "https://oidc-certification.ory.sh:8443/",
    "jwks_uri": "https://oidc-certification.ory.sh:8443/.well-known/jwks.json",
    "registration_endpoint": "https://oidc-certification.ory.sh:8443/clients",
    "request_parameter_supported": true,
    "request_uri_parameter_supported": true,
    "require_request_uri_registration": true,
    "response_modes_supported": [
        "query",
        "fragment"
    ],
    "response_types_supported": [
        "code",
        "code id_token",
        "id_token",
        "token id_token",
        "token",
        "token id_token code"
    ],
    "scopes_supported": [
        "offline",
        "openid"
    ],
    "subject_types_supported": [
        "pairwise",
        "public"
    ],
    "token_endpoint": "https://oidc-certification.ory.sh:8443/oauth2/token",
    "token_endpoint_auth_methods_supported": [
        "client_secret_post",
        "client_secret_basic",
        "private_key_jwt",
        "none"
    ],
    "userinfo_endpoint": "https://oidc-certification.ory.sh:8443/userinfo",
    "userinfo_signing_alg_values_supported": [
        "none",
        "RS256"
    ],
    "version": "3.0"
}
0.076 phase <--<-- 2 --- Registration -->-->
0.076 register kwargs:{'application_name': 'OIC test tool', 'response_types': ['code id_token'], 'contacts': ['roland@example.com'], 'redirect_uris': ['https://op.certification.openid.net:61353/authz_cb'], 'post_logout_redirect_uris': ['https://op.certification.openid.net:61353/logout'], 'jwks_uri': 'https://op.certification.openid.net:61353/static/jwks_61353.json', 'grant_types': ['authorization_code', 'implicit'], 'application_type': 'web', 'url': 'https://oidc-certification.ory.sh:8443/clients'}
0.077 RegistrationRequest {
    "application_type": "web",
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code",
        "implicit"
    ],
    "jwks_uri": "https://op.certification.openid.net:61353/static/jwks_61353.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61353/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61353/authz_cb"
    ],
    "request_uris": [
        "https://op.certification.openid.net:61353/requests/e3ecc141f5419bd33d25d760861d32323144d583feaf26eb1b5cbf20147608b9#m4fBbGHxOJnITOwg"
    ],
    "response_types": [
        "code id_token"
    ]
}
0.238 http response url:https://oidc-certification.ory.sh:8443/clients status_code:201
0.238 RegistrationResponse {
    "client_id": "3f310789-685b-4abf-92d0-8dbd31a6965d",
    "client_secret": "XA4y7w6wGA3r",
    "client_secret_expires_at": 0,
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code",
        "implicit"
    ],
    "id": "3f310789-685b-4abf-92d0-8dbd31a6965d",
    "jwks_uri": "https://op.certification.openid.net:61353/static/jwks_61353.json",
    "public": false,
    "redirect_uris": [
        "https://op.certification.openid.net:61353/authz_cb"
    ],
    "request_uris": [
        "https://op.certification.openid.net:61353/requests/e3ecc141f5419bd33d25d760861d32323144d583feaf26eb1b5cbf20147608b9#m4fBbGHxOJnITOwg"
    ],
    "response_types": [
        "code id_token"
    ],
    "scope": "openid offline offline_access profile email address phone",
    "token_endpoint_auth_method": "client_secret_basic",
    "userinfo_signed_response_alg": "none"
}
0.238 phase <--<-- 3 --- AsyncAuthn -->-->
0.239 AuthorizationRequest {
    "client_id": "3f310789-685b-4abf-92d0-8dbd31a6965d",
    "nonce": "fepW6L1aJgF74VbH",
    "redirect_uri": "https://op.certification.openid.net:61353/authz_cb",
    "response_type": "code id_token",
    "scope": "openid",
    "state": "jfprgTRa66gxWeip"
}
0.239 redirect url https://oidc-certification.ory.sh:8443/oauth2/auth?scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61353%2Fauthz_cb&client_id=3f310789-685b-4abf-92d0-8dbd31a6965d&state=jfprgTRa66gxWeip&response_type=code+id_token&nonce=fepW6L1aJgF74VbH
0.239 redirect https://oidc-certification.ory.sh:8443/oauth2/auth?scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61353%2Fauthz_cb&client_id=3f310789-685b-4abf-92d0-8dbd31a6965d&state=jfprgTRa66gxWeip&response_type=code+id_token&nonce=fepW6L1aJgF74VbH
3.269 http args {}
3.482 response URL with fragment
3.482 response code=1dXZYdJNMSaWnCJKfU1ioQehXwTE08RfKHDMsaOy-aw.Ut4Kl8btgUZXUlaF80gqpRnlQJXccbHgePEwcOv1vLM&id_token=eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYzowYWNmNmM2NC00ZDU1LTQ4ODgtYWJiOS1iMmEzZjY2MWVlN2YiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOlsiM2YzMTA3ODktNjg1Yi00YWJmLTkyZDAtOGRiZDMxYTY5NjVkIl0sImF1dGhfdGltZSI6MTUyOTc1MDk3NSwiY19oYXNoIjoiOVJsdHVScUFqRk9NUE82dmRrOEdYZyIsImV4cCI6MTUyOTc1NDcwMCwiaWF0IjoxNTI5NzUxMTAwLCJpc3MiOiJodHRwczovL29pZGMtY2VydGlmaWNhdGlvbi5vcnkuc2g6ODQ0My8iLCJqdGkiOiIwODBmNDA1OC0yYzA3LTQwOTgtYjljMy01ZDMwYTIwMzBjMmMiLCJub25jZSI6ImZlcFc2TDFhSmdGNzRWYkgiLCJyYXQiOjE1Mjk3NTEwOTgsInN1YiI6ImZvb0BiYXIuY29tIn0.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
        "aud": [
            "3f310789-685b-4abf-92d0-8dbd31a6965d"
        ],
        "auth_time": 1529750975,
        "c_hash": "9RltuRqAjFOMPO6vdk8GXg",
        "exp": 1529754700,
        "iat": 1529751100,
        "iss": "https://oidc-certification.ory.sh:8443/",
        "jti": "080f4058-2c07-4098-b9c3-5d30a2030c2c",
        "nonce": "fepW6L1aJgF74VbH",
        "rat": 1529751098,
        "sub": "foo@bar.com"
    },
    "state": "jfprgTRa66gxWeip"
}
3.564 phase <--<-- 4 --- Done -->-->
3.564 end 
3.564 assertion VerifyAuthnResponse
3.564 condition verify-authn-response: status=OK [Checks that the last response was a JSON encoded authentication message]
3.565 assertion CheckIdTokenNonce
3.565 condition check-idtoken-nonce: status=OK [Verify that the nonce in the IDToken is the same that's included in the Authorization Request.]
3.565 condition Done: status=OK



============================================================

Conditions

verify-authn-response: status=OK [Checks that the last response was a JSON encoded authentication message]
check-idtoken-nonce: status=OK [Verify that the nonce in the IDToken is the same that's included in the Authorization Request.]
Done: status=OK



============================================================

RESULT: PASSED