Test Info

Issuerhttps://cloud-api.loginradius.com/sso/oidc/v2/internal-mayank/oidctest
Profile[]
Test IDOP-nonce-code
Test descriptionID Token has nonce when requested for code flow
Timestamp2020-07-09T07:13:12Z

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://cloud-api.loginradius.com/sso/oidc/v2/internal-mayank/oidctest'}
1http response
url:https://cloud-api.loginradius.com/sso/oidc/v2/internal-mayank/oidctest/.well-known/openid-configuration status_code:200
1ProviderConfigurationResponse
{
    "acr_values_supported": [
        "loginradius:nist:level:1:re-auth"
    ],
    "authorization_endpoint": "https://cloud-api.loginradius.com/sso/oidc/v2/oidctest/authorize",
    "backchannel_logout_session_supported": false,
    "backchannel_logout_supported": false,
    "claims_parameter_supported": false,
    "claims_supported": [
        "phone_number_verified",
        "name",
        "LastName",
        "auth_time",
        "Uid",
        "Favicon",
        "website",
        "gender",
        "locale",
        "CustomFields.customerid",
        "birthdate",
        "acr",
        "FirstName",
        "email_verified",
        "phone_number",
        "profile",
        "email",
        "address",
        "updated_at",
        "picture",
        "zoneinfo",
        "Country",
        "given_name",
        "nickname",
        "preferred_username",
        "family_name",
        "UserName",
        "middle_name"
    ],
    "frontchannel_logout_session_supported": false,
    "frontchannel_logout_supported": false,
    "grant_types_supported": [
        "authorization_code",
        "refresh_token"
    ],
    "id_token_signing_alg_values_supported": [
        "RS256"
    ],
    "issuer": "https://cloud-api.loginradius.com/sso/oidc/v2/internal-mayank/oidctest",
    "jwks_uri": "https://cloud-api.loginradius.com/sso/oidc/v2/internal-mayank/oidctest/jwks",
    "request_parameter_supported": false,
    "request_uri_parameter_supported": true,
    "require_request_uri_registration": false,
    "response_modes_supported": [
        "query",
        "form_post",
        "fragment"
    ],
    "response_types_supported": [
        "code",
        "token",
        "id_token",
        "code token",
        "code id_token",
        "token id_token",
        "code token id_token"
    ],
    "revocation_endpoint": "https://cloud-api.loginradius.com/sso/oidc/v2/oidctest/revoke",
    "scopes_supported": [
        "openid",
        "email",
        "phone",
        "profile",
        "address"
    ],
    "subject_types_supported": [
        "public"
    ],
    "token_endpoint": "https://cloud-api.loginradius.com/sso/oidc/v2/oidctest/token",
    "token_endpoint_auth_methods_supported": [
        "client_secret_post",
        "client_secret_basic"
    ],
    "userinfo_endpoint": "https://cloud-api.loginradius.com/sso/oidc/v2/internal-mayank/oidctest/userinfo",
    "version": "3.0"
}
1phase<--<-- 2 --- Registration -->-->
1not expected to doDynamic registration
1phase<--<-- 3 --- AsyncAuthn -->-->
1AuthorizationRequest
{
    "client_id": "112563f6-1480-40b8-8e28-e072ca212c82",
    "nonce": "godmorgon",
    "redirect_uri": "https://op.certification.openid.net:61949/authz_cb",
    "response_type": "code",
    "scope": "openid",
    "state": "MweGbsrOhQydGwxs"
}
1redirect urlhttps://cloud-api.loginradius.com/sso/oidc/v2/oidctest/authorize?state=MweGbsrOhQydGwxs&nonce=godmorgon&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61949%2Fauthz_cb&client_id=112563f6-1480-40b8-8e28-e072ca212c82
1redirecthttps://cloud-api.loginradius.com/sso/oidc/v2/oidctest/authorize?state=MweGbsrOhQydGwxs&nonce=godmorgon&response_type=code&scope=openid&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61949%2Fauthz_cb&client_id=112563f6-1480-40b8-8e28-e072ca212c82
7responseResponse URL with query part
7response{'state': 'MweGbsrOhQydGwxs', 'code': 'f63196432e967bf5c249a6e3035af405:3c7e6891e5a93f8e0eeed722925bbd2fd097e7ea108e17ef147ba4201d3513b35f9c9531e0708992edbcce960c2bbe3d3ec1be75f4428c55a0565be32549393f69fccaa425cc5ee6b392d9e6a0a05162c36510a9ae577cdab16d03a27ae369b0643fa618b1cd6468b9411d342be96569'}
7response{'state': 'MweGbsrOhQydGwxs', 'code': 'f63196432e967bf5c249a6e3035af405:3c7e6891e5a93f8e0eeed722925bbd2fd097e7ea108e17ef147ba4201d3513b35f9c9531e0708992edbcce960c2bbe3d3ec1be75f4428c55a0565be32549393f69fccaa425cc5ee6b392d9e6a0a05162c36510a9ae577cdab16d03a27ae369b0643fa618b1cd6468b9411d342be96569'}
7AuthorizationResponse
{
    "code": "f63196432e967bf5c249a6e3035af405:3c7e6891e5a93f8e0eeed722925bbd2fd097e7ea108e17ef147ba4201d3513b35f9c9531e0708992edbcce960c2bbe3d3ec1be75f4428c55a0565be32549393f69fccaa425cc5ee6b392d9e6a0a05162c36510a9ae577cdab16d03a27ae369b0643fa618b1cd6468b9411d342be96569",
    "state": "MweGbsrOhQydGwxs"
}
7phase<--<-- 4 --- AccessToken -->-->
7requestop_args: {'state': 'MweGbsrOhQydGwxs'}, req_args: {'redirect_uri': 'https://op.certification.openid.net:61949/authz_cb'}
7do_access_token_request
kwargs:{'request_args': {'redirect_uri': 'https://op.certification.openid.net:61949/authz_cb', 'code': 'f63196432e967bf5c249a6e3035af405:3c7e6891e5a93f8e0eeed722925bbd2fd097e7ea108e17ef147ba4201d3513b35f9c9531e0708992edbcce960c2bbe3d3ec1be75f4428c55a0565be32549393f69fccaa425cc5ee6b392d9e6a0a05162c36510a9ae577cdab16d03a27ae369b0643fa618b1cd6468b9411d342be96569', 'state': 'MweGbsrOhQydGwxs', 'grant_type': 'authorization_code', 'client_id': '112563f6-1480-40b8-8e28-e072ca212c82'}, 'state': 'MweGbsrOhQydGwxs', 'authn_method': 'client_secret_basic'}
7AccessTokenRequest
{
    "code": "f63196432e967bf5c249a6e3035af405:3c7e6891e5a93f8e0eeed722925bbd2fd097e7ea108e17ef147ba4201d3513b35f9c9531e0708992edbcce960c2bbe3d3ec1be75f4428c55a0565be32549393f69fccaa425cc5ee6b392d9e6a0a05162c36510a9ae577cdab16d03a27ae369b0643fa618b1cd6468b9411d342be96569",
    "grant_type": "authorization_code",
    "redirect_uri": "https://op.certification.openid.net:61949/authz_cb",
    "state": "MweGbsrOhQydGwxs"
}
7request_urlhttps://cloud-api.loginradius.com/sso/oidc/v2/oidctest/token
7request_http_args{'headers': {'Authorization': 'Basic MTEyNTYzZjYtMTQ4MC00MGI4LThlMjgtZTA3MmNhMjEyYzgyOjc4ZDNkYmUzLTEwZDEtNDk3Yi05MzU3LThlZWQ0NTkzMzYzZA==', 'Content-Type': 'application/x-www-form-urlencoded'}}
7requestgrant_type=authorization_code&redirect_uri=https%3A%2F%2Fop.certification.openid.net%3A61949%2Fauthz_cb&code=f63196432e967bf5c249a6e3035af405%3A3c7e6891e5a93f8e0eeed722925bbd2fd097e7ea108e17ef147ba4201d3513b35f9c9531e0708992edbcce960c2bbe3d3ec1be75f4428c55a0565be32549393f69fccaa425cc5ee6b392d9e6a0a05162c36510a9ae577cdab16d03a27ae369b0643fa618b1cd6468b9411d342be96569&state=MweGbsrOhQydGwxs
7http response
url:https://cloud-api.loginradius.com/sso/oidc/v2/oidctest/token status_code:200
7response{'access_token': '66b48589-1cf6-4838-83f3-faba01a98dfd', 'token_type': 'Bearer', 'refresh_token': '902beb2d-c36c-4912-b742-5a4499f1167a', 'expires_in': 885, 'id_token': 'eyJhbGciOiJSUzI1NiIsImtpZCI6IjIwMSIsInR5cCI6IkpXVCJ9.eyJhZGRyZXNzIjp7ImNvdW50cnkiOm51bGwsImxvY2FsaXR5IjpudWxsLCJwb3N0YWxfY29kZSI6bnVsbCwicmVnaW9uIjpudWxsLCJzdHJlZXRfYWRkcmVzcyI6bnVsbH0sImFzZGZnaCI6IiIsImF1ZCI6IjExMjU2M2Y2LTE0ODAtNDBiOC04ZTI4LWUwNzJjYTIxMmM4MiIsImF1dGhfdGltZSI6MTU5NDI3ODc3OCwiYmlydGhkYXRlIjoiMTk4Ny0wNy0wOCIsImNfaGFzaCI6Ino2WWdKd1FNUTI5dTJOV3loSHdiSGciLCJjb3VudHJ5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r6q2j4r5Shnf97DBv4dYipXPG3GDnOT7pfzMYSAbrG0iyCyFkSjgdDuGjQLLn_6oj4dQ0U4YC_ntSZMIwmE_E162X_HHlc7l42r831ztxcfGq3_iMAGXpiLxjV7b9mZ8X88c96vPi3AKc2szbKoyCZDnNuJ_p9OcfUo-iQXfPTQ7cvwlJJkR32DcH028M-dLqxH-9Px_hkneISIhrGjU0Pjj5-uaPGvcWZ9FB7co68dnOA4dWq5E1XNJG0XOfnXlb61Y0TXPJkfDk3AwsGuuApQqWDikQZNfnoAEfDQP6ea7w'}
7AccessTokenResponse
{
    "access_token": "66b48589-1cf6-4838-83f3-faba01a98dfd",
    "expires_in": 885,
    "id_token": {
        "address": {
            "country": null,
            "locality": null,
            "postal_code": null,
            "region": null,
            "street_address": null
        },
        "aud": [
            "112563f6-1480-40b8-8e28-e072ca212c82"
        ],
        "auth_time": 1594278778,
        "birthdate": "1987-07-08",
        "c_hash": "z6YgJwQMQ29u2NWyhHwbHg",
        "country": null,
        "email": {
            "Type": "Primary",
            "Value": "cloudssotest@mailazy.com"
        },
        "email_verified": true,
        "exp": 1594279392,
        "family_name": "tesrt",
        "favicon1": null,
        "fname": "cloudssot",
        "gender": null,
        "given_name": "cloudssot",
        "iat": 1594278792,
        "iss": "https://cloud-api.loginradius.com/sso/oidc/v2/internal-mayank/oidctest",
        "jti": "f7956890-6cdb-4b30-9176-475516734c83",
        "lname": "tesrt",
        "locale": null,
        "middle_name": null,
        "name": "cloudssot tesrt",
        "nbf": 1594278792,
        "nickname": null,
        "nonce": "godmorgon",
        "phone_number": "+19029095714",
        "phone_number_verified": true,
        "picture": null,
        "preferred_username": "cloudssotest",
        "profile": null,
        "sub": "0b7f945b8c5f4a36a35bf49f7239bfa4",
        "uid": "0b7f945b8c5f4a36a35bf49f7239bfa4",
        "updated_at": 1563885109,
        "username": "cloudssotest",
        "website": null,
        "zoneinfo": null
    },
    "refresh_token": "902beb2d-c36c-4912-b742-5a4499f1167a",
    "token_type": "Bearer"
}
7jws header{'alg': 'RS256', 'kid': '201', 'typ': 'JWT'}
7phase<--<-- 5 --- Done -->-->
7end
7assertionVerifyNonce
7conditionverify-nonce: status=OK [Verifies that the nonce received in the IDToken is the same as was given in the Authorization Request]
7assertionVerifyResponse
7conditionverify-response: status=OK [Checks that the last response was one of a possible set of OpenID Connect Responses]
7conditionDone: status=OK

Result

PASSED