public OBAuthenticationStateProvider(ILocalStorageService localStorage, OpenBulletSettingsService settings,
                                      IGuestRepository guestRepo, JwtValidationService jwtValidator)
 {
     this.localStorage    = localStorage;
     this.settingsService = settings;
     this.guestRepo       = guestRepo;
     this.jwtValidator    = jwtValidator;
 }
Beispiel #2
0
 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
     };
 }
Beispiel #4
0
 public OBSettingsViewModel()
 {
     service = SP.GetService <OpenBulletSettingsService>();
     CreateCollections();
 }
Beispiel #5
0
 public PersistentSettingsService(OpenBulletSettingsService openBulletSettingsService)
 {
     this.openBulletSettingsService = openBulletSettingsService;
 }
Beispiel #6
0
 public MultiRunJobViewer()
 {
     mainWindow        = SP.GetService <MainWindow>();
     obSettingsService = SP.GetService <OpenBulletSettingsService>();
     InitializeComponent();
 }
Beispiel #7
0
 public ProxyCheckJobViewer()
 {
     obSettingsService = SP.GetService <OpenBulletSettingsService>();
     InitializeComponent();
 }