Test Info

Issuerhttps://oidc-test.ergon.ch
Profile[]
Test IDOP-UserInfo-Header
Test descriptionUserInfo Endpoint access with POST and bearer header
Timestamp2020-02-03T16:41:57Z

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 -->-->
0not expected to doDynamic discovery
0phase<--<-- 2 --- Registration -->-->
0not expected to doDynamic registration
0phase<--<-- 3 --- AsyncAuthn -->-->
0AuthorizationRequest
{
    "client_id": "oidcConformance_clientId",
    "nonce": "bxWVBpfxSxHNQypR",
    "redirect_uri": "https://op.certification.openid.net:60272/authz_cb",
    "response_type": "code",
    "scope": "openid",
    "state": "rExrmUQDxKZ2dUx3"
}
0redirect urlhttps://oidc-test.ergon.ch/auth-oidc/oauth2/oidcConformance_clientId?state=rExrmUQDxKZ2dUx3&nonce=bxWVBpfxSxHNQypR&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60272%2Fauthz_cb&client_id=oidcConformance_clientId
0redirecthttps://oidc-test.ergon.ch/auth-oidc/oauth2/oidcConformance_clientId?state=rExrmUQDxKZ2dUx3&nonce=bxWVBpfxSxHNQypR&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60272%2Fauthz_cb&client_id=oidcConformance_clientId
2responseResponse URL with query part
2response{'code': '1Pq3s3Ze8-DDcMjOEObf5SCydO4~TWyRwR1FH7vJO1KlBYL8BrCRXQfD0Icj-vatn0Ga', 'state': 'rExrmUQDxKZ2dUx3'}
2response{'code': '1Pq3s3Ze8-DDcMjOEObf5SCydO4~TWyRwR1FH7vJO1KlBYL8BrCRXQfD0Icj-vatn0Ga', 'state': 'rExrmUQDxKZ2dUx3'}
2AuthorizationResponse
{
    "code": "1Pq3s3Ze8-DDcMjOEObf5SCydO4~TWyRwR1FH7vJO1KlBYL8BrCRXQfD0Icj-vatn0Ga",
    "state": "rExrmUQDxKZ2dUx3"
}
2phase<--<-- 4 --- AccessToken -->-->
2requestop_args: {'state': 'rExrmUQDxKZ2dUx3'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:60272/authz_cb'}
2do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:60272/authz_cb', 'code': '1Pq3s3Ze8-DDcMjOEObf5SCydO4~TWyRwR1FH7vJO1KlBYL8BrCRXQfD0Icj-vatn0Ga', 'state': 'rExrmUQDxKZ2dUx3', 'grant_type': 'authorization_code', 'client_id': 'oidcConformance_clientId'}, 'state': 'rExrmUQDxKZ2dUx3', 'authn_method': 'client_secret_basic'}
2AccessTokenRequest
{
    "code": "1Pq3s3Ze8-DDcMjOEObf5SCydO4~TWyRwR1FH7vJO1KlBYL8BrCRXQfD0Icj-vatn0Ga",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:60272/authz_cb",
    "state": "rExrmUQDxKZ2dUx3"
}
2request_urlhttps://oidc-test.ergon.ch/auth-oidc/oauth2/oidcConformance_clientId
2request_http_args{'headers': {'Authorization': 'Basic b2lkY0NvbmZvcm1hbmNlX2NsaWVudElkOml4MG9vQ2hlX2VlcmUxTXVrX29vamVpOUllX0VpdGhhaTRq', 'Content-Type': 'application/x-www-form-urlencoded'}}
2requestgrant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60272%2Fauthz_cb&code=1Pq3s3Ze8-DDcMjOEObf5SCydO4%7ETWyRwR1FH7vJO1KlBYL8BrCRXQfD0Icj-vatn0Ga&state=rExrmUQDxKZ2dUx3
3http response
url:https://oidc-test.ergon.ch/auth-oidc/oauth2/oidcConformance_clientId status_code:200
3response{'access_token': 'e9caGVc-Bh3wBGJlh5wfBNkfqF0~ckWQrMmVXz_xp6h6dzWIhYUZWlocOF6Tbf9408JU', 'refresh_token': 'Ne7IHlhjwtBuwBs_PdDHjroHsxA~Lq4TttAATG75Kuh0G_IT5qTIS-kdLOGe4BDG-b8s', 'id_token': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJtaWtlIiwiYXVkIjoib2lkY0NvbmZvcm1hbmNlX2NsaWVudElkIiwiYXV0aF90aW1lIjoxNTgwNzQ2NzMyLCJpc3MiOiJodHRwczpcL1wvb2lkYy10ZXN0LmVyZ29uLmNoIiwiZXhwIjoxNTgwNzQ4MjM1LCJpYXQiOjE1ODA3NDgxMTUsIm5vbmNlIjoiYnhXVkJwZnhTeEhOUXlwUiJ9.VTHoOBo51aU8X5GIiaWCb3QzARTVEpqLm2AT4887kGo', 'token_type': 'bearer', 'expires_in': 179}
3AccessTokenResponse
{
    "access_token": "e9caGVc-Bh3wBGJlh5wfBNkfqF0~ckWQrMmVXz_xp6h6dzWIhYUZWlocOF6Tbf9408JU",
    "expires_in": 179,
    "id_token": {
        "aud": [
            "oidcConformance_clientId"
        ],
        "auth_time": 1580746732,
        "exp": 1580748235,
        "iat": 1580748115,
        "iss": "https://oidc-test.ergon.ch",
        "nonce": "bxWVBpfxSxHNQypR",
        "sub": "mike"
    },
    "refresh_token": "Ne7IHlhjwtBuwBs_PdDHjroHsxA~Lq4TttAATG75Kuh0G_IT5qTIS-kdLOGe4BDG-b8s",
    "token_type": "bearer"
}
3jws header{'typ': 'JWT', 'alg': 'HS256'}
3phase<--<-- 5 --- UserInfo -->-->
3do_user_info_request
kwargs:{'state': 'rExrmUQDxKZ2dUx3', 'method': 'POST', 'behavior': 'use_authorization_header'}
3request{'body': ''}
3request_urlhttps://oidc-test.ergon.ch/auth-oidc/oauth2/oidcConformance_clientId/userinfo
3request_http_args{'headers': {'Authorization': 'Bearer e9caGVc-Bh3wBGJlh5wfBNkfqF0~ckWQrMmVXz_xp6h6dzWIhYUZWlocOF6Tbf9408JU', 'Content-Type': 'application/x-www-form-urlencoded'}}
4http response
url:https://oidc-test.ergon.ch/auth-oidc/oauth2/oidcConformance_clientId/userinfo status_code:200
4OpenIDSchema
{
    "address": {
        "formatted": "Kleinstrasse 15 \n8032 Zurich"
    },
    "birthdate": "01011970",
    "email": "micdou@ergon.ch",
    "family_name": "Doujak",
    "gender": "male",
    "given_name": "Michael",
    "locale": "EN",
    "middle_name": "middle_name",
    "name": "Doujak Michael",
    "nickname": "nickname",
    "phone_number": "0797127212",
    "picture": "https://www.airlock.com/typo3conf/ext/airlockpackage/Resources/Public/Images/Logos/logo-airlock-black.svg",
    "preferred_username": "$(username)",
    "profile": {
        "family_name": "Doujak",
        "given_name": "Michael"
    },
    "sub": "mike",
    "updated_at": 20190101,
    "website": "https://airlock.com",
    "zoneinfo": "zoneinfo - CET"
}
4OpenIDSchema
{
    "address": {
        "formatted": "Kleinstrasse 15 \n8032 Zurich"
    },
    "birthdate": "01011970",
    "email": "micdou@ergon.ch",
    "family_name": "Doujak",
    "gender": "male",
    "given_name": "Michael",
    "locale": "EN",
    "middle_name": "middle_name",
    "name": "Doujak Michael",
    "nickname": "nickname",
    "phone_number": "0797127212",
    "picture": "https://www.airlock.com/typo3conf/ext/airlockpackage/Resources/Public/Images/Logos/logo-airlock-black.svg",
    "preferred_username": "$(username)",
    "profile": {
        "family_name": "Doujak",
        "given_name": "Michael"
    },
    "sub": "mike",
    "updated_at": 20190101,
    "website": "https://airlock.com",
    "zoneinfo": "zoneinfo - CET"
}
4phase<--<-- 6 --- Done -->-->
4end
4assertionVerifyResponse
4conditionverify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
4conditionDone: status=OK

Result

PASSED