- User records now include the password salt and tenant ID, if available
- Reworked credentials auto-discovery to use the discovery already provided by Google's libraries, deprecating the previous auto-discovery methods. It is still possible to disable auto-discovery.
- Passing custom HTTP Client options and middlewares has been deprecated. The SDK already reacts to errors and customizations might lead to unexpected behavior.
- If you want to debug HTTP requests, add
->withEnabledDebug()
to the Factory configuration chain. (Documentation) - If you need to configure a proxy, use
->withHttpProxy($proxy)
. (Documentation)
Added
Kreait\Firebase\Factory::withProjectId(string $projectId): self
Kreait\Firebase\Factory::withClientEmail(string $clientEmail): self
Kreait\Firebase\Factory::withEnabledDebug(): self
Kreait\Firebase\Factory::withHttpProxy(string $proxy): self
Deprecations
Kreait\Firebase\Factory::withHttpClientConfig()
Kreait\Firebase\Factory::withHttpClientMiddlewares()
Kreait\Firebase\ServiceAccount::discover()
Kreait\Firebase\ServiceAccount::fromArray()
Kreait\Firebase\ServiceAccount::fromJson()
Kreait\Firebase\ServiceAccount::fromJsonFile()
Kreait\Firebase\ServiceAccount::getClientId()
Kreait\Firebase\ServiceAccount::getFilePath()
Kreait\Firebase\ServiceAccount::getSanitizedProjectId()
Kreait\Firebase\ServiceAccount::hasClientId()
Kreait\Firebase\ServiceAccount::hasPrivateKey()
Kreait\Firebase\ServiceAccount::withClientEmail()
Kreait\Firebase\ServiceAccount::withClientId()
Kreait\Firebase\ServiceAccount::withPrivateKey()
Kreait\Firebase\ServiceAccount::withProjectId()
Kreait\Firebase\ServiceAccount::withProjectIdAndServiceAccountId()
Kreait\Firebase\ServiceAccount\Discoverer
Kreait\Firebase\ServiceAccount\Discovery\FromEnvironmentVariable
Kreait\Firebase\ServiceAccount\Discovery\FromGoogleWellKnownFile
Kreait\Firebase\ServiceAccount\Discovery\FromPath
Kreait\Firebase\ServiceAccount\Discovery\OnGoogleCloudPlatform