Jaa


JwtTokenExtractor Constructors

Definition

Overloads

JwtTokenExtractor(HttpClient, TokenValidationParameters, String, HashSet<String>)

Initializes a new instance of the JwtTokenExtractor class. Extracts relevant data from JWT Tokens.

JwtTokenExtractor(HttpClient, TokenValidationParameters, String, HashSet<String>, ConfigurationManager<IDictionary<String,HashSet<String>>>)

Initializes a new instance of the JwtTokenExtractor class. Extracts relevant data from JWT Tokens.

JwtTokenExtractor(HttpClient, TokenValidationParameters, String, HashSet<String>)

Initializes a new instance of the JwtTokenExtractor class. Extracts relevant data from JWT Tokens.

public JwtTokenExtractor (System.Net.Http.HttpClient httpClient, Microsoft.IdentityModel.Tokens.TokenValidationParameters tokenValidationParameters, string metadataUrl, System.Collections.Generic.HashSet<string> allowedSigningAlgorithms);
new Microsoft.Bot.Connector.Authentication.JwtTokenExtractor : System.Net.Http.HttpClient * Microsoft.IdentityModel.Tokens.TokenValidationParameters * string * System.Collections.Generic.HashSet<string> -> Microsoft.Bot.Connector.Authentication.JwtTokenExtractor
Public Sub New (httpClient As HttpClient, tokenValidationParameters As TokenValidationParameters, metadataUrl As String, allowedSigningAlgorithms As HashSet(Of String))

Parameters

httpClient
HttpClient

As part of validating JWT Tokens, endorsements need to be fetched from sources specified by the relevant security URLs. This HttpClient is used to allow for resource pooling around those retrievals. As those resources require TLS sharing the HttpClient is important to overall performance.

tokenValidationParameters
TokenValidationParameters

tokenValidationParameters.

metadataUrl
String

metadataUrl.

allowedSigningAlgorithms
HashSet<String>

allowedSigningAlgorithms.

Applies to

JwtTokenExtractor(HttpClient, TokenValidationParameters, String, HashSet<String>, ConfigurationManager<IDictionary<String,HashSet<String>>>)

Initializes a new instance of the JwtTokenExtractor class. Extracts relevant data from JWT Tokens.

public JwtTokenExtractor (System.Net.Http.HttpClient httpClient, Microsoft.IdentityModel.Tokens.TokenValidationParameters tokenValidationParameters, string metadataUrl, System.Collections.Generic.HashSet<string> allowedSigningAlgorithms, Microsoft.IdentityModel.Protocols.ConfigurationManager<System.Collections.Generic.IDictionary<string,System.Collections.Generic.HashSet<string>>> customEndorsementsConfig);
new Microsoft.Bot.Connector.Authentication.JwtTokenExtractor : System.Net.Http.HttpClient * Microsoft.IdentityModel.Tokens.TokenValidationParameters * string * System.Collections.Generic.HashSet<string> * Microsoft.IdentityModel.Protocols.ConfigurationManager<System.Collections.Generic.IDictionary<string, System.Collections.Generic.HashSet<string>>> -> Microsoft.Bot.Connector.Authentication.JwtTokenExtractor
Public Sub New (httpClient As HttpClient, tokenValidationParameters As TokenValidationParameters, metadataUrl As String, allowedSigningAlgorithms As HashSet(Of String), customEndorsementsConfig As ConfigurationManager(Of IDictionary(Of String, HashSet(Of String))))

Parameters

httpClient
HttpClient

As part of validating JWT Tokens, endorsements need to be fetched from sources specified by the relevant security URLs. This HttpClient is used to allow for resource pooling around those retrievals. As those resources require TLS sharing the HttpClient is important to overall performance.

tokenValidationParameters
TokenValidationParameters

tokenValidationParameters.

metadataUrl
String

metadataUrl.

allowedSigningAlgorithms
HashSet<String>

allowedSigningAlgorithms.

customEndorsementsConfig
ConfigurationManager<IDictionary<String,HashSet<String>>>

Custom endorsement configuration to be used by the JwtTokenExtractor.

Applies to