FireForNet.Firebase.Auth.Android
1.0.1-preview.22
Prefix Reserved
dotnet add package FireForNet.Firebase.Auth.Android --version 1.0.1-preview.22
NuGet\Install-Package FireForNet.Firebase.Auth.Android -Version 1.0.1-preview.22
<PackageReference Include="FireForNet.Firebase.Auth.Android" Version="1.0.1-preview.22" />
<PackageVersion Include="FireForNet.Firebase.Auth.Android" Version="1.0.1-preview.22" />
<PackageReference Include="FireForNet.Firebase.Auth.Android" />
paket add FireForNet.Firebase.Auth.Android --version 1.0.1-preview.22
#r "nuget: FireForNet.Firebase.Auth.Android, 1.0.1-preview.22"
#:package FireForNet.Firebase.Auth.Android@1.0.1-preview.22
#addin nuget:?package=FireForNet.Firebase.Auth.Android&version=1.0.1-preview.22&prerelease
#tool nuget:?package=FireForNet.Firebase.Auth.Android&version=1.0.1-preview.22&prerelease
FireForNet.Firebase.Auth.Android
Native (non-MAUI) Android platform integration for FireForNet Firebase Authentication.
About FireForNet
FireForNet is a platform-agnostic, .NET-native Firebase Client SDK developed as part of the Circuids ecosystem. It provides a consistent Firebase client development experience across .NET application environments, while allowing platform-specific implementations where Firebase requires them.
About This Package
This package provides Android-specific Firebase Authentication functionality for FireForNet. It targets net10.0-android with no MAUI dependency, making it suitable for bare .NET Android apps (Avalonia Android, WinUI-style Android, terminal services, etc.).
It provides:
- Token storage —
KeystoreTokenStorageencrypts auth tokens at rest using Jetpack SecurityEncryptedFile+MasterKey(AES-256-GCM, key held in the Android KeyStore). The encrypted file lives in the app's private files directory. On corruption or key loss the file is deleted and storage returns empty. - Web authentication (opt-in) —
CustomTabsWebAuthProviderlaunches the Firebase__/auth/handlerflow in a system browser tab via Custom Tabs.
Installation
dotnet add package FireForNet.Firebase.Auth.Android
Usage
services.AddFirebase(new FirebaseOptions
{
ApiKey = "your-api-key",
ProjectId = "your-project"
})
.AddFirebaseAuth()
.UseAndroid(options =>
{
options.EnableTokenStorage = true; // default: true
options.EnableWebAuthProvider = true; // default: false (opt-in, see below)
});
MAUI apps on Android should normally call UseMaui() from FireForNet.Firebase.Auth.Maui, which delegates to this package on the Android TFM.
Web auth provider setup (opt-in)
EnableWebAuthProvider defaults to false because two consumer-side setup steps are required:
- Register an
IAndroidActivityContext(or rely on the default, which tracks the foreground activity viaApplication.RegisterActivityLifecycleCallbacks). CallDefaultAndroidActivityContext.Attach(Application)once at startup. - Add the redirect
<intent-filter>to yourAndroidManifest.xmlfor the scheme derived from your package name (reverse-DNS). For packagecom.example.appthe scheme isapp.example.com:
<activity android:name=".MainActivity" ...>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="app.example.com" />
</intent-filter>
</activity>
Forward the redirect intent from your Activity.OnNewIntent to the provider:
protected override void OnNewIntent(Intent intent)
{
base.OnNewIntent(intent);
_webAuthProvider.HandleCallbackAsync(intent.Data);
}
Platform / Framework Support
| Platform / Framework | Status |
|---|---|
| Android (net10.0-android, non-MAUI) | Preview |
Documentation
Comprehensive FireForNet documentation is being prepared for the Release Candidate stage.
Project Status
FireForNet is currently available as a Preview release and is approaching its Release Candidate milestone. APIs, package structure, and implementation details may continue to evolve before RC and GA.
The RC milestone will be followed by an extensive cross-platform validation and testing phase before the first GA release.
All FireForNet packages are part of a coordinated release train and share the same version number.
Source Availability
FireForNet is currently being developed in a private source repository during the Preview development phase. The source will be made publicly available as the project approaches its open-source phase, with the public repository established from the appropriate release milestone.
Until then, NuGet Preview packages provide the public distribution channel for evaluating and using FireForNet.
License
This package is licensed under the Apache-2.0 license.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-android36.0 is compatible. |
-
net10.0-android36.0
- FireForNet.Firebase.Auth (>= 1.0.1-preview.22)
- Xamarin.AndroidX.Browser (>= 1.8.0)
- Xamarin.AndroidX.Security.SecurityCrypto (>= 1.1.0.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on FireForNet.Firebase.Auth.Android:
| Package | Downloads |
|---|---|
|
FireForNet.Firebase.Auth.Maui
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.1-preview.22 | 55 | 9/27/2026 |
| 1.0.1-preview.21 | 64 | 9/22/2026 |
| 1.0.1-preview.20 | 61 | 9/18/2026 |
v1.0.1-preview.22
- Synchronized package version with the preview.22 release.
v1.0.1-preview.21
- No functional changes; synchronized with the framework-free MAUI integration sweep.
v1.0.1-preview.20
- Synchronized package version with the preview.20 release.
v1.0.1-preview.19
- Synchronized package version with the preview.19 release.
v1.0.1-preview.18
- Synchronized package version with the preview.18 release.
v1.0.1-preview.17
- Synchronized package version with the preview.17 release.
v1.0.1-preview.16
- Synchronized package version with the preview.16 release.
v1.0.1-preview.15
- Synchronized package version with the preview.15 release.
v1.0.1-preview.14
- Synchronized package version with the preview.14 release.
v1.0.1-preview.13
- Synchronized package version with the preview.13 release.
v1.0.1-preview.12
- Synchronized package version with the preview.12 release.