Skip to content

Commit

Permalink
Updates from R#
Browse files Browse the repository at this point in the history
  • Loading branch information
markjulmar committed Dec 17, 2024
1 parent 06476a4 commit 6126a1f
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .idea/.idea.ConvertLearnToDoc/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/.idea.ConvertLearnToDoc/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/.idea.ConvertLearnToDoc/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/.idea.ConvertLearnToDoc/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/ConvertLearnToDoc/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
app.MapGet("/signin", async ctx =>
{
#if USE_MS_AUTH
await ctx.ChallengeAsync(MicrosoftAccountDefaults.AuthenticationScheme,
await ctx.ChallengeAsync(MicrosoftAccountDefaults.AuthenticationScheme,
new AuthenticationProperties { RedirectUri = "/signin-callback" });
#else
await ctx.ChallengeAsync("GitHub", new AuthenticationProperties { RedirectUri = "/signin-callback" });
Expand All @@ -198,7 +198,7 @@ await ctx.ChallengeAsync(MicrosoftAccountDefaults.AuthenticationScheme,

if (isValid && user?.Identity?.IsAuthenticated == true && !string.IsNullOrEmpty(email))
{
//var claimsIdentity = new ClaimsIdentity(new[] {
//var claimsIdentity = new ClaimsIdentity(new[] {
// new Claim(ClaimTypes.Name, user.Identity.Name ?? "User"),
// new Claim(ClaimTypes.Email, email)
//}, CookieAuthenticationDefaults.AuthenticationScheme);
Expand Down

0 comments on commit 6126a1f

Please sign in to comment.