Activities of "steve.burgess"

hi

You can clear the redis and try again.

Hi,

That will fix it yes.

But should it not be updating the cache when it updates the values in the database?

I don't really want to be wiping my entire redis cache every time i do a deployment that contains a translation update.

Cheers,

Steve.

Hello,

Yes, gateways in microservice template locates the re-routing services and add them as swagger definitions. Currently, we are trying to find a way to cover this scenario better, where microservices do not expose any swagger ui but the gateway exposes the swagger ui with all the endpoints it re-routes to.

However the solution will most likely differ based on the gateway library.

Currently, you can alter the gateway swagger ui manually.

OK thanks,

Steve.

OK, thanks for that.

Cheers,

Steve.

Hi,

OK, thanks for letting me know. I'll mark this as answered.

Thanks again.

Steve.

Hi Steve,

We're aware of that, but it's related to Microsoft UseCors middleware, not ABP Framework. Also, you don't need to add the frontends to any service. Because services should access to gateway not the front end side.

Regards.

So, just to confirm, this is expected?

Are there any work arounds or do we just have to live with it outputting errors into the logs?

Thanks,

Steve.

Hi,

That works great thanks!

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

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.

Wow, not sure how i managed to miss that.

Thanks for pointing me in the right direction.

Cheers,

Steve.

I'll take a look at that, thanks,

Steve.

Showing 11 to 20 of 22 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 20, 2024, 05:21