Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Process SAML role list attribute #15232

Closed
lkraider opened this issue Aug 22, 2019 · 0 comments · Fixed by #15277
Closed

[FEAT] Process SAML role list attribute #15232

lkraider opened this issue Aug 22, 2019 · 0 comments · Fixed by #15277
Assignees

Comments

@lkraider
Copy link

lkraider commented Aug 22, 2019

Request

This is a request to process a list of SAML attributes to define the list of roles a user will have in Rocket.Chat.

Problem

Currently the saml server code hardcodes it to the user role:

Example

This should set the roles user and admin to the user that is logging in (the attribute name is just a suggestion):

<saml:Attribute Name="RocketGlobalRole" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">user</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="RocketGlobalRole" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
    <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">admin</saml:AttributeValue>
</saml:Attribute>

Related:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants