Reworked image handling, added banner for profiles. Made functions to start on xivauth. Refactored some code.

This commit is contained in:
CakeAndBanana
2025-10-20 20:46:20 +02:00
parent e61e0db36b
commit 00d4632510
13 changed files with 1456 additions and 82 deletions

View File

@@ -24,6 +24,8 @@ public class OAuthController : AuthControllerBase
{
private const string _discordOAuthCall = "discordCall";
private const string _discordOAuthCallback = "discordCallback";
private const string _xivauthCall = "xivauthCall";
private const string _xivauthCallBack = "xivauthCallBack";
private static readonly ConcurrentDictionary<string, string> _cookieOAuthResponse = [];
public OAuthController(ILogger<OAuthController> logger,
@@ -36,6 +38,21 @@ public class OAuthController : AuthControllerBase
{
}
[AllowAnonymous]
[HttpGet(_xivauthCall)]
public IActionResult XIVAuthOAuthSetCookieAndRedirect([FromQuery] string sessionId)
{
return View();
}
[AllowAnonymous]
[HttpGet(_xivauthCallBack)]
public IActionResult XIVAuthOAuthCallback([FromQuery] string code)
{
return View();
}
[AllowAnonymous]
[HttpGet(_discordOAuthCall)]
public IActionResult DiscordOAuthSetCookieAndRedirect([FromQuery] string sessionId)