Skip to content

Instantly share code, notes, and snippets.

private OAuthOptions GitHubOptions =>
new OAuthOptions
{
AuthenticationScheme = "GitHub",
DisplayName = "GitHub",
ClientId = Configuration["GitHub:ClientId"],
ClientSecret = Configuration["GitHub:ClientSecret"],
CallbackPath = new PathString("/signin-github"),
AuthorizationEndpoint = "https://github.com/login/oauth/authorize",