Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b1d2c03810 | |||
| 58a8d45638 |
@@ -234,7 +234,8 @@ var authenticationBuilder = builder.Services
|
|||||||
options.DefaultChallengeScheme = authenticationScheme;
|
options.DefaultChallengeScheme = authenticationScheme;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (authenticationMode.Equals("DevelopmentHeader", StringComparison.OrdinalIgnoreCase))
|
if (builder.Environment.IsDevelopment()
|
||||||
|
&& authenticationMode.Equals("DevelopmentHeader", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
authenticationBuilder.AddScheme<AuthenticationSchemeOptions, DevelopmentHeaderAuthenticationHandler>(
|
authenticationBuilder.AddScheme<AuthenticationSchemeOptions, DevelopmentHeaderAuthenticationHandler>(
|
||||||
authenticationScheme,
|
authenticationScheme,
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Authentication": {
|
"Authentication": {
|
||||||
"Mode": "DevelopmentHeader"
|
"Mode": "FailClosed"
|
||||||
},
|
},
|
||||||
"Capabilities": {
|
"Capabilities": {
|
||||||
"AutomaticOrder": false,
|
"AutomaticOrder": false,
|
||||||
|
|||||||
Reference in New Issue
Block a user