https://github.com/insthync/whitegate
The micro service for application authentication
https://github.com/insthync/whitegate
Last synced: about 2 months ago
JSON representation
The micro service for application authentication
- Host: GitHub
- URL: https://github.com/insthync/whitegate
- Owner: insthync
- License: mit
- Created: 2017-02-24T17:54:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-05T14:17:10.000Z (over 9 years ago)
- Last Synced: 2025-03-13T00:45:10.264Z (over 1 year ago)
- Language: Go
- Size: 26.4 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Requirement
* Golang 1.8 or above
* MongoDB
* Godep (https://github.com/tools/godep) -> restore or following packages
* Mgo (http://labix.org/mgo)
* Iris (https://github.com/kataras/iris)
* UUID (https://github.com/satori/go.uuid)
## Dependency Management
* Install godep: go get github.com/tools/godep
* To restore dependencies: godep restore
* To save dependencies: godep save ./...
## Run the Project
Run `run.sh` for Unix, `run_win.sh` for Windows
## How to test
After launch and build you can try to:
* Register new user with path http://localhost:6201/register with POST method and post data: username(string), password(string), email(string)
* Login with path http://localhost:6201/login with POST method and post data: username(string), password(string)
* login with facebook with path http://localhost:6201/loginWithFacebook with POST method and post data: facebookToken(string)
* bind Facebook account with path http://localhost:6201/bindFacebookAccount with POST method and post data: id(string), loginToken(string), facebookToken(string)
* unbind Facebook account with path http://localhost:6201/unbindFacebookAccount with POST method and post data: id(string), loginToken(string)
* validate login with path http://localhost:6201/validateLogin with POST method and post data: id(string), loginToken(string)