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
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
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