Exemplo n.º 1
0
 public WopiServer(IWebDavManager webDavManager, IAccessTokenManager tokenManager, IWebDavAuthorizationService webDavAuthorizationService, IWopiFileManager fileManager)
 {
     _webDavManager = webDavManager;
     _tokenManager = tokenManager;
     _webDavAuthorizationService = webDavAuthorizationService;
     _fileManager = fileManager;
 }
Exemplo n.º 2
0
 public CobaltManager(IWebDavManager webDavManager, IWopiFileManager fileManager,
     IAccessTokenManager tokenManager)
 {
     _webDavManager = webDavManager;
     _fileManager = fileManager;
     _tokenManager = tokenManager;
 }
        public CobaltSessionManager(IWebDavManager webDavManager, IAccessTokenManager tokenManager, ITtlStorage storage)
        {
            _webDavManager = webDavManager;

            _tokenManager = tokenManager;
            _storage = storage;
        }
Exemplo n.º 4
0
        public CobaltManager(IWebDavManager webDavManager, IWopiFileManager fileManager,
            IAccessTokenManager tokenManager)
        {
            _webDavManager = webDavManager;
            _fileManager = fileManager;
            _tokenManager = tokenManager;

            Log = LogManager.GetLogger(this.GetType());
        }
Exemplo n.º 5
0
 public OwaController(IWopiServer wopiServer, IWebDavManager webDavManager, IAuthenticationService authenticationService, IAccessTokenManager tokenManager, ICryptography cryptography, ICobaltManager cobaltManager)
 {
     _wopiServer = wopiServer;
     _webDavManager = webDavManager;
     _authenticationService = authenticationService;
     _tokenManager = tokenManager;
     _cryptography = cryptography;
     _cobaltManager = cobaltManager;
 }
Exemplo n.º 6
0
        public FileSystemController(ICryptography cryptography, IWebDavManager webdavManager, IAuthenticationService authenticationService, IAccessTokenManager tokenManager, IWebDavAuthorizationService webDavAuthorizationService, FileOpenerManager openerManager, IUserSettingsManager userSettingsManager)
        {
            _cryptography = cryptography;
            _webdavManager = webdavManager;
            _authenticationService = authenticationService;
            _tokenManager = tokenManager;
            _webDavAuthorizationService = webDavAuthorizationService;
            _userSettingsManager = userSettingsManager;

            _openerManager = new FileOpenerManager();
        }
        private async Task <HttpResponseMessage> RefreshAccessTokenAndSendRequestAgain(HttpRequestMessage request, CancellationToken cancellationToken, IAccessTokenManager tokenManager)
        {
            await RefreshToken(tokenManager, request);

            return(await base.SendAsync(request, cancellationToken));
        }
Exemplo n.º 8
0
        public FileSystemController(ICryptography cryptography, IWebDavManager webdavManager, IAuthenticationService authenticationService, IAccessTokenManager tokenManager, IWebDavAuthorizationService webDavAuthorizationService, FileOpenerManager openerManager, IUserSettingsManager userSettingsManager)
        {
            _cryptography               = cryptography;
            _webdavManager              = webdavManager;
            _authenticationService      = authenticationService;
            _tokenManager               = tokenManager;
            _webDavAuthorizationService = webDavAuthorizationService;
            _userSettingsManager        = userSettingsManager;

            _openerManager = new FileOpenerManager();
        }
Exemplo n.º 9
0
 public AuthorizationFilter(IAccessTokenManager accessTokenManager)
 {
     _accessTokenManager = accessTokenManager;
 }
Exemplo n.º 10
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IAccessTokenManager authMgr)
        {
            loggerFactory.AddConsole(Configuration.GetSection("Logging"));
            loggerFactory.AddDebug();

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                app.UseBrowserLink();
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
            }

            app.UseStaticFiles();

            //app.UseSession();

            app.UseCookieAuthentication();

            app.UseOpenIdConnectAuthentication(authMgr.ConnectionOptions);

            app.UseMvc(routes =>
            {
                routes.MapRoute(
                    name: "default",
                    template: "{controller=Home}/{action=Index}/{id?}");
            });
        }
Exemplo n.º 11
0
 public OwaController(IWopiServer wopiServer, IWebDavManager webDavManager, IAuthenticationService authenticationService, IAccessTokenManager tokenManager, ICryptography cryptography, ICobaltManager cobaltManager)
 {
     _wopiServer            = wopiServer;
     _webDavManager         = webDavManager;
     _authenticationService = authenticationService;
     _tokenManager          = tokenManager;
     _cryptography          = cryptography;
     _cobaltManager         = cobaltManager;
 }
Exemplo n.º 12
0
 public NavigationService(IAccessTokenManager accessTokenManager, IPageService pageService)
 {
     _accessTokenManager = accessTokenManager;
     _pageService        = pageService;
 }
Exemplo n.º 13
0
 public RefreshableAction(IAccessTokenManager tokenManager, IRepository <ExternalToken> externalTokens)
 {
     _tokenManager       = tokenManager;
     this.externalTokens = externalTokens;
 }
Exemplo n.º 14
0
 public TokenManagerAuthenticationHandler(IAccessTokenManager accessTokenManager)
 {
     _tokenManager = accessTokenManager;
 }
 public UserConfigurationService(AbpApiClient apiClient, IAccessTokenManager tokenManager)
 {
     _apiClient    = apiClient;
     _tokenManager = tokenManager;
 }
Exemplo n.º 16
0
 static AccessTokenProvider()
 {
     Manager = new AccessTokenManagerSimple();
 }
Exemplo n.º 17
0
 public AbpApiClient(IAccessTokenManager accessTokenManager, IApplicationContext applicationContext)
 {
     _accessTokenManager = accessTokenManager;
     _applicationContext = applicationContext;
 }
Exemplo n.º 18
0
 public MenuProvider(IAccessTokenManager accessTokenManager)
 {
     _accessTokenManager = accessTokenManager;
 }
Exemplo n.º 19
0
 public WxCloudApi(IOptions <WxCloudOption> options, IAccessTokenManager accessTokenManager)
 {
     _wxCloudOption      = options.Value;
     _accessTokenManager = accessTokenManager;
 }
Exemplo n.º 20
0
 public AccessTokenTest()
 {
     _accessTokenAppService = Resolve <IAccessTokenAppService>();
     _accessTokenManager    = Resolve <IAccessTokenManager>();
     _accessTokenRepository = Resolve <IAccessTokenRepository>();
 }
Exemplo n.º 21
0
 public ValuesController(IAccessTokenManager authMgr)
 {
     this._tokenManager = authMgr;
 }
Exemplo n.º 22
0
 public AccountModel(IUserModel userModel, IPasswordHasher <User> passwordHasher, IAccessTokenManager accessTokenManager)
 {
     _userModel          = userModel;
     _passwordHasher     = passwordHasher;
     _accessTokenManager = accessTokenManager;
 }