Open Closed

Identity Service proxies for angular #3860


User avatar
0
mmaldonado@emscltd.com created
  • ABP Framework version: 5.3.4
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Template: microservices

I need to generate identity proxies for angular but I am facing problems on it, could you help me please?

I need to get a list of users if there is a different way to get it, i am open to hear

my environment file is:

import { Environment } from '@abp/ng.core';

const baseUrl = 'http://localhost:4201';

const oAuthConfig = {
  issuer: 'https://localhost:44322',
  redirectUri: baseUrl,
  clientId: 'Project_Angular',
  responseType: 'code',
  scope:
    'offline_access openid profile email phone AccountService IdentityService AdministrationService SaasService ProductService',
  requireHttps: true,
};

export const environment = {
  production: false,
  application: {
    baseUrl,
    name: 'Project',
  },
  oAuthConfig,
  apis: {
    default: {
      url: 'https://localhost:44388',
      rootNamespace: 'Company.Project',
    },
    Identity: {
      url: 'https://localhost:44388',
      rootNamespace: 'Volo.Abp', // Also tried with Company.Project
    },
  },
} as Environment;

commands that I tried are:
 abp generate-proxy -t ng -m AbpIdentity -u https://localhost:44388 --target identity-service
 abp generate-proxy -t ng -m Identity -u https://localhost:44388 --target identity-service
 abp generate-proxy -t ng -m IdentityService -u https://localhost:44388 --target identity-service
 
this is the message for all of them

[Invalid Module] Backend module "AbpIdentity" does not exist in API definition.

1 Answer(s)
  • User Avatar
    0
    mmaldonado@emscltd.com created

    abp generate-proxy -t ng -m identity -u https://localhost:44388 --target identity-service --api-name Identity abp generate-proxy -t ng -m identityServer -u https://localhost:44388 --target identity-service --api-name Identity abp generate-proxy -t ng -m abp -u https://localhost:44388 --target identity-service --api-name Identity abp generate-proxy -t ng -m accountAdmin -u https://localhost:44388 --target identity-service --api-name Identity

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09