summaryrefslogtreecommitdiffstats
path: root/server/src/Endpoints/Internal/Account/CreateGithubSessionRoute.cs
blob: 055820ce41f7bdc65d32b1b65b28484a245cd51a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//using AspNet.Security.OAuth.GitHub;

namespace IOL.GreatOffice.Api.Endpoints.Internal.Account;

public class CreateGithubSessionRoute : RouteBaseSync.WithRequest<string>.WithActionResult
{
	public CreateGithubSessionRoute(IConfiguration configuration) { }

	[AllowAnonymous]
	[HttpGet("~/_/account/create-github-session")]
	public override ActionResult Handle(string next) {
		return BadRequest("This action is deprecated");
		// return Challenge(new AuthenticationProperties {
		//						 RedirectUri = next
		//				 },
		//				 GitHubAuthenticationDefaults.AuthenticationScheme);
	}
}