Stay organized with collections
Save and categorize content based on your preferences.
FirebaseAdmin.AppOptions
Configurable options that can be specified when creating a FirebaseApp.
Summary
See Initialize the SDK for code samples and detailed documentation.
Properties
|
Credential
|
GoogleCredential
Gets or sets the GoogleCredential used to authorize an app.
|
HttpClientFactory
|
HttpClientFactory
Gets or sets the HttpClientFactory to use when making Firebase requests.
|
ProjectId
|
string
Gets or sets the Google Cloud Platform project ID that should be associated with an app.
|
ServiceAccountId
|
string
Gets or sets the unique ID of the service account that should be associated with an app.
|
Properties
Credential
GoogleCredential Credential
Gets or sets the GoogleCredential used to authorize an app.
All service calls made by the app will be authorized using this.
HttpClientFactory
HttpClientFactory HttpClientFactory
Gets or sets the HttpClientFactory to use when making Firebase requests.
ProjectId
string ProjectId
Gets or sets the Google Cloud Platform project ID that should be associated with an app.
ServiceAccountId
string ServiceAccountId
Gets or sets the unique ID of the service account that should be associated with an app.
This is used to create custom auth tokens when service account credentials are not available. The service account ID can be found in the client_email
field of the service account JSON.
Public functions
AppOptions
AppOptions()
Initializes a new instance of the AppOptions class.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-03-24 UTC.
[null,null,["Last updated 2022-03-24 UTC."],[],[],null,["# FirebaseAdmin.AppOptions Class Reference\n\nFirebaseAdmin.AppOptions\n========================\n\nConfigurable options that can be specified when creating a [FirebaseApp](/docs/reference/admin/dotnet/class/firebase-admin/firebase-app#class_firebase_admin_1_1_firebase_app).\n\nSummary\n-------\n\nSee [Initialize the SDK](https://firebase.google.com/docs/admin/setup#initialize_the_sdk) for code samples and detailed documentation.\n\n| ### Constructors and Destructors ||\n|---|---|\n| [AppOptions](#class_firebase_admin_1_1_app_options_1a1cd8c12a6a89e8ff00a3f61fe7f9475c)`()` Initializes a new instance of the [AppOptions](/docs/reference/admin/dotnet/class/firebase-admin/app-options#class_firebase_admin_1_1_app_options) class. ||\n\n| ### Properties ||\n|-----------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|\n| [Credential](#class_firebase_admin_1_1_app_options_1abec3725984337eb9889e2eae43a53c4e) | `GoogleCredential` Gets or sets the GoogleCredential used to authorize an app. |\n| [HttpClientFactory](#class_firebase_admin_1_1_app_options_1a828e351aeabd2bb4ea99c39601273e4d) | `HttpClientFactory` Gets or sets the HttpClientFactory to use when making Firebase requests. |\n| [ProjectId](#class_firebase_admin_1_1_app_options_1a885e4a6403916377769897aef4265dcb) | `string` Gets or sets the Google Cloud Platform project ID that should be associated with an app. |\n| [ServiceAccountId](#class_firebase_admin_1_1_app_options_1a9ce2d2b4a024bd706677dbceeebaf7d1) | `string` Gets or sets the unique ID of the service account that should be associated with an app. |\n\nProperties\n----------\n\n### Credential\n\n```text\nGoogleCredential Credential\n``` \nGets or sets the GoogleCredential used to authorize an app.\n\nAll service calls made by the app will be authorized using this. \n\n### HttpClientFactory\n\n```text\nHttpClientFactory HttpClientFactory\n``` \nGets or sets the HttpClientFactory to use when making Firebase requests. \n\n### ProjectId\n\n```text\nstring ProjectId\n``` \nGets or sets the Google Cloud Platform project ID that should be associated with an app. \n\n### ServiceAccountId\n\n```text\nstring ServiceAccountId\n``` \nGets or sets the unique ID of the service account that should be associated with an app.\n\nThis is used to [create custom auth tokens](https://firebase.google.com/docs/auth/admin/create-custom-tokens) when service account credentials are not available. The service account ID can be found in the `client_email` field of the service account JSON.\n\nPublic functions\n----------------\n\n### AppOptions\n\n```text\n AppOptions()\n``` \nInitializes a new instance of the [AppOptions](/docs/reference/admin/dotnet/class/firebase-admin/app-options#class_firebase_admin_1_1_app_options) class."]]