Activités de "maliming"

Répondre

Great

Répondre

hi

You can inject the ILanguageTextRepository to maintain(get/set) your localization info.

Répondre

hi

You can try that:

app.Use(async (httpContext, next) =>
{
    if (!httpContext.Request.Path.ToString().Contains("account/login"))
    {
        if (httpContext.User.Identity is not { IsAuthenticated: true })
        {
            ///crm-aday-details?adayId=4503#0
            var path = httpContext.Request.GetEncodedPathAndQuery();
            if (path.IsNullOrWhiteSpace() || path == "/")
            {
                httpContext.Response.Redirect("/account/login");
            }
            else
            {
                httpContext.Response.Redirect("/account/login?returnUrl=" + path);
            }

            return;
        }
    }

    await next();
});
Répondre
var yourPage = get page(querystring) from httpcontext
httpContext.Response.Redirect("/account/login?returnUrl=" + yourPage);

Thank you for the information. I will check it out in depth.

Répondre

ok, I will check it.

Répondre

hi

You can use the URL like: https://localhost:44309/account/login?returnUrl=/MyPage The returnUrl parameter can do this.

hi

I have checked the logs. There is no problem with the authserver website.

The Android app doesn't send the authorization_code request like IOS does.

So this is a client problem. Can you check if there are any client logs?

👍

hi

When the application starts to be used, predetermined tenants are automatically added

You can add an IDataSeedContributor to add the predetermined tenants.

https://docs.abp.io/en/abp/latest/Data-Seeding

no tenants can be added later.

To prevent this, you can disable the SaasHostPermissions permissions. This means no one can call the API to create new tenants.

https://docs.abp.io/api-docs/commercial/8.0/api/Volo.Saas.Host.SaasHostPermissions.Tenants.html

public static class SaasHostPermissions
{
    public const string GroupName = "Saas";

    public static class Tenants
    {
        public const string Default = GroupName + ".Tenants";
        public const string Create = Default + ".Create";
        public const string Update = Default + ".Update";
        public const string Delete = Default + ".Delete";
        //...
    }
}
Affichage de 1 à 10 sur 6723 entrées
Made with ❤️ on ABP v8.2.0-preview Updated on mars 25, 2024, 15:11