BotConfig Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configuration model for bot authentication credentials, sourced from a Microsoft.Identity.Web compatible configuration section (e.g. "AzureAd").
public sealed class BotConfig
type BotConfig = class
Public NotInheritable Class BotConfig
- Inheritance
-
BotConfig
Constructors
| Name | Description |
|---|---|
| BotConfig() | |
Properties
| Name | Description |
|---|---|
| BotTokenIssuer |
Gets or sets the expected Bot Framework token issuer used to validate inbound
Bot Framework tokens. For sovereign clouds, set |
| ClientId |
Gets or sets the application (client) ID from Azure AD app registration. |
| DangerouslyAllowUnauthenticatedRequests |
Gets or sets whether inbound bot requests should bypass authentication. This should only be enabled for local development. |
| EntraInstance |
Gets or sets the Entra login instance used when validating Entra-issued tokens.
For sovereign clouds, set |
| GraphBaseUrl |
Gets or sets the Microsoft Graph host root that Graph-backed features address.
For sovereign clouds, set A host root, not a versioned endpoint: callers append their own API version, so a pre-versioned value
produces |
| OpenIdMetadataUrl |
Gets or sets the Bot Framework OpenID metadata URL used to fetch signing keys
for validating inbound Bot Framework tokens. For sovereign clouds, set
|
| SectionName |
Gets or sets the configuration section name used to resolve this BotConfig. Also used as the MSAL named-options key and the JWT auth scheme name. |
| TenantId |
Gets or sets the Azure AD tenant ID. |
Methods
| Name | Description |
|---|---|
| Resolve(IServiceCollection, String) |
Resolves a BotConfig from a service collection by extracting configuration and logger. |