-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented User management + HTTP authentication + the structure of …
…the privilege management + some privilege/lock checkers
- Loading branch information
1 parent
af18fcd
commit 5e7325a
Showing
54 changed files
with
1,482 additions
and
449 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
import { HTTPAuthentication } from '../user/authentication/HTTPAuthentication'; | ||
import { IPrivilegeManager } from '../user/privilege/IPrivilegeManager'; | ||
import { IUserManager } from '../user/IUserManager'; | ||
import { IResource } from '../resource/IResource'; | ||
export declare class WebDAVServerOptions { | ||
requireAuthentification?: boolean; | ||
httpAuthentication?: HTTPAuthentication; | ||
privilegeManager?: IPrivilegeManager; | ||
rootResource?: IResource; | ||
userManager?: IUserManager; | ||
lockTimeout?: number; | ||
port?: number; | ||
} | ||
export default WebDAVServerOptions; | ||
export declare function setDefaultServerOptions(options: WebDAVServerOptions): WebDAVServerOptions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,30 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var HTTPBasicAuthentication_1 = require("../user/authentication/HTTPBasicAuthentication"); | ||
var FakePrivilegeManager_1 = require("../user/privilege/FakePrivilegeManager"); | ||
var SimpleUserManager_1 = require("../user/simple/SimpleUserManager"); | ||
var RootResource_1 = require("../resource/std/RootResource"); | ||
var WebDAVServerOptions = (function () { | ||
function WebDAVServerOptions() { | ||
this.requireAuthentification = false; | ||
this.httpAuthentication = new HTTPBasicAuthentication_1.HTTPBasicAuthentication('default realm'); | ||
this.privilegeManager = new FakePrivilegeManager_1.FakePrivilegeManager(); | ||
this.rootResource = new RootResource_1.RootResource(); | ||
this.userManager = new SimpleUserManager_1.SimpleUserManager(); | ||
this.lockTimeout = 3600; | ||
this.port = 1900; | ||
} | ||
return WebDAVServerOptions; | ||
}()); | ||
exports.WebDAVServerOptions = WebDAVServerOptions; | ||
exports.default = WebDAVServerOptions; | ||
function setDefaultServerOptions(options) { | ||
var def = new WebDAVServerOptions(); | ||
if (!options) | ||
return def; | ||
for (var name_1 in def) | ||
if (options[name_1] === undefined) | ||
options[name_1] = def[name_1]; | ||
return options; | ||
} | ||
exports.setDefaultServerOptions = setDefaultServerOptions; |
Oops, something went wrong.