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: README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,13 @@ You can install it executing:
96
96
If you want to know how a project can handle python packages review this [guide](https://packaging.python.org/en/latest/tutorial.html) and review this [sampleproject](https://github.com/pypa/sampleproject)
97
97
98
98
99
+
Security warning
100
+
----------------
101
+
102
+
In production, the **strict** parameter MUST be set as **"true"**. Otherwise
103
+
your environment is not secure and will be exposed to attacks.
104
+
105
+
99
106
Getting started
100
107
---------------
101
108
@@ -447,6 +454,10 @@ We can set a 'return_to' url parameter to the login function and that will be co
447
454
target_url ='https://example.com'
448
455
auth.login(return_to=target_url)
449
456
```
457
+
The login method can recieve 2 more optional parameters:
458
+
459
+
* force_authn When true the AuthNReuqest will set the ForceAuthn='true'
460
+
* is_passive When true the AuthNReuqest will set the Ispassive='true'
Copy file name to clipboardExpand all lines: docs/saml2/saml2.html
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -232,13 +232,18 @@ <h1>OneLogin saml2 Module<a class="headerlink" href="#onelogin-saml2-package" ti
232
232
233
233
<dlclass="method">
234
234
<dtid="saml2.auth.OneLogin_Saml2_Auth.login">
235
-
<ttclass="descname">login</tt><big>(</big><em>return_to=None</em><big>)</big><aclass="reference internal" href="_modules/saml2/auth.html#OneLogin_Saml2_Auth.login"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#saml2.auth.OneLogin_Saml2_Auth.login" title="Permalink to this definition">¶</a></dt>
235
+
<ttclass="descname">login</tt><big>(</big><em>return_to=None</em>, <em>force_authn=False</em>, <em>is_passive=False</em><big>)</big><aclass="reference internal" href="_modules/saml2/auth.html#OneLogin_Saml2_Auth.login"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#saml2.auth.OneLogin_Saml2_Auth.login" title="Permalink to this definition">¶</a></dt>
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><strong>return_to</strong> (<em>string</em>) – Optional argument. The target URL the user should be redirected to after login.</td>
<emclass="property">class </em><ttclass="descclassname">onelogin.saml2.authn_request.</tt><ttclass="descname">OneLogin_Saml2_Authn_Request</tt><big>(</big><em>settings</em><big>)</big><aclass="reference internal" href="_modules/saml2/authn_request.html#OneLogin_Saml2_Authn_Request"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#saml2.authn_request.OneLogin_Saml2_Authn_Request" title="Permalink to this definition">¶</a></dt>
354
+
<emclass="property">class </em><ttclass="descclassname">onelogin.saml2.authn_request.</tt><ttclass="descname">OneLogin_Saml2_Authn_Request</tt><big>(</big><em>settings</em>, <em>force_authn=False</em>, <em>is_passive=False</em><big>)</big><aclass="reference internal" href="_modules/saml2/authn_request.html#OneLogin_Saml2_Authn_Request"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#saml2.authn_request.OneLogin_Saml2_Authn_Request" title="Permalink to this definition">¶</a></dt>
<ttclass="descname">get_request</tt><big>(</big><big>)</big><aclass="reference internal" href="_modules/saml2/authn_request.html#OneLogin_Saml2_Authn_Request.get_request"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink" href="#saml2.authn_request.OneLogin_Saml2_Authn_Request.get_request" title="Permalink to this definition">¶</a></dt>
0 commit comments