Exemplo n.º 1
0
        public void Init()
        {
            var crypto = new BouncyCastleCrypto();

            _rsaPrivate = crypto.LoadRsaPrivateKey(File.ReadAllText("test-private.key"));
            _rsaPublic  = crypto.LoadRsaPublicKey(File.ReadAllText("test-public.key"));

            _jwe = new JweService(_rsaPrivate);
        }
Exemplo n.º 2
0
 public PersonalController(
     IPersonalManager personalManager,
     JweService jweService,
     IPersonalPresenter personalPresenter,
     IServiceProvider serviceProvider) : base(serviceProvider)
 {
     this.personalManager   = personalManager;
     this.jweService        = jweService;
     this.personalPresenter = personalPresenter;
 }
Exemplo n.º 3
0
 public AuthController(
     DataBaseConnection db,
     JweService jweService,
     IAuthManager authManager,
     IOptions <GlobalOptions> globalOptions,
     IServiceProvider serviceProvider) : base(serviceProvider)
 {
     this.globalOptions = globalOptions.Value;
     this.db            = db;
     this.jweService    = jweService;
     this.authManager   = authManager;
 }
Exemplo n.º 4
0
 public AuthController(
     DataBaseConnection db,
     JweService jweService,
     IAuthManager authManager,
     IOptionsMonitor <UrlPathsOptions> urlsOptions,
     IOptionsMonitor <GlobalOptions> globalOptions,
     IServiceProvider serviceProvider) : base(serviceProvider)
 {
     this.urlsOptions   = urlsOptions;
     this.globalOptions = globalOptions;
     this.db            = db;
     this.jweService    = jweService;
     this.authManager   = authManager;
 }