public void Configuration(IAppBuilder app) { // Setup logger for CKFinder LoggerManager.LoggerAdapterFactory = new NLogLoggerAdapterFactory(); // TODO: Needs to be more secure? See: http://benfoster.io/blog/aspnet-webapi-cors // TODO: Editing images doesn't werk yet: 'Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.' // TODO: Do we want to use OWIN Cors for the complete API or do we want to use Web API Cors for the rest of the api // and only use OWIN for the CKFinder Mapping? We need to move it into the setup conenctor if we do. app.UseCors(CorsOptions.AllowAll); /* * Register the "local" type backend file system. */ FileSystemFactory.RegisterFileSystem <LocalStorage>(); /* * Map the CKFinder connector service under a given path. By default the CKFinder JavaScript * client expect the ASP.NET connector to be accessible under the "/ckfinder/connector" route. */ app.Map("/ckfinder/connector", SetupConnector); // Setup WebApi HttpConfiguration httpConfiguration = new HttpConfiguration(); WebApiConfig.Register(httpConfiguration); app.UseWebApi(httpConfiguration); }
private static void RegisterFileSystems() { FileSystemFactory.RegisterFileSystem <LocalStorage>(); FileSystemFactory.RegisterFileSystem <DropboxStorage>(); FileSystemFactory.RegisterFileSystem <AmazonStorage>(); FileSystemFactory.RegisterFileSystem <AzureStorage>(); }
public void Configuration(IAppBuilder app) { FileSystemFactory.RegisterFileSystem <LocalStorage>(); /* * Map the CKFinder connector service under a given path. By default the CKFinder JavaScript * client expects the ASP.NET connector to be accessible under the "/ckfinder/connector" route. */ app.Map("/ckfinder/connector", SetupConnector); }
public void Configuration(IAppBuilder app) { // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=316888 //*Register the "local" type backend file system. FileSystemFactory.RegisterFileSystem <LocalStorage>(); /* * Map the CKFinder connector service under a given path. By default the CKFinder JavaScript * client expect the ASP.NET connector to be accessible under the "/ckfinder/connector" route. */ app.Map("/ckfinder/connector", SetupConnector); }
public void Configuration(IAppBuilder app) { ConfigureAuth(app); FileSystemFactory.RegisterFileSystem <LocalStorage>(); var connectorBuilder = ConfigureConnector(); try { var connector = connectorBuilder.Build(new OwinConnectorFactory()); app.Map("/CKFinder/connector", builder => builder.UseConnector(connector)); } catch (System.Exception ex) { throw; } }
public void Configuration(IAppBuilder app) { ConfigureAuth(app); /* * Start the logger. */ LoggerManager.LoggerAdapterFactory = new NLogLoggerAdapterFactory(); /* * Register the "local" type backend file system. */ FileSystemFactory.RegisterFileSystem <LocalStorage>(); /* * Map the CKFinder connector service under given path. By default CKFinder JavaScript client * expect the .NET connector to be accessible under "/ckfinder/connector" route. */ app.Map("/ckfinder/connector", SetupConnector); }
public static void Configuration(IAppBuilder app) { /* * If you installed CKSource.CKFinder.Connector.Logs.NLog you can start the logger: * LoggerManager.LoggerAdapterFactory = new NLogLoggerAdapterFactory(); * Keep in mind that the logger should be initialized only once and before any other * CKFinder method is invoked. */ /* * Register the "local" type backend file system. */ FileSystemFactory.RegisterFileSystem <LocalStorage>(); /* * Map the CKFinder connector service under a given path. By default the CKFinder JavaScript * client expects the ASP.NET connector to be accessible under the "/ckfinder/connector" route. */ app.Map("/ckfinder/connector", SetupConnector); // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=316888 }
public void Configuration(IAppBuilder app) { ConfigureAuth(app); /* * If you installed CKSource.CKFinder.Connector.Logs.NLog you can start the logger: * LoggerManager.LoggerAdapterFactory = new NLogLoggerAdapterFactory(); * Keep in mind that the logger should be initialized only once and before any other * CKFinder method is invoked. */ LoggerManager.LoggerAdapterFactory = new NLogLoggerAdapterFactory(); /* * Register the "local" type backend file system. */ FileSystemFactory.RegisterFileSystem <LocalStorage>(); /* * Map the CKFinder connector service under a given path. By default the CKFinder JavaScript * client expect the ASP.NET connector to be accessible under the "/ckfinder/connector" route. */ app.Map("/ckfinder/connector", SetupConnector); }
public void Configuration(IAppBuilder app) { FileSystemFactory.RegisterFileSystem <LocalStorage>(); app.Map("/ckfinder/connector", SetupConnector); ConfigureAuth(app); }
private static void RegisterFileSystems() { FileSystemFactory.RegisterFileSystem <LocalStorage>(); }