Skip to content

Login response incorrect #6

@jmgasper

Description

@jmgasper

The login response is incorrect and kind of weirdly formatted. We don't need:

  • Redundant information
  • Any values with a https://topcoder.com/claims/ prefix - that's added on during the login flow, but not needed in the login response. (I have fixed this temporarily because it was a blocker)

We need:

  • country
  • active
  • regsource

v3 response:

{
            "id": "305384",
            "modifiedBy": null,
            "modifiedAt": "2025-03-12T17:44:13.867Z",
            "createdBy": null,
            "createdAt": "2002-11-25T14:31:35.000Z",
            "handle": "mess",
            "email": "jmgasper+mess@gmail.com",
            "firstName": "dsadsadas asdf asdf",
            "lastName": "dsa",
            "credential": {
                "activationCode": "3WAI1RPC",
                "resetToken": null,
                "resendToken": null,
                "activationBlocked": null,
                "canResend": null,
                "hasPassword": true
            },
            "profiles": null,
            "status": "A",
            "country": null,
            "regSource": null,
            "utmSource": null,
            "utmMedium": null,
            "utmCampaign": null,
            "roles": [
                {
                    "id": "5",
                    "modifiedBy": null,
                    "modifiedAt": null,
                    "createdBy": null,
                    "createdAt": null,
                    "roleName": "Topcoder User",
                    "subjects": null
                },
                {
                    "id": "1",
                    "modifiedBy": null,
                    "modifiedAt": "2016-03-03T00:40:27.000Z",
                    "createdBy": null,
                    "createdAt": "2016-03-03T00:40:27.000Z",
                    "roleName": "administrator",
                    "subjects": null
                },
                {
                    "id": "8",
                    "modifiedBy": null,
                    "modifiedAt": null,
                    "createdBy": null,
                    "createdAt": null,
                    "roleName": "Connect Manager",
                    "subjects": null
                },
                {
                    "id": "135",
                    "modifiedBy": "88778750",
                    "modifiedAt": "2022-08-08T16:34:04.000Z",
                    "createdBy": "88778750",
                    "createdAt": "2022-08-08T16:34:04.000Z",
                    "roleName": "Gamification Admin",
                    "subjects": null
                },
                {
                    "id": "123",
                    "modifiedBy": "23274118",
                    "modifiedAt": "2019-10-09T08:45:08.000Z",
                    "createdBy": "23274118",
                    "createdAt": "2019-10-09T08:45:08.000Z",
                    "roleName": "Group Manager",
                    "subjects": null
                },
                {
                    "id": "137",
                    "modifiedBy": "305384",
                    "modifiedAt": "2023-02-22T19:12:25.000Z",
                    "createdBy": "305384",
                    "createdAt": "2023-02-22T19:12:25.000Z",
                    "roleName": "Topcoder Talent",
                    "subjects": null
                },
                {
                    "id": "144",
                    "modifiedBy": "305384",
                    "modifiedAt": "2024-01-24T14:30:21.000Z",
                    "createdBy": "305384",
                    "createdAt": "2024-01-24T14:30:21.000Z",
                    "roleName": "TaxForm Admin",
                    "subjects": null
                },
                {
                    "id": "140",
                    "modifiedBy": "305384",
                    "modifiedAt": "2024-01-24T14:29:29.000Z",
                    "createdBy": "305384",
                    "createdAt": "2024-01-24T14:29:29.000Z",
                    "roleName": "Payment Admin",
                    "subjects": null
                },
                {
                    "id": "141",
                    "modifiedBy": "305384",
                    "modifiedAt": "2024-01-24T14:29:50.000Z",
                    "createdBy": "305384",
                    "createdAt": "2024-01-24T14:29:50.000Z",
                    "roleName": "Payment Viewer",
                    "subjects": null
                },
                {
                    "id": "102",
                    "modifiedBy": "40153455",
                    "modifiedAt": "2017-07-14T08:51:17.000Z",
                    "createdBy": "40153455",
                    "createdAt": "2017-07-14T08:51:17.000Z",
                    "roleName": "A",
                    "subjects": null
                },
                {
                    "id": "41",
                    "modifiedBy": "40153455",
                    "modifiedAt": "2017-06-19T21:19:14.000Z",
                    "createdBy": "40153455",
                    "createdAt": "2017-06-19T21:19:14.000Z",
                    "roleName": "",
                    "subjects": null
                },
                {
                    "id": "210",
                    "modifiedBy": "40029484",
                    "modifiedAt": "2025-06-06T08:07:44.000Z",
                    "createdBy": "40029484",
                    "createdAt": "2025-06-06T08:07:44.000Z",
                    "roleName": "new the role",
                    "subjects": null
                }
            ],
            "mfaEnabled": null,
            "diceEnabled": null,
            "primaryRole": null,
            "ssoLogin": false,
            "active": true,
            "profile": null,
            "emailActive": true
        }

v6 response:


{
    "user_id": "305384",
    "email": "jmgasper+mess@gmail.com",
    "email_verified": true,
    "name": "dsadsadas asdf asdf dsa",
    "given_name": "dsadsadas asdf asdf",
    "family_name": "dsa",
    "nickname": "mess",
    "picture": null,
    "https://topcoder.com/claims/userId": 305384,
    "https://topcoder.com/claims/handle": "mess",
    "https://topcoder.com/claims/roles": [
        "administrator",
        "Topcoder User",
        "Connect Manager",
        "",
        "A",
        "Group Manager",
        "Gamification Admin",
        "Topcoder Talent",
        "Payment Admin",
        "Payment Viewer",
        "TaxForm Admin",
        "new the role"
    ],
    "https://topcoder.com/claims/status": "A",
    "https://topcoder.com/claims/mfa_enabled": false,
    "https://topcoder.com/claims/dice_enabled": false,
    "last_login": "2025-03-12T17:44:13.867Z",
    "created_at": "2002-11-25T14:31:35.000Z",
    "updated_at": "2025-03-12T17:44:13.867Z"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions