Skip to content

Conversation

@Slendy
Copy link
Contributor

@Slendy Slendy commented Mar 1, 2024

This PR is a refactor of the digest middleware. The new version makes it much less dependent on hardcoded endpoints and the digests in the config. Now the hardcoded behavior can be controlled by changing properties in the UseDigestAttribute class, like whether or not the request should fail if the client sends an incorrect digest or what the digest header name should be. The middleware can now also use unlimited digest keys to check against.

This PR also adds a new GameController class which extracts most of the common attributes the LBP endpoints use so they don't have to be redefined in every file.

Copy link
Member

@sudokoko sudokoko left a comment

Choose a reason for hiding this comment

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

one minor comment but otherwise this is fine

@Slendy Slendy requested a review from Zaprit March 1, 2024 17:44
@sudokoko
Copy link
Member

sudokoko commented Jul 1, 2024

merge conflicts and @Zaprit review bump

# Conflicts:
#	ProjectLighthouse.Servers.GameServer/Controllers/Slots/ReviewController.cs
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