Skip to content

Automatic SAML Role mapping #1038

Description

@Luctum

Hi !

Is your feature request related to a problem? Please describe.
I'm currently setting up an autonomous qpixel instance. I would like to map roles to the admin and moderator roles already in QPixel. Currently I have to manualy setup role.

Describe the solution you'd like
I would like to have a mapping for roles when connecting with SSO (ex: my XML returns an attribute "roles" with values like "COMPANY_GLOBAL_ADMINISTRATOR").
Note that the role name is tied to the company i'm working with, that's why I need to be able to use custom role values.
This mapping could maybe be made in a separate yaml file or in attribute_map.yml for example

In my specific case, I only want to be able to map global administrators and global moderators automaticaly for specific users

Describe alternatives you've considered
The only alternative I have right now is to remap every roles for every user manually.
I tried to edit the saml_init.rb file but I could not manage to add the new property (I'm not really familiar with Ruby). Maybe if someone could explain me globaly how the mapping of the other attributes works in QPixel, I could try to implement this on my instance, test, and then make a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: backendChanges to server-side codecomplexity: unassessedNeeds further developer investigation before complexity/feasibility can be determined.priority: medium

    Fields

    No fields configured for Change Request.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions