public OBAuthenticationStateProvider(ILocalStorageService localStorage, OpenBulletSettingsService settings, IGuestRepository guestRepo, JwtValidationService jwtValidator) { this.localStorage = localStorage; this.settingsService = settings; this.guestRepo = guestRepo; this.jwtValidator = jwtValidator; }
public MainWindowViewModel() { obSettingsService = SP.GetService <OpenBulletSettingsService>(); configService = SP.GetService <ConfigService>(); configService.OnConfigSelected += (sender, config) => { OnPropertyChanged(nameof(IsConfigSelected)); ConfigSelected?.Invoke(config); }; }
public JwtValidationService(OpenBulletSettingsService settingsService) { handler = new JwtSecurityTokenHandler(); validationParams = new TokenValidationParameters { ValidateIssuer = false, ValidateAudience = false, ValidateLifetime = true, ValidateIssuerSigningKey = true, IssuerSigningKey = new SymmetricSecurityKey(settingsService.Settings.SecuritySettings.JwtKey), ClockSkew = TimeSpan.Zero }; }
public OBSettingsViewModel() { service = SP.GetService <OpenBulletSettingsService>(); CreateCollections(); }
public PersistentSettingsService(OpenBulletSettingsService openBulletSettingsService) { this.openBulletSettingsService = openBulletSettingsService; }
public MultiRunJobViewer() { mainWindow = SP.GetService <MainWindow>(); obSettingsService = SP.GetService <OpenBulletSettingsService>(); InitializeComponent(); }
public ProxyCheckJobViewer() { obSettingsService = SP.GetService <OpenBulletSettingsService>(); InitializeComponent(); }