1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00
Commit Graph

29 Commits

Author SHA1 Message Date
Falk Werner
87f34fa768 feat(authentication): provide an authentication mechanism (#19)
* moves server into session

* renames jsonrpc server to jsonrpc proxy

* moves server into session

* renames jsonrpc server to jsonrpc proxy

* adds json rpc server

* removes obsolete proxy from protocol

* changes interface of jsonrpc_proxy_onresult to accept previously parsed messages

* adds infrastructure to process incoming requests; fixes invalid read of ill formatted responses

* adds description of authentication request

* adds authentication request

* adds userdb for authentication purposes

* removes debug code: console.log()

* fixes cmake build error (missing openssl symbols)

* fixes typo

* replaces ASCII art by UML diagram

* renames BAD_NOACCESS to BAD_ACCESS_DENIED

* fixes style

* adds docu of authentication

* ignored false positives of flawfinder

* fixes style issues

* fixes javascript style issues
2019-04-01 22:15:12 +02:00
Falk Werner
70c9697712 renamed html example 2019-03-27 00:05:44 +01:00
Falk Werner
7447fb5dff renamed to webfuse 2019-03-26 23:04:53 +01:00
Falk Werner
48185776b6
Feature/authentication (#14)
* makes wsfs_server_config opaque

* feature: try to create mount point, if not present

* fixes server start failure due to existing mountpoint

* added basic authentication infrastructure

* makes wsfs_server_config opaque

* feature: try to create mount point, if not present

* fixes server start failure due to existing mountpoint

* added basic authentication infrastructure

* added unit tests for credentials

* added unit tests for authenticators

* propagates authenticators to server protocol

* enabled username authentication in daemon example

* adds example to compute password hash

* adds infrastructure to execute commands

* added userdb to encapsulate authentication stuff

* adds session and session_manager

* fixes warning about unused param

* moves some logic from server_protocol to session

* makes wsfs_server_config opaque

* feature: try to create mount point, if not present

* fixes server start failure due to existing mountpoint

* added basic authentication infrastructure

* makes wsfs_server_config opaque

* added unit tests for credentials

* added unit tests for authenticators

* propagates authenticators to server protocol

* enabled username authentication in daemon example

* adds example to compute password hash

* adds infrastructure to execute commands

* added userdb to encapsulate authentication stuff

* adds session and session_manager

* fixes warning about unused param

* moves some logic from server_protocol to session

* updates libcrypto to version 1.1.0
2019-03-23 22:53:14 +01:00
Falk Werner
d205d2f127 refactors provider client api (introduces client_config) 2019-03-04 21:17:37 +01:00
Falk Werner
2781aadf55 makes wsfs_status public (usable in provider example) 2019-03-04 19:19:04 +01:00
Falk Werner
4565e40fde removes unused structs 2019-03-03 18:17:00 +01:00
Falk Werner
e4d95f5dc9 implements operation read 2019-03-03 18:02:30 +01:00
Falk Werner
519ec3a178 added implemetation of open 2019-03-03 16:29:02 +01:00
Falk Werner
3627ede1b1 added implementation for lookup (provider) 2019-03-03 15:44:34 +01:00
Falk Werner
119d08c42e reorganized filesystem abstraction: files and directories are almost everywhere handled the same way, so there is no need for separate structs 2019-03-03 15:29:39 +01:00
Falk Werner
5f9096914e added implementation of readdir 2019-03-03 13:34:43 +01:00
Falk Werner
bc38b5d9b1 refactored message creation; enhanced implementation of some operations 2019-03-03 12:48:58 +01:00
Falk Werner
1976841334 reorganized project: prepared to extract common functionality 2019-02-25 20:17:13 +01:00
Falk Werner
bc0dc2889d separated client opertation stubs 2019-02-24 18:03:22 +01:00
Falk Werner
024ae2cfba refactor: moved connect/disconnect events from provider to client 2019-02-22 15:48:49 +01:00
Falk Werner
dd5a8ebd73 use positional arguments to destructure rpc params 2019-02-22 15:10:12 +01:00
Falk Werner
85ae74a57a extracted JavaScript provider API 2019-02-22 00:35:59 +01:00
Falk Werner
f22a1dfd5e switched to ECMAScript modules 2019-02-20 20:23:56 +01:00
Falk Werner
2f6dc13f76 removed eslint rule "no-useless-catch", since it is unknown to codacys eslint version 2019-02-19 22:41:04 +01:00
Falk Werner
abb951c0c6 removed some eslint warings 2019-02-19 21:26:06 +01:00
Falk Werner
9d2502952f added npm package description and eslint config file 2019-02-18 20:04:02 +01:00
Falk Werner
cc6a08ade5 added skeleton of provider example app 2019-02-17 14:31:04 +01:00
Falk Werner
4396dddd2b added example for provider 2019-02-16 16:28:14 +01:00
Falk Werner
561a9f4eb5 renamed library and example 2019-02-16 16:14:22 +01:00
Falk Werner
bff52e9838 removed dead code 2019-02-15 16:27:40 +01:00
Falk Werner
14af1fd8d1 fixed some code style issues 2019-02-13 21:09:43 +01:00
Falk Werner
2b7d938315 add base64 as format for read results 2019-02-10 22:18:22 +01:00
Falk Werner
cf1b57e86e project structure changed 2019-02-10 14:19:15 +01:00