Ligare.identity.SAML2

Classes

SAML2Client(metadata, settings)

Overrides some default behavior of saml2.client.Saml2Client

class Ligare.identity.SAML2.SAML2Client(metadata, settings)[source]

Overrides some default behavior of saml2.client.Saml2Client

__init__(metadata, settings)[source]

metadata can be XML or a URL

get_saml_client(override_settings=None)[source]

Get an instance of saml2.client.Saml2Client and set the metadata from the IDP. Also set any default and overridden settings.

handle_user_login(saml_response)[source]

Parse a SAML2 request from the IDP and call the login_callback with the username and SAML2 AVA.

prepare_user_authentication(relay_state=None)[source]

Prepares a SAML2 IDP request and returns the IDP URL.