Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #193 from rinkudesu/keycloak-allow-http
Browse files Browse the repository at this point in the history
Allow keycloak connections using http even in production
  • Loading branch information
KowalskiPiotr98 authored Nov 25, 2022
2 parents a92d67d + 6fe8264 commit 94887fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Rinkudesu.Services.Links/Rinkudesu.Services.Links/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ void ConfigureServices(IServiceCollection services)
})
.AddJwtBearer(options => {
options.Authority = Environment.GetEnvironmentVariable("RINKUDESU_AUTHORITY");
#if DEBUG
options.RequireHttpsMetadata = false;
#endif
options.RequireHttpsMetadata = string.IsNullOrEmpty(Environment.GetEnvironmentVariable("RINKUDESU_AUTHORITY_ALLOW_HTTP"));
options.Audience = "rinkudesu";
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"RINKUDESU_AUTHORITY": "http://localhost:8080/auth/realms/rinkudesu",
"RINKUDESU_AUTHORITY_ALLOW_HTTP": "1",
"RINKU_LINKS_CONNECTIONSTRING": "Server=127.0.0.1;Port=5432;Database=rinku-links;User Id=postgres;Password=postgres;",
"RINKU_KAFKA_ADDRESS": "localhost:9092",
"RINKU_KAFKA_CLIENT_ID": "rinkudesu-links",
Expand Down

0 comments on commit 94887fe

Please sign in to comment.