Skip to content
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

🛂 zb: Only support one authentication method at a time #1041

Merged
merged 3 commits into from
Oct 4, 2024

Conversation

zeenix
Copy link
Contributor

@zeenix zeenix commented Oct 4, 2024

Now that we're down to only two authentication mechanisms with one of them being no-authentication, this really makes sense since we can just autodetect what authentication method to use for a specific socket type on a specific platform.

This also simplifies the handshake logic and will allow us to pipeline the whole client-side handshake in the future, when we can drop the xdg-dbus-proxy workarounds.

As they say in the famous Queen song:

Hey! One man, one goal
Ha, one mission
One heart, one soul
Just one solution
One flash of light
Yeah, one God, one vision

One flesh, one bone, one true religion
One voice, one hope, one real decision
Whoa, whoa, whoa, whoa, whoa, whoa
Give me one vision, yeah

Fixes #731.

The socket impl will now inform us which authentication mechanism should
be used with it. The implementation can choose this based on the socket
type and the target platform.

This will allow us to switch to a single mechanism for each connection
in a following commit.
Now that we're down to only two authentication mechanisms with one of
them being no-authentication, this really makes sense since we can just
autodetect what authentication method to use for a specific socket type
on a specific platform.

This also simplifies the handshake logic and will allow us to pipeline the
whole client-side handshake in the future, when we can drop the
xdg-dbus-proxy [workarounds].

As they say in the famous Queen song:

Hey! One man, one goal
Ha, one mission
One heart, one soul
Just one solution
One flash of light
Yeah, one God, one vision

One flesh, one bone, one true religion
One voice, one hope, one real decision
Whoa, whoa, whoa, whoa, whoa, whoa
Give me one vision, yeah

Fixes dbus2#731.

[workarounds]: dbus2#781
We leave the `AuthMechanism` in the root as deprecated.
@zeenix zeenix enabled auto-merge October 4, 2024 22:20
@zeenix zeenix merged commit 8ef48cb into dbus2:main Oct 4, 2024
7 checks passed
@zeenix zeenix deleted the one-auth branch October 4, 2024 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support only 1 auth at a time
1 participant