Test Info

Issuerhttps://oidc-test.ergon.ch
Profile[]
Test IDOP-ClientAuth-SecretPost-Static
Test descriptionAccess token request with client_secret_post authentication
Timestamp2020-02-03T16:31:21Z

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 --- AsyncAuthn -->-->
0AuthorizationRequest
{
    "client_id": "oidcConformance_clientId",
    "nonce": "3RZuSgo8qRK2Gs2a",
    "redirect_uri": "https://op.certification.openid.net:60272/authz_cb",
    "response_type": "code",
    "scope": "openid",
    "state": "uoDC1c9IsBSzMkx8"
}
0redirect urlhttps://oidc-test.ergon.ch/auth-oidc/oauth2/oidcConformance_clientId?state=uoDC1c9IsBSzMkx8&nonce=3RZuSgo8qRK2Gs2a&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=uoDC1c9IsBSzMkx8&nonce=3RZuSgo8qRK2Gs2a&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': 'thS8BZlcfHdzLVdONJHJnwinGJs~2mDeq1nEi_hu7oX41p-lZ6E4g-5W3Dw2-SS_B_ZH', 'state': 'uoDC1c9IsBSzMkx8'}
2response{'code': 'thS8BZlcfHdzLVdONJHJnwinGJs~2mDeq1nEi_hu7oX41p-lZ6E4g-5W3Dw2-SS_B_ZH', 'state': 'uoDC1c9IsBSzMkx8'}
2AuthorizationResponse
{
    "code": "thS8BZlcfHdzLVdONJHJnwinGJs~2mDeq1nEi_hu7oX41p-lZ6E4g-5W3Dw2-SS_B_ZH",
    "state": "uoDC1c9IsBSzMkx8"
}
2phase<--<-- 3 --- AccessToken -->-->
2requestop_args: {'state': 'uoDC1c9IsBSzMkx8', 'authn_method': 'client_secret_post'}, 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': 'thS8BZlcfHdzLVdONJHJnwinGJs~2mDeq1nEi_hu7oX41p-lZ6E4g-5W3Dw2-SS_B_ZH', 'state': 'uoDC1c9IsBSzMkx8', 'grant_type': 'authorization_code', 'client_id': 'oidcConformance_clientId'}, 'state': 'uoDC1c9IsBSzMkx8', 'authn_method': 'client_secret_post'}
2AccessTokenRequest
{
    "client_id": "oidcConformance_clientId",
    "client_secret": "ix0ooChe_eere1Muk_oojei9Ie_Eithai4j",
    "code": "thS8BZlcfHdzLVdONJHJnwinGJs~2mDeq1nEi_hu7oX41p-lZ6E4g-5W3Dw2-SS_B_ZH",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:60272/authz_cb",
    "state": "uoDC1c9IsBSzMkx8"
}
2request_urlhttps://oidc-test.ergon.ch/auth-oidc/oauth2/oidcConformance_clientId
2request_http_args{'headers': {'Content-Type': 'application/x-www-form-urlencoded'}}
2requestgrant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60272%2Fauthz_cb&code=thS8BZlcfHdzLVdONJHJnwinGJs%7E2mDeq1nEi_hu7oX41p-lZ6E4g-5W3Dw2-SS_B_ZH&state=uoDC1c9IsBSzMkx8&client_id=oidcConformance_clientId&client_secret=ix0ooChe_eere1Muk_oojei9Ie_Eithai4j
3http response
url:https://oidc-test.ergon.ch/auth-oidc/oauth2/oidcConformance_clientId status_code:200
3response{'access_token': 'GMYEDXEONI-AS4H-IawFCLYLlZo~22Rsog1ZWyNneNGARZfzH2nJzudPP5o2cdkAUwF2', 'refresh_token': 'm3ua4YcFgjau38INPcdepVYQYAg~XkiX-X2oaBxjr8FIelz_OiBHYbUKsUOp0i3nf83f', 'id_token': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJtaWtlIiwiYXVkIjoib2lkY0NvbmZvcm1hbmNlX2NsaWVudElkIiwiYXV0aF90aW1lIjoxNTgwNzQ2NzMyLCJpc3MiOiJodHRwczpcL1wvb2lkYy10ZXN0LmVyZ29uLmNoIiwiZXhwIjoxNTgwNzQ3NjAwLCJpYXQiOjE1ODA3NDc0ODAsIm5vbmNlIjoiM1JadVNnbzhxUksyR3MyYSJ9.rOK1kN6cK_CuS2aYTTJH9b2xRpXk_SlrpjiLarS-Hi4', 'token_type': 'bearer', 'expires_in': 179}
3AccessTokenResponse
{
    "access_token": "GMYEDXEONI-AS4H-IawFCLYLlZo~22Rsog1ZWyNneNGARZfzH2nJzudPP5o2cdkAUwF2",
    "expires_in": 179,
    "id_token": {
        "aud": [
            "oidcConformance_clientId"
        ],
        "auth_time": 1580746732,
        "exp": 1580747600,
        "iat": 1580747480,
        "iss": "https://oidc-test.ergon.ch",
        "nonce": "3RZuSgo8qRK2Gs2a",
        "sub": "mike"
    },
    "refresh_token": "m3ua4YcFgjau38INPcdepVYQYAg~XkiX-X2oaBxjr8FIelz_OiBHYbUKsUOp0i3nf83f",
    "token_type": "bearer"
}
3jws header{'typ': 'JWT', 'alg': 'HS256'}
3phase<--<-- 4 --- Done -->-->
3end
3assertionVerifyResponse
3conditionverify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
3conditionDone: status=OK

Result

PASSED