Skip to content

Rename AuthAnnonymous to AuthAnonymous #169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions dbus_next/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,16 @@ def _receive_line(self, line: str):
raise AuthError(f'authentication failed: {response.value}: {args}')


class AuthAnnonymous(Authenticator):
"""An authenticator class for the annonymous auth protocol for use with the
class AuthAnonymous(Authenticator):
"""An authenticator class for the anonymous auth protocol for use with the
:class:`MessageBus <dbus_next.message_bus.BaseMessageBus>`.

:sealso: https://dbus.freedesktop.org/doc/dbus-specification.html#auth-protocol
"""
def _authentication_start(self, negotiate_unix_fd=False) -> str:
if negotiate_unix_fd:
raise AuthError(
'annonymous authentication does not support negotiating unix fds right now')
'anonymous authentication does not support negotiating unix fds right now')

return 'AUTH ANONYMOUS'

Expand All @@ -98,3 +98,6 @@ def _receive_line(self, line: str) -> str:
raise AuthError(f'authentication failed: {response.value}: {args}')

return 'BEGIN'

# backwards compatibility
AuthAnnonymous = AuthAnonymous
2 changes: 1 addition & 1 deletion docs/authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Classes for the DBus `authentication protocol <https://dbus.freedesktop.org/doc/
.. autoclass:: dbus_next.auth.Authenticator

.. autoclass:: dbus_next.auth.AuthExternal
.. autoclass:: dbus_next.auth.AuthAnnonymous
.. autoclass:: dbus_next.auth.AuthAnonymous