Activities of "maliming"

Answer

This is very simple. You only need to check the current user's permissions and then set values ​​for the DTO class in application services.

https://abp.io/docs/latest/framework/fundamentals/authorization#iauthorizationservice

hi

I can see from the log that this API is blocking requests. However, the log level is Information and no more info can be obtained. You can change the log level to Debug so that we can get more information in next time.

And is your Redis work?

IDX10223: Lifetime validation failed. The token is expired.

This is a normal log if your access token is expired.


When this happens:

  1. Is the database in a normal state?
  2. Is the Redis in a normal state?
  3. What about the server's memory and CPU?

We can only change the log level and try to reproduce the problem.

There are not many clues at the moment.


.MinimumLevel.Debug()

public class Program
{
    public async static Task<int> Main(string[] args)
    {
        IdentityModelEventSource.ShowPII = true;

        IdentityModelEventSource.Logger.LogLevel = EventLevel.Verbose;
        var wilsonTextLogger = new TextWriterEventListener("Logs/identitymodel.txt");
        wilsonTextLogger.EnableEvents(IdentityModelEventSource.Logger, EventLevel.Verbose);

        Log.Logger = new LoggerConfiguration()
            .MinimumLevel.Debug()
            .MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning)
            .Enrich.FromLogContext()
            .WriteTo.Async(c => c.File("Logs/logs.txt"))
            .CreateLogger();

ok

hi

There is no example now, you can test it by following the document. It's easy.

Answer

hi

You can check the permissions of current users in the application service layer.

Then, fill the entity properties to dto.

If there is no permission, set the DTO property to empty or null.

hi

Please send full request logs of auth server, Thanks.

hi

lowercase.

public class OidcAppService : ApplicationService, IOidcAppService

hi

You can use integration services to query entity info from different modules.

https://abp.io/docs/latest/framework/api-development/integration-services

is it necessary to replace the SaaS package with the source code to make these customizations into tenant?

No, You can override the service and component from the saas module.

https://abp.io/docs/latest/framework/architecture/modularity/extending/customizing-application-modules-guide

hi

Your app is still using the IdentityServer

Please make sure you have depends on the correct modules.

https://abp.io/docs/latest/release-info/migration-guides/openiddict-step-by-step?_redirected=B8ABF606AA1BDF5C629883DF1061649A

Invoking IdentityServer endpoint: IdentityServer4.Endpoints.AuthorizeEndpoint for /connect/authorize
[09:35:56 DBG] Start authorize request


Executed action method Volo.Abp.Account.Web.Areas.Account.Controllers.ErrorController.Index (Volo.Abp.Account.Pro.Public.Web.IdentityServer)

hi

Can you share full logs when this happens?

liming.ma@volosoft.com

Thanks.

Showing 811 to 820 of 8472 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11