Język

JwtTokenExtractor Konstruktory

Definicja

Przeciążenia

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

Inicjuje nowe wystąpienie klasy JwtTokenExtractor. Pobiera istotne dane z tokenów JWT.

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))

Parametry

httpClient
HttpClient

W ramach weryfikacji tokenów JWT zaleca się pobieranie poświadczeń ze źródeł określonych przez odpowiednie adresy URL zabezpieczeń. Ten HttpClient służy do umożliwienia poolingu zasobów wokół tych pobierań. Ponieważ te zasoby wymagają TLS, udostępnianie HttpClient jest ważne dla ogólnej wydajności.

tokenValidationParameters
TokenValidationParameters

tokenValidationParameters.

metadataUrl
String

metadataUrl.

allowedSigningAlgorithms
HashSet<String>

allowedSigningAlgorithms.

Dotyczy

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

Inicjuje nowe wystąpienie klasy JwtTokenExtractor. Pobiera istotne dane z tokenów JWT.

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))))

Parametry

httpClient
HttpClient

W ramach weryfikacji tokenów JWT zaleca się pobieranie poświadczeń ze źródeł określonych przez odpowiednie adresy URL zabezpieczeń. Ten HttpClient służy do umożliwienia poolingu zasobów wokół tych pobierań. Ponieważ te zasoby wymagają TLS, udostępnianie HttpClient jest ważne dla ogólnej wydajności.

tokenValidationParameters
TokenValidationParameters

tokenValidationParameters.

metadataUrl
String

metadataUrl.

allowedSigningAlgorithms
HashSet<String>

allowedSigningAlgorithms.

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

Konfiguracja niestandardowych poświadczeń do wykorzystania przez JwtTokenExtractor.

Dotyczy