: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` :Constructors: :: AuthDomainBasic(**properties) Methods ------- .. rst-class:: interim-class .. class:: AuthDomainBasic :no-index: .. method:: set_auth_callback(callback: ~typing.Callable[[...], bool], *user_data: ~typing.Any) -> 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[[...], bool] The ``AuthDomainBasicAuthCallback``. .. attribute:: props.auth_data :type: None The data to pass to the ``AuthDomainBasicAuthCallback``.