ProjectLighthouse icon indicating copy to clipboard operation
ProjectLighthouse copied to clipboard

Rewrite digest middleware

Open Slendy opened this issue 1 year ago • 1 comments

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.

Slendy avatar Mar 01 '24 04:03 Slendy

merge conflicts and @Zaprit review bump

sudokoko avatar Jul 01 '24 16:07 sudokoko