Skip to content

Commit 563613b

Browse files
test
1 parent 2ca5199 commit 563613b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

EssentialCSharp.Web/Program.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,11 @@ private static void Main(string[] args)
126126
{
127127
microsoftoptions.ClientId = configuration["authentication:microsoft:clientid"] ?? throw new InvalidOperationException("authentication:microsoft:clientid unexpectedly null");
128128
microsoftoptions.ClientSecret = configuration["authentication:microsoft:clientsecret"] ?? throw new InvalidOperationException("authentication:microsoft:clientsecret unexpectedly null");
129-
microsoftoptions.CallbackPath = "/signin-microsoft";
130129
})
131130
.AddGitHub(o =>
132131
{
133132
o.ClientId = configuration["authentication:github:clientId"] ?? throw new InvalidOperationException("github:clientId unexpectedly null");
134133
o.ClientSecret = configuration["authentication:github:clientSecret"] ?? throw new InvalidOperationException("github:clientSecret unexpectedly null");
135-
o.CallbackPath = "/signin-github";
136134

137135
// Grants access to read a user's profile data.
138136
// https://docs.github.com/en/developers/apps/building-oauth-apps/scopes-for-oauth-apps
@@ -176,8 +174,8 @@ private static void Main(string[] args)
176174
return next(context);
177175
});
178176

179-
app.MapDefaultControllerRoute();
180177
app.MapRazorPages();
178+
app.MapDefaultControllerRoute();
181179

182180
app.MapControllerRoute(
183181
name: "slug",

0 commit comments

Comments
 (0)