示例#1
0
 public AuthenticationService(
     IJSRuntime jsRuntime,
     IAuthenticationStateProvider authenticationStateProvider,
     AuthenticationEventHandler authenticationEventHandler,
     NavigationManager navigationManager,
     ClientOptions clientOptions)
 {
     _jsRuntime = jsRuntime;
     _authenticationStateProvider = authenticationStateProvider;
     _authenticationEventHandler  = authenticationEventHandler;
     _navigationManager           = navigationManager;
     _clientOptions = clientOptions;
 }
 public BlazorAuthenticationStateProvider(
     IJSRuntime jsRuntime,
     NavigationManager navigationManager,
     Task <ClientOptions> clientOptionsTask,
     IClaimsParser <TUser> claimsParser,
     AuthenticationEventHandler authenticationEventHandler,
     Task <OpenIdConnectOptions> openIdConnectOptionsTask,
     IServiceProvider serviceProvider)
 {
     _jsRuntime                  = jsRuntime;
     _navigationManager          = navigationManager;
     _clientOptionsTask          = clientOptionsTask;
     _claimsParser               = claimsParser;
     _authenticationEventHandler = authenticationEventHandler;
     _openIdConnectOptionsTask   = openIdConnectOptionsTask;
     _serviceProvider            = serviceProvider;
 }
示例#3
0
 public BlazorAuthenticationStateProvider(
     IJSRuntime jsRuntime,
     NavigationManager navigationManager,
     ClientOptions clientOptions,
     IClaimsParser <TUser> claimsParser,
     AuthenticationEventHandler authenticationEventHandler,
     HttpClient httpClient,
     OpenIdConnectOptions openIdConnectOptions,
     IServiceProvider serviceProvider)
 {
     _jsRuntime                  = jsRuntime;
     _navigationManager          = navigationManager;
     _clientOptions              = clientOptions;
     _claimsParser               = claimsParser;
     _authenticationEventHandler = authenticationEventHandler;
     _openIdConnectOptions       = openIdConnectOptions;
     _serviceProvider            = serviceProvider;
 }
 public static void Initialize(AuthenticationEventHandler authenticationEventHandler)
 {
     _authenticationEventHandler = authenticationEventHandler;
 }