:right-sidebar: True AuthDomainBasic =================================================================== .. currentmodule:: gi.repository.Soup .. class:: AuthDomainBasic(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Soup.AuthDomain`, :class:`~gi.repository.GObject.Object` Server-side "Basic" authentication. ``SoupAuthDomainBasic`` handles the server side of HTTP "Basic" (ie, cleartext password) authentication. Methods ------- .. rst-class:: interim-class .. class:: AuthDomainBasic :no-index: .. method:: set_auth_callback(callback: ~typing.Callable[[~gi.repository.Soup.AuthDomainBasic, ~gi.repository.Soup.ServerMessage, str, str, ~typing.Any], bool], user_data: ~typing.Any = None) -> None Sets the callback that ``domain`` will use to authenticate incoming requests. For each request containing authorization, ``domain`` will invoke the callback, and then either accept or reject the request based on ``callback``\'s return value. You can also set the auth callback by setting the :obj:`~gi.repository.Soup.AuthDomainBasic.props.auth_callback` and :obj:`~gi.repository.Soup.AuthDomainBasic.props.auth_data` properties, which can also be used to set the callback at construct time. :param callback: the callback :param user_data: data to pass to ``auth_callback`` Properties ---------- .. rst-class:: interim-class .. class:: AuthDomainBasic :no-index: .. attribute:: props.auth_callback :type: ~typing.Callable[[~gi.repository.Soup.AuthDomainBasic, ~gi.repository.Soup.ServerMessage, str, str, ~typing.Any], bool] The type of the None singleton. .. attribute:: props.auth_data :type: ~typing.Any The type of the None singleton.