Skip to content

Commit

Permalink
Merge pull request #251 from DFE-Digital/use-api-key-in-dev
Browse files Browse the repository at this point in the history
Always use an API Key to authenticate
  • Loading branch information
DrizzlyOwl authored May 4, 2023
2 parents e028b70 + e61ed85 commit 31de8aa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dfe.Academies.Academisation.WebApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,7 @@
app.UseHttpsRedirection();
app.UseAuthorization();

if (!app.Environment.IsDevelopment())
{
app.UseMiddleware<ApiKeyAuthenticationMiddleware>();
}
app.UseMiddleware<ApiKeyAuthenticationMiddleware>();
app.UseMiddleware<AddCorrelationIdMiddleware>();
app.UseMiddleware<RequestLoggingMiddleware>();

Expand Down

0 comments on commit 31de8aa

Please sign in to comment.