Comments (4)
So the use case is you create a user for a newly created tenant website. A good solution would be to create a one time token that the identifies the user on the newly created Tenant website. Simply setting the session domain to allow for any subdomain will only solve this issue in the case of a subdomain set up.
from multi-tenant.
Yes, that's right. After a new user was created, I will login the user with
Auth::login($user);
Then a redirection to the user corresponding subdomain site. I am not sure if this will cause any security concern though.
return redirect()->intended("http://" . $tenant_hostname . "/home");
from multi-tenant.
That's fine for the single use case of working with subdomains. In any other case attempting to save a cookie/session for another domain has no effect.
from multi-tenant.
not going to do this, will consider some solution with the authentication feature for 3.x
from multi-tenant.
Related Issues (20)
- CacheServiceeProvider tenant identification for background processes HOT 2
- Migration to another server HOT 1
- Spreading tenants over multiple servers is not working HOT 1
- Tenants with and without subdomains, is it possible? HOT 1
- Migrate command
- multi-tenant + laravel octane? HOT 4
- Changing Hostname of tenants HOT 2
- Laravel 9 support HOT 5
- How do i overwrite views? Not getting it right... HOT 1
- Command "tenancy:migrate" is not defined. HOT 5
- Memory leak when running phpunit HOT 2
- queue retry uses system db connection instead of tenant
- Question : can same tenant accessed by a multiple endpoint? by IPaddress or by FQDN
- How can we separate databases by region or Instance ? HOT 3
- "PDOException: There is no active transaction" when creating a tenant (PHP 8).
- The command apachectl -t failed
- Laravel 10 support HOT 16
- artisan tenancy:migrate:refresh --seeder=* --website_id=1 seed all tenant websites
- Upgrade MySQL version from 5.7 to 8 in Laravel Hyn/Multi-Tenant setup without changing PHP, Laravel, or Hyn version
- Pest test returning Unauthenticated. when creating website.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multi-tenant.