Skip to content

Commit

Permalink
use config
Browse files Browse the repository at this point in the history
  • Loading branch information
afedyanin committed Oct 19, 2023
1 parent 93778f0 commit 752005d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/BlazorBff/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@
})
.AddOpenIdConnect("oidc", options =>
{
options.Authority = "https://localhost:8080/realms/myrealm";
options.ClientId = "blazor-client";
options.ClientSecret = "RiewjgKJX4mn4lzxcNW7nvlmGiFr2lqG";
options.Authority = builder.Configuration["OpenIDConnectSettings:Authority"];
options.ClientId = builder.Configuration["OpenIDConnectSettings:ClientId"];
options.ClientSecret = builder.Configuration["OpenIDConnectSettings:ClientSecret"];
options.ResponseType = OpenIdConnectResponseType.Code;
options.RequireHttpsMetadata = false;
Expand Down

0 comments on commit 752005d

Please sign in to comment.