Skip to content

Commit

Permalink
Minor config changes to samples
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdecock committed Sep 8, 2024
1 parent befd182 commit 9fb0f8a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
5 changes: 4 additions & 1 deletion samples/Blazor/PerComponent/PerComponent.Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
builder.Services.AddScoped<IRenderModeContext, ClientRenderModeContext>();

builder.Services
.AddBffBlazorClient()
.AddBffBlazorClient(opt =>
{
opt.RemoteApiPath = "/remote-apis";
})
.AddCascadingAuthenticationState()
.AddRemoteApiHttpClient("callApi");

Expand Down
3 changes: 2 additions & 1 deletion samples/Blazor/PerComponent/PerComponent/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
.AddServerSideSessions()
.AddBlazorServer()
.AddRemoteApis();
builder.Services.AddUserAccessTokenHttpClient("callApi", configureClient: client => client.BaseAddress = new Uri("https://localhost:5010/"));
builder.Services.AddUserAccessTokenHttpClient("callApi",
configureClient: client => client.BaseAddress = new Uri("https://localhost:5010/"));

// General blazor services
builder.Services.AddRazorComponents()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dotnetRunMessages": true,
"launchBrowser": true,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"applicationUrl": "https://localhost:5002",
"applicationUrl": "https://localhost:5004",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
Expand Down
7 changes: 4 additions & 3 deletions samples/IdentityServer/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ public static class Config
OidcConstants.GrantTypes.TokenExchange
},

RedirectUris = { "https://localhost:5002/signin-oidc" },
FrontChannelLogoutUri = "https://localhost:5002/signout-oidc",
PostLogoutRedirectUris = { "https://localhost:5002/signout-callback-oidc" },
RedirectUris = { "https://localhost:5004/signin-oidc" },
FrontChannelLogoutUri = "https://localhost:5004/signout-oidc",
BackChannelLogoutUri = "https://localhost:5004/bff/backchannel",
PostLogoutRedirectUris = { "https://localhost:5004/signout-callback-oidc" },

AllowOfflineAccess = true,
AllowedScopes = { "openid", "profile", "api", "scope-for-isolated-api" },
Expand Down

0 comments on commit 9fb0f8a

Please sign in to comment.