Open Closed

Better Documentation for Multi Tenant Subdomain Resolver #1552


User avatar
0
MichelZ created

Using Angular with separate IdentityServer. Tenants resolve using subdomain tenant resolver.

I keep running into issues. Current issue: Got subdomain identity server, {0}.identity.domain.com The Http Api however has "identity.domain.com" as Authority, which obviously doesn't work.

I found this that talks about a Wildcard Issuer Validator: https://github.com/abpframework/abp/pull/8884 However the code is not available anymore on Github, only a nuget package (that's not cutting it for me...)

Is there any official guideance on this? Maybe just somehow who creates a new project and configures it that it works with subdomains, angular and separate identity server and documents all the relevant settings in a blog post or so? :) This can't be such an unusual scenario, but I'm really struggling.


4 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    We have a demo.

    https://github.com/abpframework/abp-samples/tree/master/DomainTenantResolver

  • User Avatar
    0
    MichelZ created

    Thanks! That looks interesting, I will try it out ASAP. Would you also please consider adding one with Angular and Identity Server separated?

    Thanks

  • User Avatar
    1
    maliming created
    Support Team Fullstack Developer

    Would you also please consider adding one with Angular and Identity Server separated?

    I will try to add that.

  • User Avatar
    0
    MichelZ created

    Would you also please consider adding one with Angular and Identity Server separated?

    I will try to add that.

    Thank you!

    I have found what I was doing wrong using that sample application. I was missing this in my Configure on the Identity Server which sets the issuer URL to a static URL instead of using the Tenant-specific URL:

    Configure<IdentityServerOptions>(options => { options.IssuerUri = configuration["App:SelfUrl"]; });

    I'm not sure if I saw this documented somewhere, or if I just missed it, maybe it can be pointed out and clarified in the documentation. Thanks again & Cheers Michel

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11