Activities of "ElifKaya"

Hi,

Can you share the full error logs?

Hi,

Actually, current user has permission and it didn't throw exception from other appService with this tenant. It throwed exception when we use tenant just EventHandler.cs. So I think that we need to add tenant information in ClaimsPrincipal, is it possible or can you advice any other option? Thanks

Hi,

I need to use ClaimsPrincipal with current tenant. Actually, there is no problem without tenant. I also used _currentTenant.Change but, it throws Volo.Abp.Authorization.AbpAuthorizationException when I call to PhaseAppservice as below. I need to access to appService in IDistributedEventHandler also.

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:

  • ABP Framework version: v7.3.1
  • UI Type: Angular / MVC
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hi, I created an article to show how to hide ABP related endpoints on Swagger UI by simply checking from the settings page. Your requirement is almost the same, so you can follow this article and update it according to your needs.

Also, please notice if you want to hide ABP-related endpoints on Swagger UI on development time, you can use the built-in option: https://docs.abp.io/en/abp/latest/API/Swagger-Integration#hide-abp-endpoints-on-swagger-ui

Thanks, I used this method to hide endpoints before. But, we want t o manage this option dynamically. For example, if admin user select some module from UI, then we want to show it on swagger. Otherwise, users should not see this module's endpoints Is it possible?

Hi,

We removed some modules from feature management module. So, we don't see any pages or something of removed module on UI side. But, we can see removed module's endpoints on Swagger side. How can we manage swagger endpoints by using feature management? We want to manage this selection(hide/show module on swagger) from UI side with admin user.

Thanks,

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:

  • ABP Framework version: v7.3.1
  • UI Type: Angular / MVC
  • Database System: EF Core (SQL Server,)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I recommend you instead do this in a normal API controller instead of an App service as you want to return a file rather than some wrapped ajax/json response - which is what the dynamic API part of ABP will do with the AppServices.

Here is an example returning and ICS file.

[HttpGet] 
[AllowAnonymous] 
public FileResult ICS(Guid id) 
{ 
    var appointment = _attendanceRepo.GetAllIncluding(c => c.CalendarEvent, d => d.CalendarEvent.OwnerCalendar.Owner).First(d => d.Id == id); 
 
    string output = $"BEGIN:VCALENDAR" + rt + 
        $"VERSION:2.0" + rt + 
        $"BEGIN:VEVENT" + rt + 
        $"UID: calendr-" + appointment.Id + rt + 
        $"DTSTART:" + string.Format("{0:yyyyMMddTHHmmssZ}", appointment.CalendarEvent.Start) + rt + 
        $"DTEND:" + string.Format("{0:yyyyMMddTHHmmssZ}", appointment.CalendarEvent.End) + rt + 
        $"SUMMARY:" + appointment.CalendarEvent.EventName + " with " + appointment.CalendarEvent.OwnerCalendar.Owner.FullName + rt + 
        $"LOCATION:" + appointment.CalendarEvent.Location + rt + 
        $"END:VEVENT" + rt + 
        $"END:VCALENDAR" + rt 
        ; 
 
 
    HttpResponseMessage result = new HttpResponseMessage(HttpStatusCode.OK); 
    var stream = new MemoryStream(Encoding.UTF8.GetBytes(output ?? "")); 
    result.Content = new StreamContent(stream); 
    return File(stream, "text/ics", fileDownloadName: appointment.CalendarEvent.EventName + ".ics"); 
 
} 

Hi, Thank you for your comment. But, we used ajax request successfully in Angular. So, I think that we should achieve this in MVC.

Hi,

I want to use 'api/file-management/file-descriptor/download/{id}/token' endpoint. I can see content of this file in network response field. But, I can not get content from ajax request result. Can you give an example about this? I need to show content of file. Thank you

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:

  • ABP Framework version: v7.3.1
  • UI Type: Angular / MVC
  • Database System: EF Core (SQL Server.)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hi,

We have more docker application like abp module application, Console application and Angular application. I need get token from AuthServer with Console Application and Angular application. But, I need to set AuthorityUrl as a AuthServer__Authority=https://localhost:44342 for Angular application. Also, I need to set AuthorityUrl as a AuthServer__Authority=http://pssx-authserver for Console application. I used client credential for console application. I couldn't use different AuthorityUrl at the same time.

Can I add more then one issuer url?

Also, If I used Console_App_Client settings as a public client application like Angular. I didn't use client_credentials. So,it works. Is this a best practice?

Thank you

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:

  • ABP Framework version: v7.3.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Hi,

I used IIdentityRoleAppService in my console application. I used AbpIdentityHttpApiClientModule in my application module. Also I defined IdentityClients values in appsettings.json.

Then, I seed application information to [OpenIddictApplications] table as below.

I used this application successfully in the same solution. But I want to use authserver endpoints from the another solution. But this client information just worked on the host, not tenant. I want to pass tenant name as a parameters like e userName or Password.

Can you help about it?

Thanks

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:

ABP Framework version: v7.3.1

UI Type: / MVC /

Database System: SQL Server,

Tiered (for MVC) or Auth Server Separated (for Angular): yes

Exception message and full stack trace:

Steps to reproduce the issue:

Hi,

Is there any improvement about this old issue?

https://support.abp.io/QA/Questions/5809/ABP-FileDescriptorAppService-overrideExisting-parameters

Thanks

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info:

  • ABP Framework version: v7.3.1
  • UI Type: / MVC /
  • Database System: EF Core (SQL Server,.)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Newtonsoft

I used AbpSystemTextJsonSerializerOptions configuration in our module template solution, it works actually. And, I send also response data from swagger. (I used NetTopologySuite library also).

But, when I used this module in our other module solution as a package reference, it throws self referencing loop exception.


The problem is here, the other solution which uses our module template module. I also add AbpSystemTextJsonSerializerOptions configuration in its HttpApiHostModule and WebHostModule.


Showing 1 to 10 of 96 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11