WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

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

@valpackett

Description

@valpackett

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?

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