(request)
return first_name
This gets the first name from sso user data stored in the session SAML data.
    :param request: HttpRequest
    :return: string or None
This gets the first name from sso user data stored in the session SAML data.
    :param request: HttpRequest
    :return: string or None
This gets the first name from sso user data stored in the session SAML data . : param request : HttpRequest : return : string or None
def get_sso_user_first_name_from_session(request):
    """
    This gets the first name from sso user data stored in the session SAML data.
    :param request: HttpRequest
    :return: string or None
    """
    first_name = _get_saml_user_data_property(
        request,
        'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname'
    )
    if not first_name:
        display_name = _get_display_name_from_session(request)
        first_name = display_name.split(' ')[0] if display_name else None
    return first_name
def get_sso_user_first_name_from_session ( request ) : first_name = _get_saml_user_data_property ( request , 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname' ) if not first_name : display_name = _get_display_name_from_session ( request ) first_name = display_name . split ( ' ' ) [ 0 ] if display_name else None return first_name