Skip to content

teambrookie/remote-file-manager-ws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

remote-file-manager-ws

Build Status

#Installation

Clone the repo and run npm install

You should REALLY specify an env var for the secret use by JWT. The var name is JWT_SECRET

Then you should create a file named users.json like the following

{
    "users" : {
        "username": "sha1(password)"
    }
}

Then you can run it

#you can specify $PORT if you want
node app.js

##Testing

To test the authentification you can use

curl -X POST --data "username=xxx&password=xxx" http://localhost:8088/auth

Then you get the token, and can use it to connect to the secure endpoint

curl -H "Authorization: Bearer token" http://localhost:8088/files

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •