Blazor wasm server hosted

Patra, Ramesh 1 Reputation point
2021-09-15T18:47:12.633+00:00

Hi

I would like to put these on the Asp.net core hosted blazor WASM application. How I will put in the Json setting. Thank you for your help.

public static IEnumerable<apiresource> Apis =>
new ApiResource[]
{
new ApiResource("DataAPI",
"API",
new [] { "country" })
};

public static IEnumerable<client> Clients =>
new Client[]
{
new Client
{
ClientId = "BlazorCLient",
ClientName = "Client APP",
AllowedGrantTypes = GrantTypes.Code,
RequireClientSecret = false,
RequirePkce = true,
RedirectUris = { "https://localhost:44341/authentication/login-callback" },
PostLogoutRedirectUris = { "https://localhost:44341/authentication/logout-callback" },
AllowedScopes = { "openid", "profile", "email", "DataAPI",},
AllowedCorsOrigins = { "https://localhost:44341" },
RequireConsent = false
}
};

Regards,
Ramesh

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,462 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 59,551 Reputation points
    2021-09-15T21:04:47.34+00:00

    While a blazor WASM is a static website, the blazor code loads a config file defined in the root of the site (wwwroot)

    https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/configuration?view=aspnetcore-5.0

    0 comments No comments