RESTful microservice for managing user accounts and authentication
1.3K
The RESTful microservice for managing user accounts and authentication
npm i -g okaeriokaeri /my/conf/file.toml.The official image repository in Docker Hub is gcsboss/okaeri.
Run like this: docker run -p 7667:7667 -v /your/conf.toml:/conf.toml gcsboss/okaeri -c /conf.toml
The following endpoints are supported so far:
POST /account: Create a new account
name string and a strong password string.POST /auth: Verifies whether a password and name match an active account.
name and password for the account being verified.GET /account/:id: Fetch given account info
GET /identity: Fetch your account data based on header
identityHeader).This are all the avaiable settings to be defined in your conf.toml.
# Define the server port
port = 7667 # Defaults to 7667
identityHeader = 'X-My-Id' # defaults to empty
# Setup your connection to mongodb
[mongo]
url = 'mongodb://localhost:27017/' # Defaults to localhost on port 27017
name = 'MyDBName' # Defaults to "Okaeri"
Okaeri can log all events in JSON format so you may easily parse and trsnaform it as per your needs. You can also tweak the log level so you get only the right informatin for you.
Available log levels are: debug, info, warn, error, fatal.
[log]
level = 'debug' # Defaults to "info"
file = '/home/me/okaeri.log' # Defaults to the project installation dir
You can setup webhooks to be triggered whenever important events happen within Okaeri. By default all webhooks are sent as:
Check the supported events so far:
[hooks]
onCreateAccount = 'http://example.com/let/me/know'
If you have found any problems with this module, please:
~bug.We will make sure to take a look when time allows us.
If you wish to get that awesome feature or have some advice for us, please:
~proposal.If you have spotted any enhancements to be made and is willing to get your hands dirty about it, fork us and submit your merge request so we can collaborate effectively.
Content type
Image
Digest
Size
31.1 MB
Last updated
almost 6 years ago
docker pull gcsboss/okaeri