Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions BFF/v4/BlazorAutoRendering/BlazorAutoRendering/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@
.AddInteractiveServerComponents()
.AddInteractiveWebAssemblyComponents();

builder.Services.AddAuthentication(options =>
{
options.DefaultScheme = BffAuthenticationSchemes.BffCookie;
options.DefaultChallengeScheme = BffAuthenticationSchemes.BffOpenIdConnect;
});

// BFF setup for blazor
builder.Services.AddBff()
.AddServerSideSessions() // Add in-memory implementation of server side sessions
Expand Down
2 changes: 1 addition & 1 deletion BFF/v4/JsBffYarpSample/FrontendHost/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
options.Cookie.SameSite = SameSiteMode.Strict;
});

var yarpBuilder = builder.Services.AddReverseProxy();
var yarpBuilder = builder.Services.AddReverseProxy().AddBffExtensions();
//Configure from included extension method
yarpBuilder.Configure();

Expand Down
8 changes: 0 additions & 8 deletions BFF/v4/Quickstarts/BlazorBffApp/BlazorBffApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@

//builder.Services.AddHttpClient<WeatherHttpClient>(opt => opt.BaseAddress = new Uri("https://localhost:7007"));

// Configure the authentication
builder.Services.AddAuthentication(options =>
{
options.DefaultScheme = BffAuthenticationSchemes.BffCookie;
options.DefaultChallengeScheme = BffAuthenticationSchemes.BffOpenIdConnect;
options.DefaultSignOutScheme = BffAuthenticationSchemes.BffOpenIdConnect;
});

// Make sure authentication state is available to all components.
builder.Services.AddCascadingAuthenticationState();

Expand Down
7 changes: 0 additions & 7 deletions BFF/v4/React/React.Bff/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@
options.Cookie.SameSite = SameSiteMode.Strict;
});

builder.Services.AddAuthentication(options =>
{
options.DefaultScheme = BffAuthenticationSchemes.BffCookie;
options.DefaultChallengeScheme = BffAuthenticationSchemes.BffOpenIdConnect;
options.DefaultSignOutScheme = BffAuthenticationSchemes.BffOpenIdConnect;
});

builder.Services.AddAuthorization();

var app = builder.Build();
Expand Down
7 changes: 0 additions & 7 deletions BFF/v4/SplitHosts/BackendHost/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,6 @@
client.BaseAddress = new Uri("https://localhost:5002/");
});

builder.Services.AddAuthentication(options =>
{
options.DefaultScheme = BffAuthenticationSchemes.BffCookie;
options.DefaultChallengeScheme = BffAuthenticationSchemes.BffOpenIdConnect;
options.DefaultSignOutScheme = BffAuthenticationSchemes.BffOpenIdConnect;
});

var app = builder.Build();

app.UseDefaultFiles();
Expand Down
7 changes: 0 additions & 7 deletions BFF/v4/Vue/Vue.Bff/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@
options.Cookie.SameSite = SameSiteMode.Strict;
});

builder.Services.AddAuthentication(options =>
{
options.DefaultScheme = BffAuthenticationSchemes.BffCookie;
options.DefaultChallengeScheme = BffAuthenticationSchemes.BffOpenIdConnect;
options.DefaultSignOutScheme = BffAuthenticationSchemes.BffOpenIdConnect;
});

builder.Services.AddAuthorization();

var app = builder.Build();
Expand Down
7 changes: 0 additions & 7 deletions BFF/v4/docker/FrontendHost/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,6 @@
options.Cookie.SameSite = SameSiteMode.Strict;
});

builder.Services.AddAuthentication(options =>
{
options.DefaultScheme = BffAuthenticationSchemes.BffCookie;
options.DefaultChallengeScheme = BffAuthenticationSchemes.BffOpenIdConnect;
options.DefaultSignOutScheme = BffAuthenticationSchemes.BffOpenIdConnect;
});

builder.Services.AddUserAccessTokenHttpClient("api_client", configureClient: client =>
{
client.BaseAddress = new Uri("https://localhost:5002/");
Expand Down
Loading