Skip to content

Refactor userInfo to provide accounts data #196

@theely

Description

@theely

The FirecREST UI utilizes the /userInfo endpoint to render the account/project drop-down.
However, the /userinfo data only contains the group information, that at CSCS happens to be aligned with the accounts.

    "user": {
        "id": "1001",
        "name": "fireuser"
    },
    "group": {
        "id": "100",
        "name": "users"
    },
    "groups": [
        {
            "id": "100",
            "name": "users"
        }
    ]
}

Instead, we should add a dedicated field for accounts only:

{
    "user": {
        "id": "1001",
        "name": "fireuser"
    },
    "accounts": [
        {
            "name": "staff"
             "default": true
        }
    ]
    "groups": [
        {
            "id": "100",
            "name": "users"
             "default": true
        }
    ]
}

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