Test tool version: 2.1.3
Issuer: https://oidc-certification.ory.sh:8443/
Profile: []
Test ID: OP-UserInfo-Header
Test description: UserInfo Endpoint access with POST and bearer header
Timestamp: 2018-06-23T11:22:48Z

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

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.095 http response url:https://oidc-certification.ory.sh:8443/.well-known/openid-configuration status_code:200
0.096 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.096 phase <--<-- 2 --- Registration -->-->
0.096 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'}
0.096 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#ZMA0pUN9JBE4PB4O"
    ],
    "response_types": [
        "id_token token"
    ]
}
0.254 http response url:https://oidc-certification.ory.sh:8443/clients status_code:201
0.255 RegistrationResponse {
    "client_id": "7b0f2b25-a121-4dd0-8e74-49c28941eed3",
    "client_secret": "n-dTsBNJGjON",
    "client_secret_expires_at": 0,
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "implicit"
    ],
    "id": "7b0f2b25-a121-4dd0-8e74-49c28941eed3",
    "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#ZMA0pUN9JBE4PB4O"
    ],
    "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": "none"
}
0.255 phase <--<-- 3 --- AsyncAuthn -->-->
0.256 AuthorizationRequest {
    "client_id": "7b0f2b25-a121-4dd0-8e74-49c28941eed3",
    "nonce": "YnrdAkBDD5ZsOrBT",
    "redirect_uri": "https://op.certification.openid.net:61353/authz_cb",
    "response_type": "id_token token",
    "scope": "openid",
    "state": "HZ2nFRiIILFCSBbe"
}
0.256 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=7b0f2b25-a121-4dd0-8e74-49c28941eed3&state=HZ2nFRiIILFCSBbe&response_type=id_token+token&nonce=YnrdAkBDD5ZsOrBT
0.256 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=7b0f2b25-a121-4dd0-8e74-49c28941eed3&state=HZ2nFRiIILFCSBbe&response_type=id_token+token&nonce=YnrdAkBDD5ZsOrBT
3.68 http args {}
3.858 response URL with fragment
3.858 response access_token=QU4oZbXn2MSm43nBkhy_0kwvYYpapWdErE1BPV66OPg.l6EhOEEZaI6EOVKaXUqxTB6RV1h5cQfckOcoAcw4-Nc&expires_in=3599&id_token=eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYzo0YWU0OWJmNC05ZGEwLTRhODItYmNjZS04OTNjMzcyOWYyMmEiLCJ0eXAiOiJKV1QifQ.eyJhdF9oYXNoIjoiNnRaQUUzTXRJUlNjU0lrVTZjYV9BZyIsImF1ZCI6WyI3YjBmMmIyNS1hMTIxLTRkZDAtOGU3NC00OWMyODk0MWVlZDMiXSwiYXV0aF90aW1lIjoxNTI5NzUyODIwLCJleHAiOjE1Mjk3NTY1NjcsImlhdCI6MTUyOTc1Mjk2NywiaXNzIjoiaHR0cHM6Ly9vaWRjLWNlcnRpZmljYXRpb24ub3J5LnNoOjg0NDMvIiwianRpIjoiNmRmZTA1MjEtNzY2Ni00ZWNiLWFkYTctMjU0ZjUxMWY3NmY0Iiwibm9uY2UiOiJZbnJkQWtCREQ1WnNPckJUIiwicmF0IjoxNTI5NzUyOTY0LCJzdWIiOiJmb29AYmFyLmNvbSJ9. &scope=openid&state=HZ2nFRiIILFCSBbe&token_type=bearer
3.858 response {'id_token': 'eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYzo0YWU0OWJmNC05ZGEwLTRhODItYmNjZS04OTNjMzcyOWYyMmEiLCJ0eXAiOiJKV1QifQ.eyJhdF9oYXNoIjoiNnRaQUUzTXRJUlNjU0lrVTZjYV9BZyIsImF1ZCI6WyI3YjBmMmIyNS1hMTIxLTRkZDAtOGU3NC00OWMyODk0MWVlZDMiXSwiYXV0aF90aW1lIjoxNTI5NzUyODIwLCJleHAiOjE1Mjk3NTY1NjcsImlhdCI6MTUyOTc1Mjk2NywiaXNzIjoiaHR0cHM6Ly9vaWRjLWNlcnRpZmljYXRpb24ub3J5LnNoOjg0NDMvIiwianRpIjoiNmRmZTA1MjEtNzY2Ni00ZWNiLWFkYTctMjU0ZjUxMWY3NmY0Iiwibm9uY2UiOiJZbnJkQWtCREQ1WnNPckJUIiwicmF0IjoxNTI5NzUyOTY0LCJzdWIiOiJmb29AYmFyLmNvbSJ9. ', 'scope': 'openid', 'access_token': 'QU4oZbXn2MSm43nBkhy_0kwvYYpapWdErE1BPV66OPg.l6EhOEEZaI6EOVKaXUqxTB6RV1h5cQfckOcoAcw4-Nc', 'state': 'HZ2nFRiIILFCSBbe', 'expires_in': 3599, 'token_type': 'bearer'}
3.952 AuthorizationResponse {
    "access_token": "QU4oZbXn2MSm43nBkhy_0kwvYYpapWdErE1BPV66OPg.l6EhOEEZaI6EOVKaXUqxTB6RV1h5cQfckOcoAcw4-Nc",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "6tZAE3MtIRScSIkU6ca_Ag",
        "aud": [
            "7b0f2b25-a121-4dd0-8e74-49c28941eed3"
        ],
        "auth_time": 1529752820,
        "exp": 1529756567,
        "iat": 1529752967,
        "iss": "https://oidc-certification.ory.sh:8443/",
        "jti": "6dfe0521-7666-4ecb-ada7-254f511f76f4",
        "nonce": "YnrdAkBDD5ZsOrBT",
        "rat": 1529752964,
        "sub": "foo@bar.com"
    },
    "scope": "openid",
    "state": "HZ2nFRiIILFCSBbe",
    "token_type": "bearer"
}
3.952 phase <--<-- 4 --- AccessToken -->-->
3.952 phase <--<-- 5 --- UserInfo -->-->
3.952 do_user_info_request kwargs:{'state': 'HZ2nFRiIILFCSBbe', 'method': 'POST', 'behavior': 'use_authorization_header'}
3.953 request {'body': ''}
3.953 request_url https://oidc-certification.ory.sh:8443/userinfo
3.953 request_http_args {'headers': {'Authorization': 'Bearer QU4oZbXn2MSm43nBkhy_0kwvYYpapWdErE1BPV66OPg.l6EhOEEZaI6EOVKaXUqxTB6RV1h5cQfckOcoAcw4-Nc', 'Content-Type': 'application/x-www-form-urlencoded'}}
4.028 http response url:https://oidc-certification.ory.sh:8443/userinfo status_code:200
4.029 OpenIDSchema {
    "sub": "foo@bar.com"
}
4.029 OpenIDSchema {
    "sub": "foo@bar.com"
}
4.029 phase <--<-- 6 --- Done -->-->
4.029 end 
4.029 assertion VerifyResponse
4.029 condition verify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
4.029 condition Done: status=OK



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

Conditions

verify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
Done: status=OK



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

RESULT: PASSED
