Ejemplo n.º 1
0
 public SContext(IServiceCollection services) : base(services)
 {
     authSessionResolver = new AuthSessionResolver <SContext>(this);
     remoteAuthClient    = new GateAuthClient(GATE_APP, new Uri(GATE_SERVER), GATE_SECRET);
     userManager         = new UserManager(this);
     authenticator       = new BearerAuthenticator <SContext>(this);
 }
Ejemplo n.º 2
0
 public SContext(IServiceCollection services, SConfig config) : base(services)
 {
     this.config   = config;
     log.verbosity = config.logging.Verbosity;
     userManager   = new UserManagerService(this);
     tokenResolver = new TokenAuthenticationService(this);
     authenticator = new BearerAuthenticator(this);
 }