(request)
return last_name
This gets the last name from sso user data stored in the session SAML data.
    :param request: HttpRequest
    :return: string or None
This gets the last name from sso user data stored in the session SAML data.
    :param request: HttpRequest
    :return: string or None
This gets the last name from sso user data stored in the session SAML data . : param request : HttpRequest : return : string or None
def get_sso_user_last_name_from_session(request):
    """
    This gets the last name from sso user data stored in the session SAML data.
    :param request: HttpRequest
    :return: string or None
    """
    last_name = _get_saml_user_data_property(
        request,
        'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname'
    )
    if not last_name:
        display_name = _get_display_name_from_session(request)
        display_name_parts = display_name.split(' ') if display_name else []
        if len(display_name_parts) > 1:
            last_name = ' '.join(display_name_parts[1:])
    return last_name
def get_sso_user_last_name_from_session ( request ) : last_name = _get_saml_user_data_property ( request , 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname' ) if not last_name : display_name = _get_display_name_from_session ( request ) display_name_parts = display_name . split ( ' ' ) if display_name else [ ] if len ( display_name_parts ) > 1 : last_name = ' ' . join ( display_name_parts [ 1 : ] ) return last_name