OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
kreait
/
firebase-php
/
src
/
Firebase
/
Auth
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/12/2024 10:35:39 AM
rwxr-xr-x
📁
ActionCodeSettings
-
08/12/2024 10:36:25 AM
rwxr-xr-x
📄
ActionCodeSettings.php
208 bytes
08/12/2024 10:35:36 AM
rw-r--r--
📄
ApiClient.php
6.1 KB
08/12/2024 10:35:36 AM
rw-r--r--
📁
CreateActionLink
-
08/12/2024 10:36:25 AM
rwxr-xr-x
📄
CreateActionLink.php
1.37 KB
08/12/2024 10:35:36 AM
rw-r--r--
📁
CreateSessionCookie
-
08/12/2024 10:36:25 AM
rwxr-xr-x
📄
CreateSessionCookie.php
2.21 KB
08/12/2024 10:35:36 AM
rw-r--r--
📄
CustomTokenViaGoogleIam.php
3.16 KB
08/12/2024 10:35:36 AM
rw-r--r--
📄
DeleteUsersRequest.php
1.69 KB
08/12/2024 10:35:36 AM
rw-r--r--
📄
DeleteUsersResult.php
1.66 KB
08/12/2024 10:35:36 AM
rw-r--r--
📄
DisabledLegacyCustomTokenGenerator.php
659 bytes
08/12/2024 10:35:36 AM
rw-r--r--
📄
DisabledLegacyIdTokenVerifier.php
505 bytes
08/12/2024 10:35:36 AM
rw-r--r--
📄
IdTokenVerifier.php
4.57 KB
08/12/2024 10:35:36 AM
rw-r--r--
📄
IsTenantAware.php
147 bytes
08/12/2024 10:35:36 AM
rw-r--r--
📁
SendActionLink
-
08/12/2024 10:36:25 AM
rwxr-xr-x
📄
SendActionLink.php
1.78 KB
08/12/2024 10:35:36 AM
rw-r--r--
📁
SignIn
-
08/12/2024 10:36:25 AM
rwxr-xr-x
📄
SignIn.php
96 bytes
08/12/2024 10:35:36 AM
rw-r--r--
📄
SignInAnonymously.php
571 bytes
08/12/2024 10:35:36 AM
rw-r--r--
📄
SignInResult.php
3.77 KB
08/12/2024 10:35:36 AM
rw-r--r--
📄
SignInWithCustomToken.php
821 bytes
08/12/2024 10:35:36 AM
rw-r--r--
📄
SignInWithEmailAndOobCode.php
973 bytes
08/12/2024 10:35:36 AM
rw-r--r--
📄
SignInWithEmailAndPassword.php
1.03 KB
08/12/2024 10:35:36 AM
rw-r--r--
📄
SignInWithIdpCredentials.php
2.75 KB
08/12/2024 10:35:36 AM
rw-r--r--
📄
SignInWithRefreshToken.php
828 bytes
08/12/2024 10:35:36 AM
rw-r--r--
📄
TenantId.php
421 bytes
08/12/2024 10:35:37 AM
rw-r--r--
📄
UserInfo.php
1.11 KB
08/12/2024 10:35:37 AM
rw-r--r--
📄
UserMetaData.php
1.63 KB
08/12/2024 10:35:37 AM
rw-r--r--
📄
UserRecord.php
3.6 KB
08/12/2024 10:35:37 AM
rw-r--r--
Editing: UserRecord.php
Close
<?php declare(strict_types=1); namespace Kreait\Firebase\Auth; use DateTimeImmutable; use Kreait\Firebase\Util\Deprecation; use Kreait\Firebase\Util\DT; use Kreait\Firebase\Util\JSON; /** * @property array<string, mixed> $customAttributes Deprecated, use {@see UserRecord::$customClaims} instead */ class UserRecord implements \JsonSerializable { public string $uid; public bool $emailVerified = false; public bool $disabled = false; public UserMetaData $metadata; public ?string $email = null; public ?string $displayName = null; public ?string $photoUrl = null; public ?string $phoneNumber = null; /** @var UserInfo[] */ public array $providerData = []; public ?string $passwordHash = null; public ?string $passwordSalt = null; /** @var array<string, mixed> */ public array $customClaims = []; public ?DateTimeImmutable $tokensValidAfterTime = null; public ?string $tenantId = null; public function __construct() { $this->metadata = new UserMetaData(); $this->uid = ''; } /** * @param array<string, mixed> $data */ public static function fromResponseData(array $data): self { $record = new self(); $record->uid = $data['localId'] ?? ''; $record->email = $data['email'] ?? null; $record->emailVerified = $data['emailVerified'] ?? $record->emailVerified; $record->displayName = $data['displayName'] ?? null; $record->photoUrl = $data['photoUrl'] ?? null; $record->phoneNumber = $data['phoneNumber'] ?? null; $record->disabled = $data['disabled'] ?? $record->disabled; $record->metadata = self::userMetaDataFromResponseData($data); $record->providerData = self::userInfoFromResponseData($data); $record->passwordHash = $data['passwordHash'] ?? null; $record->passwordSalt = $data['salt'] ?? null; $record->tenantId = $data['tenantId'] ?? $data['tenant_id'] ?? null; if ($data['validSince'] ?? null) { $record->tokensValidAfterTime = DT::toUTCDateTimeImmutable($data['validSince']); } if ($customClaims = $data['customClaims'] ?? $data['customAttributes'] ?? '{}') { $record->customClaims = JSON::decode($customClaims, true); } return $record; } /** * @param array<string, mixed> $data */ private static function userMetaDataFromResponseData(array $data): UserMetaData { return UserMetaData::fromResponseData($data); } /** * @param array<string, mixed> $data * * @return array<int, UserInfo> */ private static function userInfoFromResponseData(array $data): array { return \array_map( static fn (array $userInfoData) => UserInfo::fromResponseData($userInfoData), $data['providerUserInfo'] ?? [] ); } /** * @return array<string, mixed> */ public function jsonSerialize(): array { $data = \get_object_vars($this); $data['tokensValidAfterTime'] = $this->tokensValidAfterTime !== null ? $this->tokensValidAfterTime->format(DATE_ATOM) : null; return $data; } /** * @return mixed */ public function __get(string $name) { if (\mb_strtolower($name) === 'customattributes') { Deprecation::trigger(__CLASS__.'::customAttributes', __CLASS__.'::customClaims'); return $this->customClaims; } return $this->{$name}; } }