Activities of "maliming"

hi pvaz

I think you can redirect user to any page.

if (!CurrentUser.IsAuthenticated)
{
    //redirect to /Account/Login
}

https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.controllerbase.redirect?view=aspnetcore-5.0

hi pvaz

You can call ChallengeAsync in yourOnGetAsync method of IndexModel for MVC tiered application.

public class IndexModel : MyProjectNamePageModel
{
    public async Task OnGetAsync()
    {
        if (!CurrentUser.IsAuthenticated)
        {
            await HttpContext.ChallengeAsync("oidc");
        }
    }

    public async Task OnPostLoginAsync()
    {
        await HttpContext.ChallengeAsync("oidc");
    }
}

hi @Repunjay

Our problem may be related to migration, so we shouldn't create the host database Litmus_Admin and tenant database Litmus_Lenovo_Admin through SQL.

We need use migrations of ef core.

The structure of the sql you shared is different from the project I received. Please try to reproduce the problem through the code, you can share the necessary code to create the data. Please keep it simple, thanks.

hi

Can you check your redis to see if the keys are created?

I think your Redis may have problem, Because we've confirmed the Data Protection can works between two application.

Since both instances are separate in our production environment we cannot persist the keys on the local file system

You can use other provider to save your keys.

https://docs.microsoft.com/en-us/aspnet/core/security/data-protection/configuration/overview?view=aspnetcore-5.0

hi @all

https://github.com/abpframework/abp/commit/b73f9e2c6e91251f800d5aa3a00b1edf516ed933

hi

I add some test code and it works between two application.

https://github.com/abpframework/abp/commit/0f13c80056b4159f5a83b50753a7ff7b66ae6e74

May I ask if this attribute could have any other unwanted consequences?

I don't think so.

https://docs.microsoft.com/en-us/aspnet/core/security/authorization/limitingidentitybyscheme?view=aspnetcore-5.0

hi

Can you get the IdentityServerOptions from the DI and check the IssuerUri?

var options = context.RequestServices.GetRequiredService<IdentityServerOptions>();
var uri = options.IssuerUri;
Showing 6951 to 6960 of 7763 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 25, 2024, 05:13