This commit is contained in:
Fergal Moran
2023-01-23 18:28:18 +00:00
commit 1a994e6353
41 changed files with 762 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.Twitter;
using Microsoft.AspNetCore.Mvc;
namespace Nukitter.Web.Controllers;
[ApiController]
[Route("[controller]")]
public class UserController : ControllerBase {
[HttpGet("twitter")]
public async Task TwitterSignIn() {
await HttpContext.ChallengeAsync(TwitterDefaults.AuthenticationScheme, new AuthenticationProperties {
RedirectUri = "https://nukeitter.dev.fergl.ie:5001/profile"
});
}
}