Test Info

Issuerhttps://isamfed.com:30443/test
Profile[]
Test IDOP-UserInfo-Endpoint
Test descriptionUserInfo Endpoint access with GET and bearer header
Timestamp2019-06-17T06:38:58Z

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 -->-->
0provider_config
kwargs:{'issuer': 'https://isamfed.com:30443/test'}
0http response
url:https://isamfed.com:30443/test/.well-known/openid-configuration status_code:200
0ProviderConfigurationResponse
{
    "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_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"
}
0phase<--<-- 2 --- Registration -->-->
0register
kwargs:{'response_types': ['code'], 'grant_types': ['authorization_code'], 'application_name': 'OIC test tool', 'application_type': 'web', 'redirect_uris': ['https://op.certification.openid.net:61164/authz_cb'], 'contacts': ['roland@example.com'], 'post_logout_redirect_uris': ['https://op.certification.openid.net:61164/logout'], 'url': 'https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition', 'jwks_uri': 'https://op.certification.openid.net:61164/static/jwks_61164.json', 'token_endpoint_auth_method': 'private_key_jwt'}
0RegistrationRequest
{
    "application_type": "web",
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code"
    ],
    "jwks_uri": "https://op.certification.openid.net:61164/static/jwks_61164.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61164/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61164/authz_cb"
    ],
    "response_types": [
        "code"
    ],
    "token_endpoint_auth_method": "private_key_jwt"
}
1http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition status_code:200
1RegistrationResponse
{
    "application_type": "web",
    "client_id": "CpUTpKmpYaTRA82KOAPt",
    "client_id_issued_at": 1560753536,
    "client_secret": "Yz1YTGEXYWqVYOiqGOX4",
    "client_secret_expires_at": 0,
    "contacts": [
        "roland@example.com"
    ],
    "grant_types": [
        "authorization_code"
    ],
    "jwks_uri": "https://op.certification.openid.net:61164/static/jwks_61164.json",
    "post_logout_redirect_uris": [
        "https://op.certification.openid.net:61164/logout"
    ],
    "redirect_uris": [
        "https://op.certification.openid.net:61164/authz_cb"
    ],
    "registration_access_token": "NqEalKwaibdvEpAgI3ws",
    "registration_client_uri": "https://isamfed.com:30443/mga/sps/oauth/oauth20/register/OIDCDefinition?client_id=CpUTpKmpYaTRA82KOAPt",
    "response_types": [
        "code"
    ],
    "token_endpoint_auth_method": "private_key_jwt"
}
1phase<--<-- 3 --- AsyncAuthn -->-->
1AuthorizationRequest
{
    "client_id": "CpUTpKmpYaTRA82KOAPt",
    "nonce": "9XaQrtcy1Ein0KQy",
    "redirect_uri": "https://op.certification.openid.net:61164/authz_cb",
    "response_type": "code",
    "scope": "openid",
    "state": "Z8hqIgoarT9ChLH2"
}
1redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=Z8hqIgoarT9ChLH2&nonce=9XaQrtcy1Ein0KQy&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61164%2Fauthz_cb&client_id=CpUTpKmpYaTRA82KOAPt
1redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=Z8hqIgoarT9ChLH2&nonce=9XaQrtcy1Ein0KQy&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61164%2Fauthz_cb&client_id=CpUTpKmpYaTRA82KOAPt
2responseResponse URL with query part
2response{'state': 'Z8hqIgoarT9ChLH2', 'code': 'Rz5VMungbI7c7qkRdXkqwDC4qiBT5W'}
2response{'state': 'Z8hqIgoarT9ChLH2', 'code': 'Rz5VMungbI7c7qkRdXkqwDC4qiBT5W'}
2AuthorizationResponse
{
    "code": "Rz5VMungbI7c7qkRdXkqwDC4qiBT5W",
    "state": "Z8hqIgoarT9ChLH2"
}
2phase<--<-- 4 --- AccessToken -->-->
2requestop_args: {'state': 'Z8hqIgoarT9ChLH2'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61164/authz_cb'}
2do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61164/authz_cb', 'code': 'Rz5VMungbI7c7qkRdXkqwDC4qiBT5W', 'state': 'Z8hqIgoarT9ChLH2', 'grant_type': 'authorization_code', 'client_id': 'CpUTpKmpYaTRA82KOAPt'}, 'state': 'Z8hqIgoarT9ChLH2', 'authn_method': 'private_key_jwt'}
2AccessTokenRequest
{
    "client_assertion": "eyJhbGciOiJSUzI1NiIsImtpZCI6Ind0MjVPZ3lSX256RzNPb1E3ZGFhMnJMNi1nTW5GZGZSekJqaFVWUHU4UlEifQ.eyJpc3MiOiAiQ3BVVHBLbXBZYVRSQTgyS09BUHQiLCAic3ViIjogIkNwVVRwS21wWWFUUkE4MktPQVB0IiwgImF1ZCI6IFsiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My9tZ2Evc3BzL29hdXRoL29hdXRoMjAvdG9rZW4iXSwgImp0aSI6ICJ4QUVTbHZUMTk4QkRpQVJFMVVCZUVyWmRLM2FveGZEOCIsICJleHAiOiAxNTYwNzU0MTM3LCAiaWF0IjogMTU2MDc1MzUzN30.QV7NQhDVZIkYQ8M068wVo43NPCtXIaiQZqGFX8fOk_BsiPSfm7r04LzW1AE__kbYCyrsem2vhnuIU7sWjezJC9cXMqna2VXRU45A3Ff8Dvih4_7FGqvER9dR5uO_O8MJfUNWyPoUbNcBSRD1Wz7TNxi67TBAAmZnHKkL8Tq0lx1lHCLdEn4k55yWuOHTasTKDSU5Hhoqi5SHA91Axk5D7hWSA8WlpDjo4gifYbn5bUSOlKdotvg8j8MXD2qdT8yDgWdWogXvwq2RISgUUwMacC0LJnOX0sgmeebvz2c_eY6kdpN9E4E5hCitnCcqIzFUNlYCOHMD0ZRSTcE8aCfK3Q",
    "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer",
    "code": "Rz5VMungbI7c7qkRdXkqwDC4qiBT5W",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61164/authz_cb",
    "state": "Z8hqIgoarT9ChLH2"
}
2request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/token
2request_http_args{'headers': {'Content-Type': 'application/x-www-form-urlencoded'}}
2requestgrant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61164%2Fauthz_cb&code=Rz5VMungbI7c7qkRdXkqwDC4qiBT5W&state=Z8hqIgoarT9ChLH2&client_assertion=eyJhbGciOiJSUzI1NiIsImtpZCI6Ind0MjVPZ3lSX256RzNPb1E3ZGFhMnJMNi1nTW5GZGZSekJqaFVWUHU4UlEifQ.eyJpc3MiOiAiQ3BVVHBLbXBZYVRSQTgyS09BUHQiLCAic3ViIjogIkNwVVRwS21wWWFUUkE4MktPQVB0IiwgImF1ZCI6IFsiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My9tZ2Evc3BzL29hdXRoL29hdXRoMjAvdG9rZW4iXSwgImp0aSI6ICJ4QUVTbHZUMTk4QkRpQVJFMVVCZUVyWmRLM2FveGZEOCIsICJleHAiOiAxNTYwNzU0MTM3LCAiaWF0IjogMTU2MDc1MzUzN30.QV7NQhDVZIkYQ8M068wVo43NPCtXIaiQZqGFX8fOk_BsiPSfm7r04LzW1AE__kbYCyrsem2vhnuIU7sWjezJC9cXMqna2VXRU45A3Ff8Dvih4_7FGqvER9dR5uO_O8MJfUNWyPoUbNcBSRD1Wz7TNxi67TBAAmZnHKkL8Tq0lx1lHCLdEn4k55yWuOHTasTKDSU5Hhoqi5SHA91Axk5D7hWSA8WlpDjo4gifYbn5bUSOlKdotvg8j8MXD2qdT8yDgWdWogXvwq2RISgUUwMacC0LJnOX0sgmeebvz2c_eY6kdpN9E4E5hCitnCcqIzFUNlYCOHMD0ZRSTcE8aCfK3Q&client_assertion_type=urn%3Aietf%3Aparams%3Aoauth%3Aclient-assertion-type%3Ajwt-bearer
3http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
3response{'access_token': 'PCNo03vIY7zLEOXiqrEG', 'refresh_token': 'RQhSySldqILvEN1k3WQiulmjgB9bKxCdxCLZUTKT', 'scope': 'openid', 'id_token': 'eyJraWQiOiJfdWhQZGVHclRXeG9iRmVIMFhiempKcFJyenAzQ0I5bmtueDF5RlYxRy0wIiwiYWxnIjoiUlMyNTYifQ.eyJydF9oYXNoIjoiTXMxSzhvZTYtcXd0TzVLckJlZThlUSIsIm5vbmNlIjoiOVhhUXJ0Y3kxRWluMEtReSIsImlhdCI6MTU2MDc1MzUzNywiaXNzIjoiaHR0cHM6Ly9pc2FtZmVkLmNvbTozMDQ0My90ZXN0IiwiYXRfaGFzaCI6IkhGWmhpM1Qtc0ZWQXlLdVBTQlVSRWciLCJzdWIiOiJ0ZXN0dXNlciIsImV4cCI6MTU2MDc1Njk1NywiYXVkIjoiQ3BVVHBLbXBZYVRSQTgyS09BUHQifQ.qnCYpp-0l_Su5DW8HFAmY-LH-c62WZAc19RRfoDKQRxWpFeB88gE93Y0Ysgw-7ATs6vBbCLiN1V4Gnrzk_f2K2l3-rt9_TiHooqoFg9BOoS-LiIB9fNPF26Ac5z3gFtgjuHaSAAsPwetGs-vqgb4CqVtJZ_0MXwjxCkpjAJTjEmQiM5VXfS1FINb-Wmwm4LvuU4PN45A02FRf6KrMjZusl9T4upRWut3wQS-AAPJg-CV3fgAy98lBDSqoS5V7RnEFLKxfBgihl3dGMX-6KfHlamFNSd113-6Z_QeiDC2GtE1yWpH6XSJRuc8pyLe5g1ier9JQAdzXENCHwlefZp8qA', 'token_type': 'bearer', 'expires_in': 3599}
3AccessTokenResponse
{
    "access_token": "PCNo03vIY7zLEOXiqrEG",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "HFZhi3T-sFVAyKuPSBUREg",
        "aud": [
            "CpUTpKmpYaTRA82KOAPt"
        ],
        "exp": 1560756957,
        "iat": 1560753537,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "9XaQrtcy1Ein0KQy",
        "rt_hash": "Ms1K8oe6-qwtO5KrBee8eQ",
        "sub": "testuser"
    },
    "refresh_token": "RQhSySldqILvEN1k3WQiulmjgB9bKxCdxCLZUTKT",
    "scope": "openid",
    "token_type": "bearer"
}
3jws header{'kid': '_uhPdeGrTWxobFeH0XbzjJpRrzp3CB9nknx1yFV1G-0', 'alg': 'RS256'}
3phase<--<-- 5 --- UserInfo -->-->
3do_user_info_request
kwargs:{'state': 'Z8hqIgoarT9ChLH2', 'method': 'GET', 'authn_method': 'bearer_header'}
3request{'body': None}
3request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo
3request_http_args{'headers': {'Authorization': 'Bearer PCNo03vIY7zLEOXiqrEG'}}
3http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/userinfo status_code:200
3OpenIDSchema
{
    "sub": "testuser"
}
3OpenIDSchema
{
    "sub": "testuser"
}
3phase<--<-- 6 --- 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