Activities of "liangshiwei"

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

Answer

HI,

make sure your project, CLI and suite are the same version

Showing 1511 to 1520 of 6693 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 25, 2025, 06:16
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.