You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: onelogin/saml/AuthRequest.py
+29-22Lines changed: 29 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -7,22 +7,29 @@
7
7
fromlxmlimportetree
8
8
fromlxml.builderimportElementMaker
9
9
10
-
defcreate(
11
-
_clock=None,
12
-
_uuid=None,
13
-
_zlib=None,
14
-
_base64=None,
15
-
_urllib=None,
16
-
**kwargs
17
-
):
18
-
"""Create a URL string which can be used to redirect a samlp:AuthnRequest to the identity provider.
19
-
Return a URL string containing the idp_sso_target_url and a deflated, base64-encoded, url-encoded (in that order) samlp:AuthnRequest XML element as the value of the SAMLRequest parameter.
"""Create a URL string which can be used to redirect a samlp:AuthnRequest
14
+
to the identity provider. Return a URL string containing the
15
+
idp_sso_target_url and a deflated, base64-encoded, url-encoded
16
+
(in that order) samlp:AuthnRequest XML element as the value of the
17
+
SAMLRequest parameter.
20
18
21
19
Keyword arguments:
22
-
assertion_consumer_service_url -- The URL at which the SAML assertion should be received.
23
-
issuer -- The name of your application. Some identity providers might need this to establish the identity of the service provider requesting the login.
24
-
name_identifier_format -- The format of the username required by this application. If you need the email address, use "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress". See http://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf section 8.3 for other options. Note that the identity provider might not support all options.
25
-
idp_sso_target_url -- The URL to which the authentication request should be sent. This would be on the identity
20
+
assertion_consumer_service_url -- The URL at which the SAML assertion
21
+
should be received.
22
+
issuer -- The name of your application. Some identity providers might need
23
+
this to establish the identity of the service provider requesting
24
+
the login.
25
+
name_identifier_format -- The format of the username required by this
0 commit comments