File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public void ConfigureServices(IServiceCollection services)
6868 new Claim (ClaimTypes .Name , context .UserName , context .Options .ClaimsIssuer )
6969 };
7070
71- var principal = new ClaimsPrincipal (new ClaimsIdentity (claims , BasicAuthenticationDefaults . AuthenticationScheme ));
71+ var principal = new ClaimsPrincipal (new ClaimsIdentity (claims , context . Scheme . Name ));
7272 context .Principal = principal ;
7373 }
7474 else
@@ -100,7 +100,7 @@ public class AuthenticationEvents : BasicAuthenticationEvents
100100 new Claim (ClaimTypes .Name , context .UserName , context .Options .ClaimsIssuer )
101101 };
102102
103- var principal = new ClaimsPrincipal (new ClaimsIdentity (claims , BasicAuthenticationDefaults . AuthenticationScheme ));
103+ var principal = new ClaimsPrincipal (new ClaimsIdentity (claims , context . Scheme . Name ));
104104 context .Principal = principal ;
105105 }
106106
You can’t perform that action at this time.
0 commit comments