0 | phase | <--<-- 0 --- Webfinger -->--> |
0 | not expected to do | WebFinger |
0 | phase | <--<-- 1 --- Discovery -->--> |
0 | not expected to do | Dynamic discovery |
0 | phase | <--<-- 2 --- Registration -->--> |
0 | not expected to do | Dynamic registration |
0 | phase | <--<-- 3 --- Note -->--> |
4 | phase | <--<-- 4 --- AsyncAuthn -->--> |
4 | AuthorizationRequest | {
"client_id": "oidcConformance_clientId",
"nonce": "5VsdMfx1hKBnpSJ4",
"redirect_uri": "https://op.certification.openid.net:60272/authz_cb",
"response_type": "code",
"scope": "openid",
"state": "ZDbkahAsVfTF37Aj"
}
|
4 | redirect url | https://oidc-test.ergon.ch/auth-oidc/oauth2/oidcConformance_clientId?state=ZDbkahAsVfTF37Aj&nonce=5VsdMfx1hKBnpSJ4&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60272%2Fauthz_cb&client_id=oidcConformance_clientId |
4 | redirect | https://oidc-test.ergon.ch/auth-oidc/oauth2/oidcConformance_clientId?state=ZDbkahAsVfTF37Aj&nonce=5VsdMfx1hKBnpSJ4&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60272%2Fauthz_cb&client_id=oidcConformance_clientId |
4 | response | Response URL with query part |
4 | response | {'code': 'R6V4kiFFEjKCHeAnbzgFPO7cy2Y~75FDWDK5Zx4v9aYJYsy4OePiHf21rojlvkqvVF6W', 'state': 'ZDbkahAsVfTF37Aj'} |
4 | response | {'code': 'R6V4kiFFEjKCHeAnbzgFPO7cy2Y~75FDWDK5Zx4v9aYJYsy4OePiHf21rojlvkqvVF6W', 'state': 'ZDbkahAsVfTF37Aj'} |
4 | AuthorizationResponse | {
"code": "R6V4kiFFEjKCHeAnbzgFPO7cy2Y~75FDWDK5Zx4v9aYJYsy4OePiHf21rojlvkqvVF6W",
"state": "ZDbkahAsVfTF37Aj"
}
|
4 | phase | <--<-- 5 --- AccessToken -->--> |
4 | request | op_args: {'state': 'ZDbkahAsVfTF37Aj'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:60272/authz_cb'} |
4 | do_access_token_request | kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:60272/authz_cb', 'code': 'R6V4kiFFEjKCHeAnbzgFPO7cy2Y~75FDWDK5Zx4v9aYJYsy4OePiHf21rojlvkqvVF6W', 'state': 'ZDbkahAsVfTF37Aj', 'grant_type': 'authorization_code', 'client_id': 'oidcConformance_clientId'}, 'state': 'ZDbkahAsVfTF37Aj', 'authn_method': 'client_secret_basic'}
|
4 | AccessTokenRequest | {
"code": "R6V4kiFFEjKCHeAnbzgFPO7cy2Y~75FDWDK5Zx4v9aYJYsy4OePiHf21rojlvkqvVF6W",
"grant_type": "authorization_code",
"redirect_uri": "https://op.certification.openid.net:60272/authz_cb",
"state": "ZDbkahAsVfTF37Aj"
}
|
4 | request_url | https://oidc-test.ergon.ch/auth-oidc/oauth2/oidcConformance_clientId |
4 | request_http_args | {'headers': {'Authorization': 'Basic b2lkY0NvbmZvcm1hbmNlX2NsaWVudElkOml4MG9vQ2hlX2VlcmUxTXVrX29vamVpOUllX0VpdGhhaTRq', 'Content-Type': 'application/x-www-form-urlencoded'}} |
4 | request | grant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60272%2Fauthz_cb&code=R6V4kiFFEjKCHeAnbzgFPO7cy2Y%7E75FDWDK5Zx4v9aYJYsy4OePiHf21rojlvkqvVF6W&state=ZDbkahAsVfTF37Aj |
5 | http response | url:https://oidc-test.ergon.ch/auth-oidc/oauth2/oidcConformance_clientId status_code:200
|
5 | response | {'access_token': 'uMXa1c6tp11opST_DhoL2Jur3tE~Sk5lXXc4PkwPXSSVyn3XLTYtPgYbQKJu0ypYrNWP', 'refresh_token': 'iiD3senOhRGsDihW5LWmR9UUzM8~FoYfBZuoExFwEM4FGrJ59_iqPf8f-yvJDC_1G6hE', 'id_token': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJtaWtlIiwiYXVkIjoib2lkY0NvbmZvcm1hbmNlX2NsaWVudElkIiwiYXV0aF90aW1lIjoxNTgwNzQ5MjAxLCJpc3MiOiJodHRwczpcL1wvb2lkYy10ZXN0LmVyZ29uLmNoIiwiZXhwIjoxNTgwNzQ5NTM3LCJpYXQiOjE1ODA3NDk0MTcsIm5vbmNlIjoiNVZzZE1meDFoS0JucFNKNCJ9.-Ob3EhTFkXeayq_LlfgXxFCy-4IEzXbFWYb6JVtGMRM', 'token_type': 'bearer', 'expires_in': 179} |
5 | AccessTokenResponse | {
"access_token": "uMXa1c6tp11opST_DhoL2Jur3tE~Sk5lXXc4PkwPXSSVyn3XLTYtPgYbQKJu0ypYrNWP",
"expires_in": 179,
"id_token": {
"aud": [
"oidcConformance_clientId"
],
"auth_time": 1580749201,
"exp": 1580749537,
"iat": 1580749417,
"iss": "https://oidc-test.ergon.ch",
"nonce": "5VsdMfx1hKBnpSJ4",
"sub": "mike"
},
"refresh_token": "iiD3senOhRGsDihW5LWmR9UUzM8~FoYfBZuoExFwEM4FGrJ59_iqPf8f-yvJDC_1G6hE",
"token_type": "bearer"
}
|
5 | jws header | {'typ': 'JWT', 'alg': 'HS256'} |
5 | phase | <--<-- 6 --- AccessToken -->--> |
5 | request | op_args: {'state': 'ZDbkahAsVfTF37Aj'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:60272/authz_cb'} |
5 | do_access_token_request | kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:60272/authz_cb', 'code': 'R6V4kiFFEjKCHeAnbzgFPO7cy2Y~75FDWDK5Zx4v9aYJYsy4OePiHf21rojlvkqvVF6W', 'state': 'ZDbkahAsVfTF37Aj', 'grant_type': 'authorization_code', 'client_id': 'oidcConformance_clientId'}, 'state': 'ZDbkahAsVfTF37Aj', 'authn_method': 'client_secret_basic'}
|
5 | AccessTokenRequest | {
"code": "R6V4kiFFEjKCHeAnbzgFPO7cy2Y~75FDWDK5Zx4v9aYJYsy4OePiHf21rojlvkqvVF6W",
"grant_type": "authorization_code",
"redirect_uri": "https://op.certification.openid.net:60272/authz_cb",
"state": "ZDbkahAsVfTF37Aj"
}
|
5 | request_url | https://oidc-test.ergon.ch/auth-oidc/oauth2/oidcConformance_clientId |
5 | request_http_args | {'headers': {'Authorization': 'Basic b2lkY0NvbmZvcm1hbmNlX2NsaWVudElkOml4MG9vQ2hlX2VlcmUxTXVrX29vamVpOUllX0VpdGhhaTRq', 'Content-Type': 'application/x-www-form-urlencoded'}} |
5 | request | grant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A60272%2Fauthz_cb&code=R6V4kiFFEjKCHeAnbzgFPO7cy2Y%7E75FDWDK5Zx4v9aYJYsy4OePiHf21rojlvkqvVF6W&state=ZDbkahAsVfTF37Aj |
6 | http response | url:https://oidc-test.ergon.ch/auth-oidc/oauth2/oidcConformance_clientId status_code:400 message:{"error":"invalid_grant"}
|
6 | response | {'error': 'invalid_grant'} |
6 | event | Got expected error |
6 | TokenErrorResponse | {
"error": "invalid_grant"
}
|
6 | phase | <--<-- 7 --- UserInfo -->--> |
6 | do_user_info_request | kwargs:{'state': 'ZDbkahAsVfTF37Aj', 'method': 'GET', 'authn_method': 'bearer_header'}
|
6 | request | {'body': None} |
6 | request_url | https://oidc-test.ergon.ch/auth-oidc/oauth2/oidcConformance_clientId/userinfo |
6 | request_http_args | {'headers': {'Authorization': 'Bearer uMXa1c6tp11opST_DhoL2Jur3tE~Sk5lXXc4PkwPXSSVyn3XLTYtPgYbQKJu0ypYrNWP'}} |
6 | http response | url:https://oidc-test.ergon.ch/auth-oidc/oauth2/oidcConformance_clientId/userinfo status_code:401
|
6 | event | Got expected error |
6 | ErrorResponse | {
"error": "invalid_token",
"error_description": "Server returned 401 Unauthorized. WWW-Authenticate header:Bearer error=\"invalid_token\", error_description=\"Invalid access token\""
}
|
6 | ErrorResponse | {
"error": "invalid_token",
"error_description": "Server returned 401 Unauthorized. WWW-Authenticate header:Bearer error=\"invalid_token\", error_description=\"Invalid access token\""
}
|
6 | phase | <--<-- 8 --- Done -->--> |
6 | end | |
6 | assertion | VerifyResponse |
6 | condition | verify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses] |
6 | condition | Done: status=OK |