Język

AuthenticationRefreshOptions Klasa

Definicja

Konfiguruje automatyczne odświeżanie tokenu uwierzytelniania dla elementu HubConnection.

public sealed class AuthenticationRefreshOptions
type AuthenticationRefreshOptions = class
Public NotInheritable Class AuthenticationRefreshOptions
Dziedziczenie
AuthenticationRefreshOptions

Konstruktory

Nazwisko Opis
AuthenticationRefreshOptions()

Konfiguruje automatyczne odświeżanie tokenu uwierzytelniania dla elementu HubConnection.

Właściwości

Nazwisko Opis
EnableAutoRefresh

Włącza automatyczne odświeżanie tokenu przed wygaśnięciem tokenu zgłaszanego przez serwer. Wartość domyślna to true.

RefreshBeforeExpiration

Jak daleko przed wygaśnięciem tokenu zgłaszanego przez serwer klient powinien odświeżyć. Klient planuje odświeżenie pod adresem: now + tokenLifetimeSeconds - RefreshBeforeExpiration. Wartość domyślna to 5 minut.

Dotyczy