Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different URLs | Multi tenancy #1640

Open
shivalkarrahul opened this issue Oct 15, 2024 · 0 comments
Open

Different URLs | Multi tenancy #1640

shivalkarrahul opened this issue Oct 15, 2024 · 0 comments

Comments

@shivalkarrahul
Copy link

Hello Team,

We have a requirement to have different URLs for different tenants in one application/environment.
E.g.

Current Setup:
Dev Env:
dev.example.com

Stage Env:
stage.example.com

Expected:

Dev Env:
TenantA -> tenant-a.dev.example.com
TenantB -> tenant-b.dev.example.com
TenantC -> tenant-c.dev.example.com

Stage Env:
TenantA -> tenant-a.stage.example.com
TenantB -> tenant-b.stage.example.com
TenantC -> tenant-c.stage.example.com

How can this be achieved?

We tried the following manually.

  1. Added one more alternate domain in the Cloudfront (tenant-a.dev.example.com)
  2. Created a new App Integration - > App Client in the Cognito and added the Allowed callback URL(tenant-a.dev.example.com)
  3. Now, when we try to login to tenant-a.dev.example.com, it takes us to the "Federated Authentication" page, and when we click on the "Federated Authentication" page it takes us to the login page.
  4. After entering the login credentials, it takes us back to the "Federated Authentication" page.
  5. Clicking again on "Federated Authentication" page, it authenticates us but redirect to the custom domain "dev.example.com".
  6. Instead of being redirect to "dev.example.com", we want to be redirected to tenant-a.dev.example.com

Could you please help us here?

Thank you in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant