feat: An Initias Redis Store Implementation
- **docker-compose.yml** - Added Redis service configuration to support token storage. - Set up health checks and volume for Redis persistence. - Configured VRCAuthProxy service to depend on Redis. - **HttpClientCookieContainer.cs** - Added `Username` property to support user-specific token management. - **Program.cs** - Integrated Redis for storing and retrieving authentication tokens. - Updated login and token rotation logic to utilize Redis. - Improved async/await usage for better reliability. - **VRCAuthProxy.csproj** - Added `StackExchange.Redis` package for Redis connectivity. - Corrected `Otp.NET` package reference. - **API.cs** - Updated `TotpVerifyResponse` and `User` classes to be nullable-aware. - **RedisService.cs** - Implemented Redis service for managing authentication tokens. - Added methods for saving, retrieving, and deleting tokens.
This commit is contained in:
parent
eb4349031b
commit
30d631d246
6 changed files with 180 additions and 61 deletions
|
|
@ -2,7 +2,13 @@
|
|||
|
||||
namespace VRCAuthProxy;
|
||||
|
||||
public class HttpClientCookieContainer(HttpClientHandler handler) : HttpClient(handler)
|
||||
public class HttpClientCookieContainer : HttpClient
|
||||
{
|
||||
public CookieContainer CookieContainer => handler.CookieContainer;
|
||||
public CookieContainer CookieContainer { get; }
|
||||
public string Username { get; set; } = string.Empty;
|
||||
|
||||
public HttpClientCookieContainer(HttpClientHandler handler) : base(handler)
|
||||
{
|
||||
CookieContainer = handler.CookieContainer;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue