Skip to content

Comments

Implement auth service#20

Merged
davidv1992 merged 4 commits intomainfrom
auth-service
Jan 6, 2026
Merged

Implement auth service#20
davidv1992 merged 4 commits intomainfrom
auth-service

Conversation

@davidv1992
Copy link
Collaborator

@davidv1992 davidv1992 commented Jan 6, 2026

Implementation of the authentication service. Also includes some minor changes to the service handling to deal with a minor design flaw.

Note: server currently crashes after auth due to some mac failure. I propose we solve this in a separate PR.

username,
self.packet_sender.clone(),
) {
self.inner = Some(service);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe instead provide a way for a service to replace itself with another service by returning it from handle_packet?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then the behavior of silently ignoring the authentication messages as required by RFC4252 section 5.3 wont work, as those would count as unimplemented for the other service, resulting in an unimplemented response instead.

Base automatically changed from service-handling to main January 6, 2026 12:14
@davidv1992 davidv1992 force-pushed the auth-service branch 2 times, most recently from d5cf23f to 25d7e70 Compare January 6, 2026 12:36
@davidv1992 davidv1992 marked this pull request as ready for review January 6, 2026 12:38
@davidv1992 davidv1992 merged commit 4e21613 into main Jan 6, 2026
7 checks passed
@davidv1992 davidv1992 deleted the auth-service branch January 6, 2026 12:39
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.

2 participants