Include the "user_uuid" claim on JWTs for easier Wings user tracking

This commit is contained in:
DaneEveritt 2022-07-04 17:34:56 -04:00
parent 74c3b00828
commit dc90d8b505
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 32 additions and 12 deletions

View file

@ -93,6 +93,7 @@ class FileController extends ClientApiController
{
$token = $this->jwtService
->setExpiresAt(CarbonImmutable::now()->addMinutes(15))
->setUser($request->user())
->setClaims([
'file_path' => rawurldecode($request->get('file')),
'server_uuid' => $server->uuid,