8000 Oauth 2, support role as string or array · Issue #840 · tchiotludo/akhq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Oauth 2, support role as string or array  #840
Closed
@l4crito

Description

@l4crito

Hi, whenever we try to login using pingf , if the user on pingf has only one role/group attached in oidc then it comes as a string instead of an array and akhq don't recognize that role/group, any advice on this ?

oidc clame retuns something like this, login fails
{
"client_id": "some_id",
"lastName": "some_last_name",
"firstName": "some_name ",
"roles": "some_role",
}

oidc clame retuns something like this, login succeeds
{
"client_id": "some_id",
"lastName": "some_last_name",
"firstName": "some_name ",
"roles": ["some_role","another_role"],
}

oidc config is like below

  oidc:
    enabled: true
    providers:
      pingf:
        label: "Login with Pingf"
        username-field: id
        groups-field: roles
        groups:
          - name: some_role
            groups:
              - admin

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendNeed a backend updateenhancementNew feature or requestloginLogin & Acls on AKHQ

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0