0

I have a angular app that logs in via identityserver4 using dotnet identity.

My identity user has been customised to be multi tenant, I need to know the url of the angular app from within the identity user manager.

Any suggestions would be great, thank you.

1 Answers1

0

To achieve this you can use ProfileService. You have access to Client info on the RequestContext information. I suggest you to read the Doc as its best reference.

And if you want to add your own user store, you should do sth like what is done for TestUsers:

  • Add your custom UserStore
  • Add your custom ProfileService
  • Add your custom ResourceOwnerValidator
  • Add them to IIdentityServerBuilder like this:

builder.Services.AddSingleton(new CustomUserStore(users));
builder.AddProfileService<CustomProfileService>();            builder.AddResourceOwnerValidator<CustomResourceOwnerPasswordValidator>();

here is an other question regarding custom userstore with all details

nahidf
  • 2,260
  • 1
  • 15
  • 22