mirror of
https://github.com/fergalmoran/nukeitter.git
synced 2025-12-25 03:08:08 +00:00
Initial
This commit is contained in:
16
Controllers/UserController.cs
Normal file
16
Controllers/UserController.cs
Normal 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"
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user