BotAuthenticationOptions.cs
1 using Microsoft.AspNetCore.Authentication.JwtBearer;
2 using Microsoft.AspNetCore.Builder;
3 
4 namespace Microsoft.Bot.Connector
5 {
9  public sealed class BotAuthenticationOptions : AuthenticationOptions
10  {
11  public BotAuthenticationOptions() : base()
12  {
13  AuthenticationScheme = JwtBearerDefaults.AuthenticationScheme;
14  AutomaticAuthenticate = true;
15  AutomaticChallenge = false;
16  }
17 
21  public ICredentialProvider CredentialProvider { set; get; }
22 
26  public string OpenIdConfiguration { set; get; } = JwtConfig.ToBotFromChannelOpenIdMetadataUrl;
27 
31  public bool DisableEmulatorTokens { set; get; } = false;
32 
37  public bool SaveToken { set; get; } = true;
38  }
39 }
Options for BotAuthenticationMiddleware.
const string ToBotFromChannelOpenIdMetadataUrl
TO BOT FROM CHANNEL: OpenID metadata document for tokens coming from MSA
Definition: JwtConfig.cs:28
Configuration for JWT tokens
Definition: JwtConfig.cs:13