JwtTokenExtractor Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
| Nazwa | Opis |
|---|---|
| JwtTokenExtractor(HttpClient, TokenValidationParameters, String, HashSet<String>) |
Inicjuje nowe wystąpienie klasy JwtTokenExtractor. Pobiera istotne dane z tokenów JWT. |
| JwtTokenExtractor(HttpClient, TokenValidationParameters, String, HashSet<String>, ConfigurationManager<IDictionary<String,HashSet<String>>>) |
Inicjuje nowe wystąpienie klasy JwtTokenExtractor. Pobiera istotne dane z tokenów JWT. |
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.
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.
- customEndorsementsConfig
- ConfigurationManager<IDictionary<String,HashSet<String>>>
Konfiguracja niestandardowych poświadczeń do wykorzystania przez JwtTokenExtractor.