Skip to content

Extra elements on get_sp_metadata() #439

@pgaca

Description

@pgaca

Hello there,
I'm using this package (through django-allauth) to implement a SSO. My application is acting as a Service Provider(SP) and I need to connect to an Identity Provider(IdP), delegating the identification the users to the IdP. This happens with SAML (python3-saml).

New Compliance rules in my IdP strongly recommend to add extra elements in the metadata of the SP ( the output of OneLogin_Saml2_Settings(...).get_sp_metadata() ).

New elements are of the type:

<md:EntityDescriptor...>
  <md:Extensions>
    <mdattr:EntityAttributes>
      <saml:Attribute
        NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
        Name="urn:oasis:names:tc:SAML:attribute:assurance-certification">
        <saml:AttributeValue>https://refeds.org/sirtfi2</saml:AttributeValue>
        <saml:AttributeValue>https://refeds.org/sirtfi</saml:AttributeValue>
      </saml:Attribute>
    </mdattr:EntityAttributes>
  </md:Extensions>
  ...
</md:EntityDescriptor>

Ive found not where in the doc how to do this. If possible, could you guide me to include element like this on the metadata?

Thanks in advance.

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