blob: d7dceebe8ecf079f78721fc24d4695d430de0491 (
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);
}
}
|