0 | phase | <--<-- 0 --- Webfinger -->--> |
0 | not expected to do | WebFinger |
0 | phase | <--<-- 1 --- Discovery -->--> |
0 | provider_config | kwargs:{'issuer': 'https://oidc-prod-eu01a-test1.ice.ibmcloud.com/oidc/endpoint/default'}
|
0 | http response | url:https://oidc-prod-eu01a-test1.ice.ibmcloud.com/oidc/endpoint/default/.well-known/openid-configuration status_code:200
|
0 | ProviderConfigurationResponse | {
"authorization_endpoint": "https://oidc-prod-eu01a-test1.ice.ibmcloud.com/oidc/endpoint/default/authorize",
"claim_types_supported": [
"normal"
],
"claims_parameter_supported": true,
"claims_supported": [
"realmName",
"preferred_username",
"given_name",
"uid",
"upn",
"groupIds",
"employee_id",
"name",
"tenantId",
"mobile_number",
"department",
"family_name",
"job_title",
"email"
],
"device_authorization_endpoint": "https://oidc-prod-eu01a-test1.ice.ibmcloud.com/oidc/endpoint/default/device_authorization",
"grant_types_supported": [
"authorization_code",
"implicit",
"client_credentials",
"password",
"refresh_token",
"urn:ietf:params:oauth:grant-type:device_code"
],
"id_token_encryption_alg_values_supported": [
"none"
],
"id_token_encryption_enc_values_supported": [
"none"
],
"id_token_signing_alg_values_supported": [
"none",
"HS256",
"HS384",
"HS512",
"RS256",
"RS384",
"RS512"
],
"introspection_endpoint": "https://oidc-prod-eu01a-test1.ice.ibmcloud.com/oidc/endpoint/default/introspect",
"issuer": "https://oidc-prod-eu01a-test1.ice.ibmcloud.com/oidc/endpoint/default",
"jwks_uri": "https://oidc-prod-eu01a-test1.ice.ibmcloud.com/oidc/endpoint/default/jwks",
"request_object_encryption_alg_values_supported": [
"none"
],
"request_object_encryption_enc_values_supported": [
"none"
],
"request_object_signing_alg_values_supported": [
"none"
],
"request_parameter_supported": true,
"request_uri_parameter_supported": false,
"require_request_uri_registration": false,
"response_modes_supported": [
"query",
"fragment",
"form_post"
],
"response_types_supported": [
"code",
"none",
"token",
"id_token",
"token id_token",
"code id_token",
"code token",
"code token id_token"
],
"revocation_endpoint": "https://oidc-prod-eu01a-test1.ice.ibmcloud.com/oidc/endpoint/default/revoke",
"scopes_supported": [
"openid",
"profile",
"email",
"phone"
],
"subject_types_supported": [
"public"
],
"token_endpoint": "https://oidc-prod-eu01a-test1.ice.ibmcloud.com/oidc/endpoint/default/token",
"token_endpoint_auth_methods_supported": [
"client_secret_basic",
"client_secret_post"
],
"user_authorization_endpoint": "https://oidc-prod-eu01a-test1.ice.ibmcloud.com/oidc/endpoint/default/user_authorization",
"userinfo_encryption_alg_values_supported": [
"none"
],
"userinfo_encryption_enc_values_supported": [
"none"
],
"userinfo_endpoint": "https://oidc-prod-eu01a-test1.ice.ibmcloud.com/oidc/endpoint/default/userinfo",
"userinfo_signing_alg_values_supported": [
"none"
],
"version": "3.0"
}
|
0 | phase | <--<-- 2 --- Registration -->--> |
0 | not expected to do | Dynamic registration |
0 | phase | <--<-- 3 --- Note -->--> |
1 | phase | <--<-- 4 --- AsyncAuthn -->--> |
1 | AuthorizationRequest | {
"client_id": "5525f670-e6b3-41a9-afec-add4254aff3b",
"nonce": "qCRMLieZC12Qi9xK",
"redirect_uri": "https://op.certification.openid.net:61915/authz_cb",
"response_type": "code token",
"scope": "openid",
"state": "ooQgK2Qvo60U3MZF"
}
|
1 | redirect url | https://oidc-prod-eu01a-test1.ice.ibmcloud.com/oidc/endpoint/default/authorize?state=ooQgK2Qvo60U3MZF&nonce=qCRMLieZC12Qi9xK&response_type=code+token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61915%2Fauthz_cb&client_id=5525f670-e6b3-41a9-afec-add4254aff3b |
1 | redirect | https://oidc-prod-eu01a-test1.ice.ibmcloud.com/oidc/endpoint/default/authorize?state=ooQgK2Qvo60U3MZF&nonce=qCRMLieZC12Qi9xK&response_type=code+token&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61915%2Fauthz_cb&client_id=5525f670-e6b3-41a9-afec-add4254aff3b |
2 | http args | {} |
2 | response | URL with fragment |
2 | response | access_token=gV9j6geNEpHG8SsW3Tfq1BmFbapPiEZPR6vCEf8b&code=7OcaGxrxFTFaMJ3plkepVzPA9zxbN4&scope=openid&grant_id=c444e9c6-ab2e-47b6-889c-3bc3d3ce0ef3&state=ooQgK2Qvo60U3MZF&token_type=Bearer&expires_in=7200 |
2 | response | {'access_token': 'gV9j6geNEpHG8SsW3Tfq1BmFbapPiEZPR6vCEf8b', 'code': '7OcaGxrxFTFaMJ3plkepVzPA9zxbN4', 'scope': 'openid', 'grant_id': 'c444e9c6-ab2e-47b6-889c-3bc3d3ce0ef3', 'state': 'ooQgK2Qvo60U3MZF', 'token_type': 'Bearer', 'expires_in': 7200} |
2 | AuthorizationResponse | {
"access_token": "gV9j6geNEpHG8SsW3Tfq1BmFbapPiEZPR6vCEf8b",
"code": "7OcaGxrxFTFaMJ3plkepVzPA9zxbN4",
"expires_in": 7200,
"grant_id": "c444e9c6-ab2e-47b6-889c-3bc3d3ce0ef3",
"scope": "openid",
"state": "ooQgK2Qvo60U3MZF",
"token_type": "Bearer"
}
|
2 | phase | <--<-- 5 --- AccessToken -->--> |
2 | request | op_args: {'state': 'ooQgK2Qvo60U3MZF'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61915/authz_cb'} |
2 | do_access_token_request | kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61915/authz_cb', 'code': '7OcaGxrxFTFaMJ3plkepVzPA9zxbN4', 'state': 'ooQgK2Qvo60U3MZF', 'grant_type': 'authorization_code', 'client_id': '5525f670-e6b3-41a9-afec-add4254aff3b'}, 'state': 'ooQgK2Qvo60U3MZF', 'authn_method': 'client_secret_basic'}
|
2 | AccessTokenRequest | {
"code": "7OcaGxrxFTFaMJ3plkepVzPA9zxbN4",
"grant_type": "authorization_code",
"redirect_uri": "https://op.certification.openid.net:61915/authz_cb",
"state": "ooQgK2Qvo60U3MZF"
}
|
2 | request_url | https://oidc-prod-eu01a-test1.ice.ibmcloud.com/oidc/endpoint/default/token |
2 | request_http_args | {'headers': {'Authorization': 'Basic NTUyNWY2NzAtZTZiMy00MWE5LWFmZWMtYWRkNDI1NGFmZjNiOlRFOUwxY2wzdHc=', 'Content-Type': 'application/x-www-form-urlencoded'}} |
2 | request | grant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61915%2Fauthz_cb&code=7OcaGxrxFTFaMJ3plkepVzPA9zxbN4&state=ooQgK2Qvo60U3MZF |
2 | http response | url:https://oidc-prod-eu01a-test1.ice.ibmcloud.com/oidc/endpoint/default/token status_code:200
|
2 | response | {'access_token': 'DphIdzIw0lTyLVyX9gcMqywohcWRou0SNr3YDfAp', 'scope': 'openid', 'grant_id': 'c444e9c6-ab2e-47b6-889c-3bc3d3ce0ef3', 'id_token': 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InNlcnZlciJ9.eyJnaXZlbl9uYW1lIjoiR2VldGhhIiwic19oYXNoIjoiSzV2ZGxad3R1UmR4X3ZHbkpmWUZYUSIsInVuaXF1ZVNlY3VyaXR5TmFtZSI6IjY0MDAwNEtHNFAiLCJ0ZW5hbnRJZCI6Im9pZGMtcHJvZC1ldTAxYS10ZXN0MS5pY2UuaWJtY2xvdWQuY29tIiwicmVhbG1OYW1lIjoiY2xvdWRJZGVudGl0eVJlYWxtIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiZ2VldGhhbmphbGkuZEBpYm0uY29tIiwibmFtZSI6IkdlZXRoYSBEIiwibm9uY2UiOiJxQ1JNTGllWkMxMlFpOXhLIiwiZW1haWwiOiJnZWV0aGFuamFsaS5kQGlibS5jb20iLCJhY3IiOiJ1cm46aWJtOnNlY3VyaXR5OnBvbGljeTppZDoxIiwidXNlclR5cGUiOiJyZWd1bGFyIiwiZGlzcGxheU5hbWUiOiJHZWV0aGEgRCIsImZhbWlseV9uYW1lIjoiRCIsImdyb3VwSWRzIjpbImFsbFVzZXJzIiwiYWRtaW4iXSwiYXRfaGFzaCI6Imh0dTZjMlpRazdBd2F1Q0JXSFMyUVEiLCJ1aWQiOiI2NDAwMDRLRzRQIiwiZXh0Ijp7InRlbmFudElkIjoib2lkYy1wcm9kLWV1MDFhLXRlc3QxLmljZS5pYm1jbG91ZC5jb20ifSwiaXNzIjoiaHR0cHM6Ly9vaWRjLXByb2QtZXUwMWEtdGVzdDEuaWNlLmlibWNsb3VkLmNvbS9vaWRjL2VuZHBvaW50L2RlZmF1bHQiLCJhdWQiOiI1NTI1ZjY3MC1lNmIzLTQxYTktYWZlYy1hZGQ0MjU0YWZmM2IiLCJzdWIiOiI2NDAwMDRLRzRQIiwiaWF0IjoxNTY4MTkzNDk2LCJleHAiOjE1NjgyMDA2OTZ9.U1gw98lwctshrnRgmJWs8LguVv_2VppHgBM_vZ6IfRoai-MVv_GtlhAQYMwaR30paQfRvN3GG8bJY1dlC4Y1bpcnfZiJiFEl7-y4vfJJp1gB4I3zA0__LnrBXH_Mw0QHOGiVG0lAcvEsZ0Khs2gzQwx2JsLV3C6AEZzAdiUYAsELuy7G15N_0WK7II6usZfzip1dCqi8kn06XD8gteYYf6rsJHB6rilgQAJOIV7rEdRhSjkP3YpTMJeDKpjEeMh9z99pbIFm4uXjtc8xKNJV0mh2Rtjqz3N3psEphpYFPc4NL1IxnWpJLjDX2tqwUJOrOVgxQY5UWj_KEkU_LdT1-Q', 'token_type': 'Bearer', 'expires_in': 7199} |
3 | AccessTokenResponse | {
"access_token": "DphIdzIw0lTyLVyX9gcMqywohcWRou0SNr3YDfAp",
"expires_in": 7199,
"grant_id": "c444e9c6-ab2e-47b6-889c-3bc3d3ce0ef3",
"id_token": {
"acr": "urn:ibm:security:policy:id:1",
"at_hash": "htu6c2ZQk7AwauCBWHS2QQ",
"aud": [
"5525f670-e6b3-41a9-afec-add4254aff3b"
],
"displayName": "Geetha D",
"email": "geethanjali.d@ibm.com",
"exp": 1568200696,
"ext": {
"tenantId": "oidc-prod-eu01a-test1.ice.ibmcloud.com"
},
"family_name": "D",
"given_name": "Geetha",
"groupIds": [
"allUsers",
"admin"
],
"iat": 1568193496,
"iss": "https://oidc-prod-eu01a-test1.ice.ibmcloud.com/oidc/endpoint/default",
"name": "Geetha D",
"nonce": "qCRMLieZC12Qi9xK",
"preferred_username": "geethanjali.d@ibm.com",
"realmName": "cloudIdentityRealm",
"s_hash": "K5vdlZwtuRdx_vGnJfYFXQ",
"sub": "640004KG4P",
"tenantId": "oidc-prod-eu01a-test1.ice.ibmcloud.com",
"uid": "640004KG4P",
"uniqueSecurityName": "640004KG4P",
"userType": "regular"
},
"scope": "openid",
"token_type": "Bearer"
}
|
3 | jws header | {'alg': 'RS256', 'typ': 'JWT', 'kid': 'server'} |
3 | phase | <--<-- 6 --- AccessToken -->--> |
3 | request | op_args: {'state': 'ooQgK2Qvo60U3MZF'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61915/authz_cb'} |
3 | do_access_token_request | kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61915/authz_cb', 'code': '7OcaGxrxFTFaMJ3plkepVzPA9zxbN4', 'state': 'ooQgK2Qvo60U3MZF', 'grant_type': 'authorization_code', 'client_id': '5525f670-e6b3-41a9-afec-add4254aff3b'}, 'state': 'ooQgK2Qvo60U3MZF', 'authn_method': 'client_secret_basic'}
|
3 | AccessTokenRequest | {
"code": "7OcaGxrxFTFaMJ3plkepVzPA9zxbN4",
"grant_type": "authorization_code",
"redirect_uri": "https://op.certification.openid.net:61915/authz_cb",
"state": "ooQgK2Qvo60U3MZF"
}
|
3 | request_url | https://oidc-prod-eu01a-test1.ice.ibmcloud.com/oidc/endpoint/default/token |
3 | request_http_args | {'headers': {'Authorization': 'Basic NTUyNWY2NzAtZTZiMy00MWE5LWFmZWMtYWRkNDI1NGFmZjNiOlRFOUwxY2wzdHc=', 'Content-Type': 'application/x-www-form-urlencoded'}} |
3 | request | grant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61915%2Fauthz_cb&code=7OcaGxrxFTFaMJ3plkepVzPA9zxbN4&state=ooQgK2Qvo60U3MZF |
3 | http response | url:https://oidc-prod-eu01a-test1.ice.ibmcloud.com/oidc/endpoint/default/token status_code:400 message:{"error_description":"CSIAQ0158E The [authorization_grant] of type [authorization_code] does not exist or is invalid.","error":"invalid_grant"}
|
3 | response | {'error_description': 'CSIAQ0158E The [authorization_grant] of type [authorization_code] does not exist or is invalid.', 'error': 'invalid_grant'} |
3 | event | Got expected error |
3 | TokenErrorResponse | {
"error": "invalid_grant",
"error_description": "CSIAQ0158E The [authorization_grant] of type [authorization_code] does not exist or is invalid."
}
|
3 | phase | <--<-- 7 --- Done -->--> |
3 | end | |
3 | assertion | CheckHTTPErrorResponse |
3 | condition | check-http-error-response: status=OK [Checks that an error code is either 400 or 401 which are the only ones accepted by OAuth2/OIDC.] |
3 | assertion | VerifyResponse |
3 | condition | verify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses] |
3 | condition | Done: status=OK |