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
Adjusted acs endpoint to extract NameQualifier and SPNameQualifier from SAMLResponse. Adjusted single logout service to provide NameQualifier and SPNameQualifier to logout method. Add getNameIdNameQualifier to Auth and SamlResponse. Extend logout method from Auth and LogoutRequest constructor to support SPNameQualifier parameter. Align LogoutRequest constructor with SAML specs
Also there are 4 optional parameters that can be set:
797
+
Also there are another 5 optional parameters that can be set:
798
798
799
799
* ``name_id``: That will be used to build the ``LogoutRequest``. If no ``name_id`` parameter is set and the auth object processed a
800
800
SAML Response with a ``NameId``, then this ``NameId`` will be used.
801
801
* ``session_index``: ``SessionIndex`` that identifies the session of the user.
802
802
* ``nq``: IDP Name Qualifier.
803
803
* ``name_id_format``: The ``NameID`` Format that will be set in the ``LogoutRequest``.
804
+
* ``spnq``: The ``NameID SP NameQualifier`` will be set in the ``LogoutRequest``.
804
805
805
806
If no ``name_id`` is provided, the ``LogoutRequest`` will contain a ``NameID`` with the entity Format.
806
807
If ``name_id`` is provided and no ``name_id_format`` is provided, the ``NameIDFormat`` of the settings will be used.
807
-
If ``nq`` is provided, the ``SPNameQualifier`` will be also attached to the ``NameId``.
808
808
809
809
If a match on the ``LogoutResponse`` ID and the ``LogoutRequest`` ID to be sent is required, that ``LogoutRequest`` ID must to be extracted and stored for future validation, we can get that ID by:
810
810
@@ -830,7 +830,12 @@ elif 'sso2' in request.args: # Another SSO init action
830
830
return_to = '%sattrs/' % request.host_url # but set a custom RelayState URL
831
831
return redirect(auth.login(return_to))
832
832
elif 'slo' in request.args: # SLO action. Will sent a Logout Request to IdP
0 commit comments