Activities of "liangshiwei"

you need to add reference for blazor and blazor.client both and module dependencies

I could not reproduce the problem

could you share a project with me? shiwei.liang@volosoft.com

:)

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();
    }
}

disabled the local account login and configure an external provider

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

Showing 831 to 840 of 6014 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 19, 2024, 12:56