Skip to content

Commit 5b83c32

Browse files
committed
fix: Make auth works on public version of Blazor sample website.
1 parent b11876b commit 5b83c32

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,6 @@ COPY --from=publish /samples .
6363
# Create Blazor sample image for website
6464
FROM runtime as sample_blazor_ws
6565
WORKDIR /samples/src/Blazor/Server
66+
ENV Server__GitHubClientId=7d519556dd8207a36355
67+
ENV Server__GitHubClientSecret=8e161ca4799b7e76e1c25429728db6b2430f2057
6668
ENTRYPOINT ["dotnet", "bin/Release/net5.0/publish/Samples.Blazor.Server.dll"]
67-

docker-compose.yml

-2
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,3 @@ services:
7979
- "80:80"
8080
environment:
8181
ASPNETCORE_URLS: "http://0.0.0.0:80"
82-
Server__GitHubClientId: "7d519556dd8207a36355"
83-
Server__GitHubClientSecret: "8e161ca4799b7e76e1c25429728db6b2430f2057"

src/Blazor/Server/Startup.cs

-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ public void ConfigureServices(IServiceCollection services)
9090
var serverSettings = c.GetRequiredService<ServerSettings>();
9191
options.ClientId = serverSettings.GitHubClientId;
9292
options.ClientSecret = serverSettings.GitHubClientSecret;
93-
Log.LogInformation($"GitHub ClientId: {options.ClientId}");
94-
Log.LogInformation($"GitHub ClientSecret: {options.ClientSecret}");
9593
});
9694

9795
// Web

0 commit comments

Comments
 (0)