flanksource / mission-control

Other
11 stars 2 forks source link

`/auth/whoami` endpoint is not returning the name of the user #1371

Open mainawycliffe opened 2 weeks ago

mainawycliffe commented 2 weeks ago

Returns an empty string instead

{
    "message": "success",
    "payload": {
        "hostname": "mission-control-7b88474bcb-h5dwh",
        "permissions": [
            {
                "subject": "everyone",
                "object": "database.kratos",
                "action": "*",
                "deny": true
            },
            {
                "subject": "admin",
                "object": "*",
                "action": "*"
            }
        ],
        "roles": [
            "admin",
            "everyone",
            "admin",
            "everyone"
        ],
        "user": {
            "id": "663f826b-6fbb-4c16-98d8-9418f708cb86",
            "name": "",
            "email": "admin@local",
            "properties": {}
        }
    }
}
mainawycliffe commented 2 weeks ago

This is related to https://github.com/flanksource/flanksource-ui/issues/2004