Skip to content

Commit

Permalink
Merge pull request #17 from UKGovernmentBEIS/MEESALPHA-211-deploy-fix…
Browse files Browse the repository at this point in the history
…es-6

MEESALPHA-211 adjust auth for azure
  • Loading branch information
scottywakefield authored Sep 23, 2024
2 parents 74c6dc0 + d5eb6db commit e7faa49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/data-tool/Web/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@

var builder = WebApplication.CreateBuilder(args);

// Basic Auth
// Basic Auth - only for POC.
builder.Services.AddAuthentication(BasicAuthenticationDefaults.AuthenticationScheme)
.AddBasic(BasicAuthenticationDefaults.AuthenticationScheme, options =>
{
options.Realm = "Desnz.Mees";
options.AllowInsecureProtocol = true; // azure requires https, container is only exposing http
options.Events = new BasicAuthenticationEvents
{
OnValidateCredentials = context =>
Expand Down

0 comments on commit e7faa49

Please sign in to comment.