Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

How to allow custom attributes in the SAML2 frontend? #492

Copy link
Copy link
@valpackett

Description

@valpackett
Issue body actions

To implement group support between Rauthy (OIDC IdP) and Part-DB (SAML SP), I've added

attributes:
  group:
    openid: [groups]
    saml: [group]

to internal_attributes (and it works!.. well, one group is picked after all but still).

But it's getting filtered out when converted from internal attrs, so I've also had to hack _get_approved_attributes like so:

        for aconv in attrconvs:
            if aconv.name_format == name_format:
                all_attributes = {v: None for v in aconv._fro.values()}
                all_attributes['group'] = None # HACK
                attribute_filter = list(idp_policy.restrict(all_attributes, sp_entity_id).keys())
                break

I couldn't figure out where the filter comes from, it doesn't seem to be changeable from the yaml configs, or is it just not documented?

Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.