0 | phase | <--<-- 0 --- Webfinger -->--> |
0 | not expected to do | WebFinger |
0 | phase | <--<-- 1 --- Discovery -->--> |
0 | provider_config | kwargs:{'issuer': 'https://isamfed.com:30443/test'}
|
1 | http response | url:https://isamfed.com:30443/test/.well-known/openid-configuration status_code:200
|
1 | ProviderConfigurationResponse | {
"authorization_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/authorize",
"claims_parameter_supported": false,
"claims_supported": [
"realmName",
"preferred_username",
"given_name",
"uid",
"upn",
"groupIds",
"employee_id",
"name",
"tenantId",
"mobile_number",
"department",
"job_title",
"family_name",
"email"
],
"device_authorize_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/device_authorize",
"grant_types_supported": [
"urn:ietf:params:oauth:grant-type:jwt-bearer",
"implicit",
"urn:ietf:params:oauth:grant-type:saml2-bearer",
"urn:ietf:params:oauth:grant-type:device_code",
"client_credentials",
"password",
"authorization_code",
"refresh_token"
],
"id_token_encryption_alg_values_supported": [
"A128KW"
],
"id_token_encryption_enc_values_supported": [
"A128CBC-HS256"
],
"id_token_signing_alg_values_supported": [
"RS256"
],
"introspect_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/introspect",
"issuer": "https://isamfed.com:30443/test",
"jwks_uri": "https://isamfed.com:30443/mga/sps/jwks",
"name": "OIDCDefinition",
"poc": "https://isamfed.com:30443/mga/",
"registration_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition",
"request_parameter_supported": true,
"request_uri_parameter_supported": true,
"require_request_uri_registration": false,
"response_modes_supported": [
"fragment",
"form_post"
],
"response_types_supported": [
"token",
"id_token",
"token id_token",
"code",
"code id_token",
"code token id_token",
"code token",
"none"
],
"revocation_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/revoke",
"subject_types_supported": [
"public"
],
"token_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/token",
"token_endpoint_auth_methods_supported": [
"private_key_jwt",
"client_secret_post",
"client_secret_basic"
],
"user_authorize_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/user_authorize",
"userinfo_endpoint": "https://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo",
"userinfo_signing_alg_values_supported": [
"RS256"
],
"version": "3.0"
}
|
1 | phase | <--<-- 2 --- Registration -->--> |
1 | not expected to do | Dynamic registration |
1 | phase | <--<-- 3 --- Note -->--> |
1 | phase | <--<-- 4 --- AsyncAuthn -->--> |
1 | AuthorizationRequest | {
"client_id": "clientID",
"nonce": "45C7WiOWAL7JErK1",
"redirect_uri": "https://op.certification.openid.net:61764/authz_cb",
"response_type": "code",
"scope": "openid",
"state": "cdyNyizpjtXcziS3"
}
|
1 | redirect url | https://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=cdyNyizpjtXcziS3&nonce=45C7WiOWAL7JErK1&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61764%2Fauthz_cb&client_id=clientID |
1 | redirect | https://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=cdyNyizpjtXcziS3&nonce=45C7WiOWAL7JErK1&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61764%2Fauthz_cb&client_id=clientID |
2 | response | Response URL with query part |
2 | response | {'state': 'cdyNyizpjtXcziS3', 'code': 'kEFIh1UeFD3BpkaDy03foQuyC41UG0'} |
2 | response | {'state': 'cdyNyizpjtXcziS3', 'code': 'kEFIh1UeFD3BpkaDy03foQuyC41UG0'} |
2 | AuthorizationResponse | {
"code": "kEFIh1UeFD3BpkaDy03foQuyC41UG0",
"state": "cdyNyizpjtXcziS3"
}
|
2 | phase | <--<-- 5 --- AccessToken -->--> |
2 | request | op_args: {'state': 'cdyNyizpjtXcziS3'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61764/authz_cb'} |
2 | do_access_token_request | kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61764/authz_cb', 'code': 'kEFIh1UeFD3BpkaDy03foQuyC41UG0', 'state': 'cdyNyizpjtXcziS3', 'grant_type': 'authorization_code', 'client_id': 'clientID'}, 'state': 'cdyNyizpjtXcziS3', 'authn_method': 'client_secret_basic'}
|
2 | AccessTokenRequest | {
"code": "kEFIh1UeFD3BpkaDy03foQuyC41UG0",
"grant_type": "authorization_code",
"redirect_uri": "https://op.certification.openid.net:61764/authz_cb",
"state": "cdyNyizpjtXcziS3"
}
|
2 | request_url | https://isamfed.com:30443/mga/sps/oauth/oauth20/token |
2 | request_http_args | {'headers': {'Authorization': 'Basic Y2xpZW50SUQ6Y2xpZW50U2VjcmV0', 'Content-Type': 'application/x-www-form-urlencoded'}} |
2 | request | grant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61764%2Fauthz_cb&code=kEFIh1UeFD3BpkaDy03foQuyC41UG0&state=cdyNyizpjtXcziS3 |
3 | http response | url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
|
3 | response | {'access_token': 'dx9pYDVmz3j3DvkUUK1O', 'refresh_token': '2InSpBFOIjjIJX4mtIjkvYVb3fYJxh86p4cEXhgA', 'scope': 'openid', 'id_token': 'eyJhbGciOiJBMTI4S1ciLCJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiY3R5IjoiSldUIn0.O4H5frhGP5OQevTInsi0CpBDpt2Wy4GeoogSjyNXIFV6qRwPF1PHAQ.0CqNdMMW2EKVu-eVAhJa3g._Hab0AC5jFMXfZ1x76KVzzwoVLWZj5NEVVj2NmPjM9a4akBXXwsHpNDwPUw5zwNgIUhrByURkzbtIwutxetPHEboba_oeqDSY2EtC7lMK2VbblZ4cXCDM6KODxLLl6i1vcrkzFsMHHhAHgPwC5fKiBveuoCGC9MVRE0I9m4thy1OlqMGr8hgZ9HOVi0SMwT7Lr-FJQgnb2Icu74vqU7ybg-2YBBuBLVmyWsSTWkwEn4LHhtYyQvXS6rEcW3xv-aC6HVy0Otd3dTVNeIgzBOEprjpqRVQHV2tBMV-PU_Kf1CNGwWEV3BbAqAJCb9AnqZxGZtfSFrFnGOiPJJ27XP1v-1DnBjvfQ_sHj-Jd3pCSLzmA8zwOzno6hFo-roB4tNXZP0YR3ULZtBrY0mpX2tWRnNAER4M0GmZnsEn5wgv09TMjkvPf87lRrU8qdO1NfZj050CD0S-KYC-V78xzfbGBYCK6kXyscrrxmT_NkAdfeJVJidfGRDagWXLK0-2ciPVhwDgjJlaN4CPoGcex9q4aksRGzZ3myMriHtXrpzS4yAUdshmSKlu71QiuJCdycN7KIbZSVFF2yau3qnFcApho03bzyqAbhsCX8brvxfukDcmroyCDIpaoA8CzJk0zqBYoFT0T_8JD03vm873dY-qDuIN7ScGngWutjS3IxyRt8QgVR9x5FqfhxQl6gnEOykqnP44_RSdE2CYPa9GQmMY47YCD3Hpjp75jzWijn5y9TV1LQHjefWjXV3OGOztTvJQ9DrAdpII2ERzb5Dl7nBifWGQhDcG7GXe1aTCCvpM55M7ATt1rOaKQmwlKuF8DFA5lkXoX2fhxbeudWjD9cuCNBF5rP0wG_zQcHpDgcjnImnkX9_7AL9LS_g_p6YIp-b3kIgGvYAiY06xe41iyeyUmGff9OVkub0Sq-LcNPKUlMSi2kQtsd7KnpNmgrh9KYs-.CRr4192iV4PkivmIgQQldw', 'token_type': 'bearer', 'expires_in': 3599} |
3 | AccessTokenResponse | {
"access_token": "dx9pYDVmz3j3DvkUUK1O",
"expires_in": 3599,
"id_token": {
"at_hash": "MOifmrfPdLA_7X82eLnhWQ",
"aud": [
"clientID"
],
"exp": 1560834634,
"iat": 1560831214,
"iss": "https://isamfed.com:30443/test",
"nonce": "45C7WiOWAL7JErK1",
"rt_hash": "s-ubn9nwIiuzuMA_ZekARA",
"sub": "testuser"
},
"refresh_token": "2InSpBFOIjjIJX4mtIjkvYVb3fYJxh86p4cEXhgA",
"scope": "openid",
"token_type": "bearer"
}
|
3 | jws header | {'kid': '_uhPdeGrTWxobFeH0XbzjJpRrzp3CB9nknx1yFV1G-0', 'alg': 'RS256'} |
3 | jwe header | {'alg': 'A128KW', 'enc': 'A128CBC-HS256', 'cty': 'JWT'} |
3 | phase | <--<-- 6 --- AccessToken -->--> |
3 | request | op_args: {'state': 'cdyNyizpjtXcziS3'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61764/authz_cb'} |
3 | do_access_token_request | kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61764/authz_cb', 'code': 'kEFIh1UeFD3BpkaDy03foQuyC41UG0', 'state': 'cdyNyizpjtXcziS3', 'grant_type': 'authorization_code', 'client_id': 'clientID'}, 'state': 'cdyNyizpjtXcziS3', 'authn_method': 'client_secret_basic'}
|
3 | AccessTokenRequest | {
"code": "kEFIh1UeFD3BpkaDy03foQuyC41UG0",
"grant_type": "authorization_code",
"redirect_uri": "https://op.certification.openid.net:61764/authz_cb",
"state": "cdyNyizpjtXcziS3"
}
|
3 | request_url | https://isamfed.com:30443/mga/sps/oauth/oauth20/token |
3 | request_http_args | {'headers': {'Authorization': 'Basic Y2xpZW50SUQ6Y2xpZW50U2VjcmV0', 'Content-Type': 'application/x-www-form-urlencoded'}} |
3 | request | grant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61764%2Fauthz_cb&code=kEFIh1UeFD3BpkaDy03foQuyC41UG0&state=cdyNyizpjtXcziS3 |
4 | http response | url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:400 message:{"error_description":"FBTOAU211E The [authorization_grant] received of type [authorization_code] does not exist.","error":"invalid_grant"}
|
4 | response | {'error_description': 'FBTOAU211E The [authorization_grant] received of type [authorization_code] does not exist.', 'error': 'invalid_grant'} |
4 | event | Got expected error |
4 | TokenErrorResponse | {
"error": "invalid_grant",
"error_description": "FBTOAU211E The [authorization_grant] received of type [authorization_code] does not exist."
}
|
4 | phase | <--<-- 7 --- UserInfo -->--> |
4 | do_user_info_request | kwargs:{'state': 'cdyNyizpjtXcziS3', 'method': 'GET', 'authn_method': 'bearer_header'}
|
4 | request | {'body': None} |
4 | request_url | https://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo |
4 | request_http_args | {'headers': {'Authorization': 'Bearer dx9pYDVmz3j3DvkUUK1O'}} |
4 | http response | url:https://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo status_code:401 message:{"error_description":"FBTOAU211E The [access_token] received of type [bearer] does not exist.","error":"invalid_token"}
|
4 | event | Got expected error |
4 | ErrorResponse | {
"error": "invalid_token",
"error_description": "Server returned 401 Unauthorized without a WWW-Authenticate header which is required as per https://tools.ietf.org/html/rfc6750#section-3"
}
|
4 | ErrorResponse | {
"error": "invalid_token",
"error_description": "Server returned 401 Unauthorized without a WWW-Authenticate header which is required as per https://tools.ietf.org/html/rfc6750#section-3"
}
|
4 | phase | <--<-- 8 --- Done -->--> |
4 | end | |
4 | assertion | VerifyResponse |
4 | condition | verify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses] |
4 | condition | Done: status=OK |