mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-10-04 15:19:43 +00:00
Rewrite DigestMiddleware to use an opt-in instead of opt-out for endpoints
This commit is contained in:
parent
01e6fa191a
commit
fd210b3125
3 changed files with 159 additions and 172 deletions
|
@ -0,0 +1,11 @@
|
|||
namespace LBPUnion.ProjectLighthouse.Servers.GameServer.Types;
|
||||
|
||||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]
|
||||
public class UseDigestAttribute : Attribute
|
||||
{
|
||||
public bool EnforceDigest { get; set; } = true;
|
||||
|
||||
public string DigestHeaderName { get; set; } = "X-Digest-A";
|
||||
|
||||
public bool ExcludeBodyFromDigest { get; set; } = false;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue