Reworked image handling, added banner for profiles. Made functions to start on xivauth. Refactored some code.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user