mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-29 19:53:39 +01:00
add temp ban on failed auth
This commit is contained in:
parent
52c3491168
commit
1e73ab55c5
3 changed files with 71 additions and 7 deletions
|
|
@ -66,7 +66,7 @@ namespace MareSynchronosServer
|
|||
{
|
||||
options.DefaultScheme = SecretKeyAuthenticationHandler.AuthScheme;
|
||||
})
|
||||
.AddScheme<AuthenticationSchemeOptions, SecretKeyAuthenticationHandler>(SecretKeyAuthenticationHandler.AuthScheme, options => { });
|
||||
.AddScheme<AuthenticationSchemeOptions, SecretKeyAuthenticationHandler>(SecretKeyAuthenticationHandler.AuthScheme, options => {});
|
||||
services.AddAuthorization(options => options.FallbackPolicy = new AuthorizationPolicyBuilder().RequireAuthenticatedUser().Build());
|
||||
|
||||
services.AddSingleton<IRateLimitConfiguration, RateLimitConfiguration>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue