Starts in:
1 DAY
19 HRS
41 MIN
20 SEC
Starts in:
1 D
19 H
41 M
20 S

Activities of "zhongfang"

Otherwise, may ABP framework use a const string in Javascript , and this const string equals to this member:

public class ConfigPermissions
{
    public const string GroupName = "ChangeConfig";

I have found the code which control the visibility of buttons in Actions column as below. the parameter are all started with "Config. If I modify from Config to ChangeConfig, it will be OK?

var dataTable = $("#AgentLevelsTable").DataTable(abp.libs.datatables.normalizeConfiguration({
        processing: true,
        serverSide: true,
        paging: true,
        searching: false,
        scrollX: true,
        autoWidth: false,
        scrollCollapse: true,
        order: [[1, "asc"]],
        ajax: abp.libs.datatables.createAjax(agentLevelService.getList, getFilter),
        columnDefs: [
            {
                rowAction: {
                    items:
                        [
                            {
                                text: l("Edit"),
                                visible: abp.auth.isGranted('Config.AgentLevels.Edit'),
                                action: function (data) {
                                    editModal.open({
                                     id: data.record.id
                                     });
                                }
                            },
                            {
                                text: l("Delete"),
                                visible: abp.auth.isGranted('Config.AgentLevels.Delete'),
                                confirmMessage: function () {
                                    return l("DeleteConfirmationMessage");
                                },
                                action: function (data) {
                                    agentLevelService.delete(data.record.id)
                                        .then(function () {
                                            abp.notify.info(l("SuccessfullyDeleted"));
                                            dataTable.ajax.reload();
                                        });
                                }
                            }
                        ]
                }
            },
			{ data: "levelId" },
			{ data: "levelName" },
			{ data: "desc" },
			{ data: "needFans" },
			{ data: "needConsumerAmount" },
            {
                data: "isActive",
                render: function (isActive) {
                    return isActive ? l("Yes") : l("No");
                }
            }
        ]
    }));
private readonly IRepository<Product, Guid> _productRepository;
        private readonly IDataFilter _dataFilter;

        public ProductManager(
            IRepository<Product, Guid> productRepository,
            IDataFilter dataFilter)
        {
            _productRepository = productRepository;
            _dataFilter = dataFilter;
        }

        public async Task<long> GetProductCountAsync()
        {
            using (_dataFilter.Disable<IMultiTenant>())
            {
                return await _productRepository.GetCountAsync();
            }
        }

I have the source code of Account Pro module. But I have nont found the source code.

But, which project? which folder?

I deploy same blazor application (server side). and run with many domain name. such as a.com, b.net, c.org. So I want to redirecto to different Identity Server 4 site according to there domain name. So I want to change the logic of above RedirectToLogin.

In common, we write solid configuration in appsettings.json as below

  "AuthServer": {
    "Authority": "https://id.a.com",
    "RequireHttpsMetadata": "false",
    "ClientId": "Tired_Blazor2022",
    "ClientSecret": "1q2w3e*"
  },

Which template project will use below config? Or any document about below configuration?

{
  "IdentityClients": {
    "Default": {
      "GrantType": "password",
      "ClientId": "MyProjectName_App",
      "ClientSecret": "1q2w3e*",
      "UserName": "admin",
      "UserPassword": "1q2w3E*",
      "Authority": "https://localhost:44301",
      "Scope": "MyProjectName"
    }
  }
}

I never heard such configuration. I need to store a valid username with password in config file?

[02:56:06 WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.

as you see, I have default remote service.

What does the warn mean?

There is an warning message whilt starting the web host.

[02:56:00 INF] Initialized all ABP modules.
[02:56:00 INF] Initializing UI Database
[02:56:00 INF] Now listening on: http://[::]:80
[02:56:00 INF] Application started. Press Ctrl+C to shut down.
[02:56:00 INF] Hosting environment: ba****o_com
[02:56:00 INF] Content root path: /app/
[02:56:06 INF] Request starting HTTP/1.0 GET http://abc.ba****o.com/health - -
[02:56:06 WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
[02:56:06 INF] Start processing HTTP request GET https://frontapi.bazishuo.com/api/abp/application-configuration?api-version=1.0
[02:56:06 INF] Sending HTTP request GET https://frontapi.ba****o.com/api/abp/application-configuration?api-version=1.0
[02:56:07 INF] Received HTTP response headers after 728.2914ms - 200
[02:56:07 INF] End processing HTTP request after 742.2128ms - 200
[02:56:08 WRN] Could not find IdentityClientConfiguration for AbpMvcClient. Either define a configuration for AbpMvcClient or set a default configuration.
[02:56:08 INF] Start processing HTTP request GET https://frontapi.ba****o.com/api/abp/application-configuration?api-version=1.0
[02:56:08 INF] Sending HTTP request GET https://frontapi.ba****o.com/api/abp/application-configuration?api-version=1.0
[02:56:09 INF] Request starting HTTP/1.0 POST http://app.ba****o.com/_blazor/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0
[02:56:09 INF] Received HTTP response headers after 787.906ms - 200

appsettings.ba****o_com

  "RemoteServices": {
    "Default": {
      "BaseUrl": "https://frontapi.ba****o.com/"
    },
    "Brain": {
      "BaseUrl": "https://api.another.tech/"
    },
    "AbpAccountPublic": {
      "BaseUrl": "https://id.ba****o.com/"
    }
  },
  "AuthServer": {
    "Authority": "https://id.ba****o.com",
    "RequireHttpsMetadata": "false",
    "ClientId": "****",
    "ClientSecret": "****"
  },

Ok,Ok。 If ABP can check above error stage, and mentioned us. It will save time for us.

Showing 81 to 90 of 120 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06