Skip to content

Wrong signature documentation for get_attribute() #223

@spaceone

Description

@spaceone

The docs on OneLogin_Saml2_Auth.get_attribute() say that it returns a string, while it actually returns a list

 |  get_attribute(self, name)
 |      Returns the requested SAML attribute.
 |      
 |      :param name: Name of the attribute
 |      :type name: string
 |      
 |      :returns: Attribute value if exists or None
 |      :rtype: string
(Pdb) response.get_attribute('urn:oid:0.9.2342.19200300.100.1.1')
['Administrator']

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