Skip to content

Please explain what attribute_map_dir maps are for? #53

@anentropic

Description

@anentropic

What are the fro attributes and what are the to attributes?

In basic.py you have:

MAP = {
    "identifier": "urn:oasis:names:tc:SAML:2.0:attrname-format:basic",
    "fro": {
        'urn:mace:dir:attribute-def:aRecord': 'aRecord',
        ...
    }
}

Is the left side a SAML attribute name and the right side a Python dict key? or they are both in the SAML realm?

I am setting up an IdP which needs to be compatible with assertions in the form:

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

I'm guessing my map would be:

MAP = {
    "identifier": "urn:oasis:names:tc:SAML:2.0:attrname-format:basic",
    "fro": {
        'FirstName': 'FirstName',
        ...
    }
}

Do I even need a map?

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