abpframework / abpframework/abp

Question regarding DomainTenantResolveContributor

Open
#4,708 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

abp-module-account feature priority:normal
Dominant language
C#
Stars
14.4k
Forks
3.7k
Avg merge
15h 32m
Merged PRs (30d)
106

Description

  • How does auth with external providers work when you use DomainTenantResolveContributor? do we have to register new clients with redirect URL for each tenant or is there a way to reuse the single client with all the tenant? right now external auth fails when you use DomainTenantResolveContributor because the redirect URI will be wrong.

  • Does the Domain resolver work in localhost? if not how can I achieve it?

Here is what I have tried as of now.

            Configure<AbpTenantResolveOptions>(options =>
            {
                options.TenantResolvers.Insert(1, new DomainTenantResolveContributor("{0}.localhost:44311"));
            });

and this

options.AddDomainTenantResolver("{0}.localhost:44311");

Both options didn't work for me.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with DomainTenantResolveContributor, Configure, and AddDomainTenantResolver using the localhost examples in the issue. Trace how tenant resolution affects external-auth redirect URIs, then document the supported behavior for per-tenant clients, shared clients, and localhost; done means the issue's questions have a clear, reproducible answer.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
authentication, backend
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.