ory-am/hydra

View on GitHub
internal/certification/IT.F.T.T.s/OP-UserInfo-RS256.txt

Summary

Maintainability
Test Coverage
Test tool version: 2.1.3
Issuer: https://oidc-certification.ory.sh:8443/
Profile: []
Test ID: OP-UserInfo-RS256
Test description: RP registers userinfo_signed_response_alg to signal that it wants signed UserInfo returned
Timestamp: 2018-06-23T11:22:53Z

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

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.122 http response url:https://oidc-certification.ory.sh:8443/.well-known/openid-configuration status_code:200
0.123 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.123 phase <--<-- 2 --- Registration -->-->
0.123 register kwargs:{'application_name': 'OIC test tool', 'response_types': ['id_token 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': ['implicit'], 'application_type': 'web', 'url': 'https://oidc-certification.ory.sh:8443/clients', 'userinfo_signed_response_alg': 'RS256'}
0.124 RegistrationRequest {
    "application_type": "web",
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "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#1sdxJWFEWbh2VEkg"
    ],
    "response_types": [
        "id_token token"
    ],
    "userinfo_signed_response_alg": "RS256"
}
0.278 http response url:https://oidc-certification.ory.sh:8443/clients status_code:201
0.279 RegistrationResponse {
    "client_id": "0cb1e97c-5e97-4ec3-a5a8-e43ae248d77c",
    "client_secret": "7.mD4FfYd9zJ",
    "client_secret_expires_at": 0,
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "implicit"
    ],
    "id": "0cb1e97c-5e97-4ec3-a5a8-e43ae248d77c",
    "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#1sdxJWFEWbh2VEkg"
    ],
    "response_types": [
        "id_token token"
    ],
    "scope": "openid offline offline_access profile email address phone",
    "token_endpoint_auth_method": "client_secret_basic",
    "userinfo_signed_response_alg": "RS256"
}
0.279 phase <--<-- 3 --- AsyncAuthn -->-->
0.279 AuthorizationRequest {
    "client_id": "0cb1e97c-5e97-4ec3-a5a8-e43ae248d77c",
    "nonce": "oawTskMp0CwhrTh5",
    "redirect_uri": "https://op.certification.openid.net:61353/authz_cb",
    "response_type": "id_token token",
    "scope": "openid",
    "state": "a4aa5FzBJJMWNEKw"
}
0.28 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=0cb1e97c-5e97-4ec3-a5a8-e43ae248d77c&state=a4aa5FzBJJMWNEKw&response_type=id_token+token&nonce=oawTskMp0CwhrTh5
0.28 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=0cb1e97c-5e97-4ec3-a5a8-e43ae248d77c&state=a4aa5FzBJJMWNEKw&response_type=id_token+token&nonce=oawTskMp0CwhrTh5
3.212 http args {}
3.402 response URL with fragment
3.402 response access_token=HCwgggs40Gg6XSmygQkfvpp93kf-V1iCtDLCjE9pkqk.8jm5aY61ULS4m9ChxcsWjPmFju41LJhw4xxJj85aceo&expires_in=3599&id_token=eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYzo0YWU0OWJmNC05ZGEwLTRhODItYmNjZS04OTNjMzcyOWYyMmEiLCJ0eXAiOiJKV1QifQ.eyJhdF9oYXNoIjoidHVxREE2bzhSZEhKbTdaTEROV3BFQSIsImF1ZCI6WyIwY2IxZTk3Yy01ZTk3LTRlYzMtYTVhOC1lNDNhZTI0OGQ3N2MiXSwiYXV0aF90aW1lIjoxNTI5NzUyODIwLCJleHAiOjE1Mjk3NTY1NzIsImlhdCI6MTUyOTc1Mjk3MiwiaXNzIjoiaHR0cHM6Ly9vaWRjLWNlcnRpZmljYXRpb24ub3J5LnNoOjg0NDMvIiwianRpIjoiZWI2NTExMDUtYTlhOC00M2M1LTk3NzYtZGNlMTlhZjA4Z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 'state': 'a4aa5FzBJJMWNEKw', 'expires_in': 3599, 'token_type': 'bearer'}
3.49 AuthorizationResponse {
    "access_token": "HCwgggs40Gg6XSmygQkfvpp93kf-V1iCtDLCjE9pkqk.8jm5aY61ULS4m9ChxcsWjPmFju41LJhw4xxJj85aceo",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "tuqDA6o8RdHJm7ZLDNWpEA",
        "aud": [
            "0cb1e97c-5e97-4ec3-a5a8-e43ae248d77c"
        ],
        "auth_time": 1529752820,
        "exp": 1529756572,
        "iat": 1529752972,
        "iss": "https://oidc-certification.ory.sh:8443/",
        "jti": "eb651105-a9a8-43c5-9776-dce19af08e7b",
        "nonce": "oawTskMp0CwhrTh5",
        "rat": 1529752969,
        "sub": "foo@bar.com"
    },
    "scope": "openid",
    "state": "a4aa5FzBJJMWNEKw",
    "token_type": "bearer"
}
3.49 phase <--<-- 4 --- AccessToken -->-->
3.49 phase <--<-- 5 --- UserInfo -->-->
3.491 do_user_info_request kwargs:{'state': 'a4aa5FzBJJMWNEKw', 'method': 'GET', 'authn_method': 'bearer_header', 'ctype': 'jwt'}
3.491 request {'body': None}
3.491 request_url https://oidc-certification.ory.sh:8443/userinfo
3.491 request_http_args {'headers': {'Authorization': 'Bearer HCwgggs40Gg6XSmygQkfvpp93kf-V1iCtDLCjE9pkqk.8jm5aY61ULS4m9ChxcsWjPmFju41LJhw4xxJj85aceo'}}
3.617 http response url:https://oidc-certification.ory.sh:8443/userinfo status_code:200
3.621 OpenIDSchema {
    "aud": [
        "0cb1e97c-5e97-4ec3-a5a8-e43ae248d77c"
    ],
    "iss": "https://oidc-certification.ory.sh:8443/",
    "sub": "foo@bar.com"
}
3.621 OpenIDSchema {
    "aud": [
        "0cb1e97c-5e97-4ec3-a5a8-e43ae248d77c"
    ],
    "iss": "https://oidc-certification.ory.sh:8443/",
    "sub": "foo@bar.com"
}
3.621 phase <--<-- 6 --- Done -->-->
3.621 end 
3.622 assertion VerifyResponse
3.622 condition verify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
3.622 assertion CheckAsymSignedUserInfo
3.622 condition asym-signed-userinfo: status=OK [Verifies that the UserInfo was signed with a RSA key]
3.622 condition Done: status=OK



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

Conditions

verify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
asym-signed-userinfo: status=OK [Verifies that the UserInfo was signed with a RSA key]
Done: status=OK



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

RESULT: PASSED