Skip to content

Comments

Refactor default server#123

Merged
Flix6x merged 13 commits intofeat/abstract_serverfrom
dev/refactor-default-server
May 26, 2025
Merged

Refactor default server#123
Flix6x merged 13 commits intofeat/abstract_serverfrom
dev/refactor-default-server

Conversation

@Flix6x
Copy link
Collaborator

@Flix6x Flix6x commented May 23, 2025

  • I suggest to split up the S2DefaultServer in one part that deals with a default implementation for tokens and challenges, and another part that deals with a default implementation for the HTTP server.
  • The S2FastAPI server implementation would use only the first part.
  • The methods to start and stop the server seem specific to the default HTTP server, so I am suggesting to remove them from the abstract class. For example, the FastAPI server would not implement these methods, as it is started/stopped in a different way.

Flix6x added 3 commits May 23, 2025 15:05
…d challenges and part setting up a default HTTP server

Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
@Flix6x Flix6x requested a review from VladIftime May 23, 2025 13:38
@Flix6x Flix6x self-assigned this May 23, 2025
Flix6x added 10 commits May 26, 2025 14:18
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
…r' into dev/refactor-default-server

# Conflicts:
#	src/s2python/authorization/default_server.py
#	src/s2python/authorization/server.py
@Flix6x Flix6x merged commit 9a7a495 into feat/abstract_server May 26, 2025
19 checks passed
@Flix6x Flix6x deleted the dev/refactor-default-server branch May 26, 2025 13:16
Copy link
Collaborator

@VladIftime VladIftime left a comment

Choose a reason for hiding this comment

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

Looks good! Worked on it together.

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