Microsoft.Bot.Connector.JwtConfig Class Reference

Configuration for JWT tokens More...

Public Attributes

const string ToBotFromChannelOpenIdMetadataUrl = "https://login.botframework.com/v1/.well-known/openidconfiguration"
 TO BOT FROM CHANNEL: OpenID metadata document for tokens coming from MSA More...
 
const string ToBotFromEmulatorOpenIdMetadataUrl = "https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration"
 TO BOT FROM EMULATOR: OpenID metadata document for tokens coming from MSA More...
 
const string ToChannelFromBotLoginUrl = "https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token"
 TO CHANNEL FROM BOT: Login URL More...
 
const string ToChannelFromBotOAuthScope = "https://api.botframework.com/.default"
 TO CHANNEL FROM BOT: OAuth scope to request More...
 

Static Public Attributes

static readonly TokenValidationParameters ToBotFromChannelTokenValidationParameters
 TO BOT FROM CHANNEL: Token validation parameters when connecting to a bot More...
 
static readonly TokenValidationParameters ToBotFromEmulatorTokenValidationParameters
 TO BOT FROM EMULATOR: Token validation parameters when connecting to a channel More...
 

Detailed Description

Configuration for JWT tokens

Definition at line 13 of file JwtConfig.cs.

Member Data Documentation

const string Microsoft.Bot.Connector.JwtConfig.ToBotFromChannelOpenIdMetadataUrl = "https://login.botframework.com/v1/.well-known/openidconfiguration"

TO BOT FROM CHANNEL: OpenID metadata document for tokens coming from MSA

Definition at line 28 of file JwtConfig.cs.

readonly TokenValidationParameters Microsoft.Bot.Connector.JwtConfig.ToBotFromChannelTokenValidationParameters
static
Initial value:
=
new TokenValidationParameters()
{
ValidateIssuer = true,
ValidIssuers = new[] { "https://api.botframework.com" },
ValidateAudience = false,
ValidateLifetime = true,
ClockSkew = TimeSpan.FromMinutes(5),
RequireSignedTokens = true
}

TO BOT FROM CHANNEL: Token validation parameters when connecting to a bot

Definition at line 33 of file JwtConfig.cs.

const string Microsoft.Bot.Connector.JwtConfig.ToBotFromEmulatorOpenIdMetadataUrl = "https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration"

TO BOT FROM EMULATOR: OpenID metadata document for tokens coming from MSA

Definition at line 48 of file JwtConfig.cs.

readonly TokenValidationParameters Microsoft.Bot.Connector.JwtConfig.ToBotFromEmulatorTokenValidationParameters
static
Initial value:
=
new TokenValidationParameters()
{
ValidateIssuer = true,
ValidIssuers = new[] { "https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/", "https://sts.windows.net/d6d49420-f39b-4df7-a1dc-d59a935871db/" },
ValidateAudience = false,
ValidateLifetime = true,
ClockSkew = TimeSpan.FromMinutes(5),
RequireSignedTokens = true
}

TO BOT FROM EMULATOR: Token validation parameters when connecting to a channel

Definition at line 53 of file JwtConfig.cs.

const string Microsoft.Bot.Connector.JwtConfig.ToChannelFromBotLoginUrl = "https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token"

TO CHANNEL FROM BOT: Login URL

Definition at line 18 of file JwtConfig.cs.

const string Microsoft.Bot.Connector.JwtConfig.ToChannelFromBotOAuthScope = "https://api.botframework.com/.default"

TO CHANNEL FROM BOT: OAuth scope to request

Definition at line 23 of file JwtConfig.cs.


The documentation for this class was generated from the following file: