Archi
1809028c77
Rider cleanup
2022-01-06 20:22:38 +01:00
Archi
225003c5d1
Try to fix netf, once again into the breach
2021-12-12 01:44:17 +01:00
Archi
4f598d5c8f
Latest Rider cleanups
2021-12-12 01:12:54 +01:00
Archi
1e6ab11d9f
Use file-scoped namespaces
2021-11-10 21:23:24 +01:00
Sebastian Göls
fb4eb0b03a
Use Madness via global usings ( #2447 )
...
* Use Madness via global usings
* Apply feedback
* Disable false positive null warning
2021-11-09 16:33:09 +01:00
Archi
7e9e90764b
Use static lambdas wherever possible
...
Thanks Rider
2021-09-27 21:33:52 +02:00
Archi
69e2a3590c
ApiAuthenticationMiddleware performance improvements
...
Previously we've used one semaphore per all ongoing authentication attempts, which is suboptimal given the existence of a lot of consumers, including ongoing (D)DoS or distributed bruteforce attack. ASF should be as resistant to that as possible, therefore it makes sense to replace the global semaphore with per-IP semaphore (actually task), that can control the access just as well, without stopping other consumers from accessing the same authentication process concurrently.
2021-08-24 01:37:14 +02:00
Archi
5f5dcfbb99
Misc
2021-08-23 16:50:26 +02:00
Archi
882443711b
Optimize ApiAuthenticationMiddleware for bruteforcing
...
We can favour bruteforcers by checking first if the client is even eligible for talking with us, this will (in a very negligible way) improve defense against common DoS.
Also rewrite Timer initialization while at it. This is internal class and we don't expect this middleware to be initialized more than once anyway.
2021-08-23 16:49:19 +02:00
Archi
859d2d54c6
Misc
2021-07-21 09:58:09 +02:00
Archi
a92c212a69
Misc
2021-07-20 14:43:16 +02:00
Archi
1b3ef7a41d
Add support for supplying additional information on 401/403 status codes
...
In particular permanent: true/false value indicating whether 403 comes from rate limiting or ASF block due to lack of IPCPassword
2021-07-20 14:32:53 +02:00
Archi
d479eb9f97
Address Rider EAP inspections/cleanup
2021-07-12 21:45:17 +02:00
Łukasz Domeradzki
13e9f1ac2a
Closes #2371 ( #2372 )
...
* Closes #2371
* Change the default to no known networks
* Address @Vital7 note
* Handle both IPv4 and IPv6 when mapped
This follows ASP.NET Core logic
* Refactor forwarded headers usage
2021-07-12 13:40:23 +02:00
JustArchi
e60b54e402
Refactor EVERYTHING
...
Directories structure + namespaces relevant to them
2021-05-08 01:37:22 +02:00
JustArchi
45a5fec95a
Happy 2021
...
And let's hope it'll be better than 2020
2021-01-03 22:24:22 +01:00
JustArchi
e82560259b
Final code cleanup
2020-11-14 22:37:00 +01:00
JustArchi
60ae4977da
Initial code cleanup
2020-11-11 16:51:31 +01:00
Łukasz Domeradzki
35f4651ed6
.NET 5.0 ( #1999 )
...
* Initial work
* Fix CIs
* Fix warnings
* Update .travis.yml
* Update dockerfiles
* Update libraries to .NET 5.0
* Misc
* Remove workaround for #1812
* Update cc.sh
* CI updates
* CI updates
* Update .travis.yml
2020-11-10 23:22:57 +01:00
JustArchi
f99d296687
Closes #2014
2020-11-04 23:39:57 +01:00
JustArchi
b3d476dea4
Round 2 of nullable checks
2020-08-23 20:45:24 +02:00
Łukasz Domeradzki
9fc1ea65a5
Closes #1543 ( #1944 )
...
* Start working on nullable checks
help me
* Update GlobalConfig.cs
* Finish initial fixup round
* nullability code review
2020-08-22 21:41:01 +02:00
JustArchi
4b4b323164
R# code improvements
2020-04-18 16:54:57 +02:00
JustArchi
0370168b02
Happy new year
2020-02-01 23:33:35 +01:00
JustArchi
738b70e57a
Do not record failed attempts on empty passwords
2019-11-11 22:32:01 +01:00
JustArchi
a0dfb28e59
R# cleanup
2019-10-13 17:21:40 +02:00
Łukasz Domeradzki
5b4867c387
Update ASF to .NET Core 3.0 ( #1427 )
...
* Initial bump to .net core 3.0
* Update cc.sh
* Update appveyor.yml
* Update ArchiSteamFarm.csproj
* Update appveyor.yml
* Update .travis.yml
* Build corrections
* Cleanup
* Update .travis.yml
* Don't publish trimmed for now
* Update ArchiSteamFarm.csproj
2019-09-26 20:28:25 +02:00
JustArchi
4592a20c89
General code review
2019-06-29 15:59:38 +02:00
JustArchi
b677ba8202
Code/style cleanup
2019-02-16 17:34:17 +01:00
JustArchi
c594da5acb
Add 2FA actions to ASF API
2019-01-23 17:58:37 +01:00