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.
I need to create a global filter like IMultiTenant, based on a claim, do you have any documentation related to it?
hello,
looks like the solution I was looking is https://docs.abp.io/en/commercial/latest/startup-templates/microservice/synchronous-interservice-communication
I am going to treat the user as an object out of the microservice, I do not want to go over http request because i am inside the same server, but it makes sense, because I could split the microservices into many servers later
yes, microservice template, it is on first message
Hi,
Can you share the full steps? thanks.
there are no more steps.
Could you guide me how should I solve this? or which should be the correct implementation for this ?
I need to create the next structure on code
The table AbpUsers is on AbpIdentity Database The tables AgencyUser and Agency has to be on Agency Database I need to add the navigation property to the user to get some properties about the user
The documentation related to this case on FAQ are related on the same database, so the map and solutions do not work complete for me.
Current progress
Add reference to package: Volo.Abp.IdentityServer.Domain on Company.Project.AgencyService.EntityFrameworkCore and Company.Project.AgencyService.Domain
Entity Class
public class AgencyUser : FullAuditedTenantEntity<Guid>
{
// Foreign key referenceing the AbpUser
public Guid IdentityUserId { get; set; }
public IdentityUser IdentityUser { get; set; }
public Guid AgencyId { get; set; }
public Agency Agency { get; set; }
}
`
> Mapp
`
public class AgencyUserMap : IEntityTypeConfiguration<AgencyUser>
{
public void Configure(EntityTypeBuilder<AgencyUser> builder)
{
builder.ConfigureByConvention();
builder.ToTable("AgencyUser");
builder.HasKey(x => x.Id);
builder.Property(x => x.Id).ValueGeneratedOnAdd();
builder.HasOne< IdentityUser >().WithMany().HasForeignKey(x => x.IdentityUserId);
builder.HasOne< Agency >().WithMany().HasForeignKey(x => x.AgencyId);
builder.Navigation(x => x.IdentityUser).AutoInclude();
builder.Navigation(x => x.Agency).AutoInclude();
}
}
How may I use tag helper on angular?
I couldn't understand well but if you want to change layout. You just remove
abp-dynamic-layout.
and add <router-outlet> and are ready to go. if you want to use<abp-sidemenu>
you can use it. Just add in HTML.
I would like to re use your components, like your menu, to create a secondary menu
my secondary menu is dinamic based on the context and role, but as you can see, the style, the behavior are not the same, so I have to create a component to fit your style, so is better if I could re-use your component.
also I need to work with breadcrumb
Would you describe what is your purpose for using Abp Side Menu? What do you want to do ?
also to keep working with guards, I am thinking is better to re use instead of write new component for same functionallity, full functionallity about menu, permissions, style,
re use component to avoid write new menu, and keep look and feel and style for sub menus