Activities of "edelivery"

Answer

ABP Framework version: v4.0.1 UI type: Angular Tiered (MVC) or Identity Server Seperated (Angular): yes

I have config in enviroment.ts to read from appsetting.json

export const environment = {
  production: false,
  hmr: false,
  remoteEnv: {
    url: '/assets/appsettings.json',
    method: 'GET',
    headers: {}
  }
} as Config.Environment;

but when start web it has error like this:

Hi hung.nguyen I just delete folder nodemodule and clear cache, after that i using npm install and it work fine

same problem with me

Hi gterdem my function to get token is:

  private configureWithNewConfigApi() {
    this.oauthService.configure(this.authCodeFlowConfig);
    this.oauthService.tokenValidationHandler = new JwksValidationHandler();
    this.oauthService.loadDiscoveryDocumentAndTryLogin();
    AppConsts.token = this.oauthService.authorizationHeader();
  }

so I cant get this token because my web redirect to error. I added config to IdentityServerClientRedirectUris and it's worked ok thank you

Answer

I found a way to fix this, but I don't know if it's the right way.

In the GatewayModule, I have to add 1 line like below

at this time, when I request /api/permission-management/, it won't route to anywhere else.

Tell me if there is another best way to handle this.

Thanks

Answer

hi alper I added Application.Contracts of another module to gateway but it still load permission of 1 module. when I removed the Ocelot route in appsettings, i've got an Error 404 when call the api. I think that's because route of gateway access to that module my routing in appsetting gateway:

{
      "downstreampathtemplate": "/api/permission-management/{everything}",
      "downstreamscheme": "https",
      "downstreamhostandports": [
        {
          "host": "localhost",
          "port": 44325
        }
      ],
      "upstreampathtemplate": "/api/permission-management/{everything}",
      "upstreamhttpmethod": [ "put", "delete", "get", "post" ]
    },

Hi alper

My purpose when using angular-oauth2-oidc is to want to get token after login. Please let me know how to get tokens

ABP Framework version: v3.3.0 UI type: Angular Tiered (MVC) or Identity Server Seperated (Angular): yes Hi All I have seperate module with differrent link and i want to use single sign on to login. I used angular-oauth2-oidc and call function loadDiscoveryDocumentAndLogin to skip the Login Form but it return to error page like This

Question
  • ABP Framework version: v3.3.0
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): yes

My solution is using Microservice so it have seperated Modules and it communicated by gateway. How can i included all permission of all modules to Permisssion management. Because my gateway Route to /api/permission-management of only 1 module

{
      "downstreampathtemplate": "/api/permission-management/{everything}",
      "downstreamscheme": "https",
      "downstreamhostandports": [
        {
          "host": "localhost",
          "port": 44325
        }
      ],
      "upstreampathtemplate": "/api/permission-management/{everything}",
      "upstreamhttpmethod": [ "put", "delete", "get", "post" ]
    },
    

Answer
  • ABP Framework version: v3.3.0
  • UI type: Angular
  • Tiered (MVC) or Identity Server Seperated (Angular): yes

Hi All I have seperate module with differrent link and i want to use single sign on to login. I used angular-oauth2-oidc and call function loadDiscoveryDocumentAndLogin to skip the Login Form but it return to error page like This Please help me how to solve it

Showing 11 to 20 of 47 entries
Made with ❤️ on ABP v9.2.0-preview. Updated on January 14, 2025, 14:54