Test Info

Issuerhttps://isamfed.com:30443/test
Profile[]
Test IDOP-nonce-code
Test descriptionID Token has nonce when requested for code flow
Timestamp2019-06-18T04:11:33Z

Conditions


verify-nonce: status=OK [Verifies that the nonce received in the IDToken is the same as was given in the Authorization Request]
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_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"
}
0phase<--<-- 2 --- Registration -->-->
0not expected to doDynamic registration
0phase<--<-- 3 --- AsyncAuthn -->-->
0AuthorizationRequest
{
    "client_id": "clientID",
    "nonce": "godmorgon",
    "redirect_uri": "https://op.certification.openid.net:61764/authz_cb",
    "response_type": "code",
    "scope": "openid",
    "state": "EkFoix1hFNNw4Pra"
}
0redirect urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=EkFoix1hFNNw4Pra&nonce=godmorgon&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61764%2Fauthz_cb&client_id=clientID
0redirecthttps://isamfed.com:30443/mga/sps/oauth/oauth20/authorize?state=EkFoix1hFNNw4Pra&nonce=godmorgon&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61764%2Fauthz_cb&client_id=clientID
1responseResponse URL with query part
1response{'state': 'EkFoix1hFNNw4Pra', 'code': 'F9M4Pdj3QY9fmfiIQ2HOYI5pZhuZs5'}
1response{'state': 'EkFoix1hFNNw4Pra', 'code': 'F9M4Pdj3QY9fmfiIQ2HOYI5pZhuZs5'}
1AuthorizationResponse
{
    "code": "F9M4Pdj3QY9fmfiIQ2HOYI5pZhuZs5",
    "state": "EkFoix1hFNNw4Pra"
}
1phase<--<-- 4 --- AccessToken -->-->
1requestop_args: {'state': 'EkFoix1hFNNw4Pra'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61764/authz_cb'}
1do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61764/authz_cb', 'code': 'F9M4Pdj3QY9fmfiIQ2HOYI5pZhuZs5', 'state': 'EkFoix1hFNNw4Pra', 'grant_type': 'authorization_code', 'client_id': 'clientID'}, 'state': 'EkFoix1hFNNw4Pra', 'authn_method': 'client_secret_basic'}
1AccessTokenRequest
{
    "code": "F9M4Pdj3QY9fmfiIQ2HOYI5pZhuZs5",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61764/authz_cb",
    "state": "EkFoix1hFNNw4Pra"
}
1request_urlhttps://isamfed.com:30443/mga/sps/oauth/oauth20/token
1request_http_args{'headers': {'Authorization': 'Basic Y2xpZW50SUQ6Y2xpZW50U2VjcmV0', 'Content-Type': 'application/x-www-form-urlencoded'}}
1requestgrant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61764%2Fauthz_cb&code=F9M4Pdj3QY9fmfiIQ2HOYI5pZhuZs5&state=EkFoix1hFNNw4Pra
2http response
url:https://isamfed.com:30443/mga/sps/oauth/oauth20/token status_code:200
2response{'access_token': '3NedzidTVEJatuwBuDjd', 'refresh_token': 'eorCw5vJog4as0v4wavA2ZFee50lng85ABSZeEt9', 'scope': 'openid', 'id_token': 'eyJhbGciOiJBMTI4S1ciLCJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiY3R5IjoiSldUIn0.UYhq9Do6HXiB5hxLZChsCncV2IWTJm3cEXQ2RH4L8g2LJViQHvi68g.rqvhJSzD7HdqO7-FDtNDgA.ZRRLDL175CuZwo7I9UQrU74hE2_QIEZe-4pTx3QYvD2x4UUfD5GFFCDrwwBqD8l4HEAfwDNlMt4JS9S1PcYDTkUC1lu3PZ026ZJHdCAhqGKiGb5WbDbghp0YyVPF4XdnrnYl8ltfYoTkyzFyDVGnE4540kODSREn-J9BSVri5OGisQ5Hj0mDROD_pfE1WAjs0TK9a4ilsrTWwOo96baJad3dCyXauyipeKlLr5BrQ5PBVNUe1mGHUqYppcI-iRDi4z99Zv5gbweU5bknJM6DqQddZ7AEYSWHw2DVBnNjd9-C1DkJjEjhN6KXoaUoE6BMJfGVm65ur2HQhlZ-9cU7QR1Uj4KUoHAs2S6TR6Adggu_UF74fmyBev5k85XxoZRukSweAFnkpytQA8rWHhet_NGSbdUipnsG6QfGEOr_w1MWadHDvRiy8DBQKLA9a_tXF4MT-i3hKLh_7SXs62g1veJBoKCuOIjk875pfi3lgYq-gSi9CSK0_Ctj6q2rfl9TL0Gp_F57vG5h-JN8BUr2wjT0FM_vgFSYRfkZu3pw8wsMd6yS6hrrKx8spuJJTxWdiAPSjzVrfH_U3Nga7r9K0t-1QTb8U8CN-WUdYfp3FzqGhWYb75hWjXBZQbrQId7uB5jf1J6Nz6Mi9-7Gy9KxmyHA3bbsM2BDahR3Kym8AnR_S6FwE23E2T-LbCZsduDXFwRLoO9WK-64BTAXySXqXLeDc-Wq_NTXIh16ocSOquclrKxf_iAcUcTJr0TLVK70a3CTSbjWejzfrGuggbEs-lCgAoDhE9W2NWEiKl2MMxtKxbnFwpLIlKxg0EXnc_uPbBcn17-cE0JGDu8ItJewQymzRPIOlp3EAMMfMhisQ5RwsSLKrutfAhm4jC_Vg5gVy57fBSKYQEuJREKLx79JyTaVSaQ7jfE1j9O1k01bDGw.ov9kexS_I8PZ1p7Sh2jsqA', 'token_type': 'bearer', 'expires_in': 3599}
2AccessTokenResponse
{
    "access_token": "3NedzidTVEJatuwBuDjd",
    "expires_in": 3599,
    "id_token": {
        "at_hash": "6VcovaF_nfpFgrJ7xMeJZQ",
        "aud": [
            "clientID"
        ],
        "exp": 1560834513,
        "iat": 1560831093,
        "iss": "https://isamfed.com:30443/test",
        "nonce": "godmorgon",
        "rt_hash": "CK5cVJxn-JmkTx2Zu5Xfgg",
        "sub": "testuser"
    },
    "refresh_token": "eorCw5vJog4as0v4wavA2ZFee50lng85ABSZeEt9",
    "scope": "openid",
    "token_type": "bearer"
}
2jws header{'kid': '_uhPdeGrTWxobFeH0XbzjJpRrzp3CB9nknx1yFV1G-0', 'alg': 'RS256'}
2jwe header{'alg': 'A128KW', 'enc': 'A128CBC-HS256', 'cty': 'JWT'}
2phase<--<-- 5 --- Done -->-->
2end
2assertionVerifyNonce
2conditionverify-nonce: status=OK [Verifies that the nonce received in the IDToken is the same as was given in the Authorization Request]
2assertionVerifyResponse
2conditionverify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
2conditionDone: status=OK

Result

PASSED