use Illuminate\Support\Uri;
...
$portal = Uri::temporarySignedRoute(
'test.home',
now()->addSeconds(30),
absolute: false
)->withQuery([
'tenant' => $tenant->id,
'access_token' => Auth::getTokenForRequest(),
])->withHost(config('test.domain'))
->withScheme(config('app.force_secure') ? 'https' : 'http');
Bug description
When creating a signed route (in my case
absoluteisfalse) for central domain and usingsigned:relative&InitializeTenancyByRequestData::classmiddleware together it returns 403 Invalid signature error.Steps to reproduce
config/tenancy.phptest.homeExpected behavior
The signature should be valid
Laravel version
12.19.3
stancl/tenancy version
dev-master:e1fc0e107d236a113ab5e67fc1fa0044925100e4