you need to add reference for blazor
and blazor.client
both and module dependencies
You can add @attribute [Authorize]
to index.cshtml
or indexIndexModel
[Authorize]
public class IndexModel : ..
{
}
yes,
another simple way is
@attribute [Authorize]
..
page code...
As for the issue of logging in with an external provider from this page instead of having to go to the Account/Login page, is there a way to do that?
it will automatically redirect
Hi,
you can try
public class IndexModel : ...
{
public ActionResult OnGet()
{
if (!CurrentUser.IsAuthenticated)
{
return Redirect("/Account/Login");
}
return Page();
}
}
Is this set by some module in ABP Framework or will it be set by the .NET 8.0 or some other library?
This is set by openiddict.
could you try this?
public override void PreConfigureServices(ServiceConfigurationContext context)
{
PreConfigure< OpenIddictServerBuilder >(builder =>
{
.....
builder.SetIssuer("https://iitvdi-01.aurelius.com:4220");
....
});
}
Hi,
You can try search Identityserver
keyword globally in your solution