Activities of "steve.burgess"

Hi,

I have the microservice template up and running with an Angular frontend. I'm attempting to use some components within the Lepton theme (https://leptontheme.com/Layouts/Application/Components/Dropdowns)

However, they don’t appear to work at all.

Doing some investigation, the microservice template doesn't appear to include jquery or popper at all, which are required for bootstrap to work correctly.

Is the intention that these components should work in the microservice template? Or am i just missing something fundamental?

Thanks,

Steve.

Hello,

Microservice template has 3 applications:

  1. Back-office/admin application (that can be blazor, angular or mvc)
  2. Public / landing page application. This is a RazorPage/MVC application
  3. Authserver / Identityserver application. This application hosts the login/register and user profile related pages.

You can make UI developments for all of these applications.

There are 2 ways to develop UI for microservices; Modular and Monolith. You can check adding ui to apps documentation about these ways.

Can you share what exactly you're trying to achieve and what seems not working?

Hi,

I'm using the back-office/admin application. Its running using Angular.

I've gone to the Lepton Theme site (https://leptontheme.com/) and grabbed the Bootstrap code for a "Split Button" dropdown (https://leptontheme.com/Layouts/Application/Components/Dropdowns).

I've then dropped this code onto the home page (Home Module > Home component > home.component.html)

The button appears on the page and is styled correctly, however, clicking on the "arrow" does nothing. It should pop a little menu containing the dropdown values but it doesn't.

I can see that the bootstrap CSS is in the Angular project (which would explain why the styles are correct) but i can’t see where jquery & popper are included. It's my understanding that without them bootstrap 4 wont function correctly.

If i manually include jquery and popper it starts working correctly.

I just want to make sure I’m not missing something fundamental about the way it should be working?

Cheers,

Steve.

  • ABP Framework version: v4.4.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

Hi,

I'm currently using the microservice template.

The IQueryable and Async section of this doc: https://docs.abp.io/en/abp/4.4/Repositories#iqueryable-async-operations talks about adding Volo.Abp.EntityFrameworkCore to the application layer so that you can access various EF Core aysnc methods such as ToListAsync.

I've attempted to do this, but Volo.Abp.EntityFrameworkCore is not compatible with the version of .net standard 2 that’s being used by default in the application layer (2.0.3).

Am i missing something? Is it just a case of upgrading .net standard to 2.1?

Cheers,

Steve.

Hi,

I assume the docs were created when the framework was targeting .net core 3 then?

Are there any plans to update to .net standard to 2.1?

Cheers,

Steve.

I'll take a look at that, thanks,

Steve.

  • ABP Framework version: 4.4.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hi,

I have a couple of questions around error handling. I currently have an angular frontend with a REST API backend

I’m attempting to disable the default error handling for my APIs in the angular frontend.

It appears that you can pass “skipHandleError: true” to the RestService to achieve this. However, I’m automatically generating the service proxies using the abp suite with “abp generate-proxy”. Is there any way to tell this auto generation to set skipHandleError to true?

I’m also struggling to create a custom 404 page. Are there any examples of how to do this?

Thanks,

Steve.

Wow, not sure how i managed to miss that.

Thanks for pointing me in the right direction.

Cheers,

Steve.

  • ABP Framework version: v5.1.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes (Microservice template)
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hi,

I'm currently using the microservice template (v5.1.3)

I'm trying to figure out how to make a custom claim visible to when using CurrentUser.FindClaim in one of my custom services.

I'm using Azure Open Id Connect. The claim is in the returned Id token from Azure as seen below

I'm struggling to understand how to get that to appear as a claim on the currently logged in user.

I followed the instructions in this issue https://github.com/abpframework/abp/issues/42 but much like piresashwin in the last comment the CreateAsync method of the custom ClaimsPrincipalFactory never appears to be called.

Cheers,

Steve.

You can check this class as sample of adding custom claims using custom claims principal factory.

Hi,

Thanks for that. I can now add claims to the abp user.

What would be the best way to take a value from the Azure user claims (such as the employeeid i have) and get it added to the abp user?

In the linked example it looks like the claims value is being taken from a cookie that is being set by some middleware. I'm not sure that'll work in my scenario.

Cheers,

Steve.

Can you try creating a new claims principle using claims from azure ad (employeeId) and add it to current userprinciple when onTokenReceived event?

Hi,

Thanks for getting back to me.

Do you mean the OnTokenResponseReceived event?

In that event I can’t see where I would get the current user principle. I can access the claims principal, but I believe that’s just the user that authenticated with Azure. At the point that OnTokenResponseReceived is fired I’m not sure we have access to any other user principle?

Cheers,

Steve

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