Simple user and password storage backend for MiCADO services
5.8K
Version: v1.0
File structures:
How to use Rest API:
Assuming that the following command lines are called inside a docker container in the master node, and the rest APIs are provided by the credential manager, i.e. "credman" container.
curl -d "username=user01&password=123" credman:5001/v1.1/adduser
curl -d "username=user01&password=123" credman:5001/v1.1/verify
curl -d "username=user01&oldpasswd=123&newpasswd=456" -X PUT credman:5001/v1.1/changepwd
curl -d "username=user01" -X PUT credman:5001/v1.1/resetpwd
curl -d "username=user01" -X PUT credman:5001/v1.1/deleteuser
curl -d "username=user01" -X GET credman:5001/v1.1/getrole
curl -d "username=user01&newrole=user" -X PUT credman:5001/v1.1/changerole
curl -d "username=user01&newrole=admin" -X PUT credman:5001/v1.1/changerole
How to use the test_script.rst:
Assuming that you installed Robot framework successfully (Please follow this link if you has not installed the Robot framework yet: https://github.com/robotframework/QuickStartGuide/blob/master/QuickStart.rst#demo-application)
Change the following values defined in the section Variables with approriate information if you wish to test the feature of sending email for resetting password:
You may need to change the settings in your mail account to let less secure apps access your account if the mail server requires. For instance, gmail requires that.
Run the following command line
How to run command line inside a docker container in the master node (host machine):
micadoctl.sh adduser user01 123
micadoctl.sh verify user01 123
micadoctl.sh changepwd user01 123 456
(change the password from 123 to 456)
micadoctl.sh resetpwd user01
micadoctl.sh deleteuser user01
micadoctl.sh getrole user01
micadoctl.sh changerole user01 user
(Change the role into 'user')
micadoctl.sh changerole user01 admin
(Change the role into 'admin')
Content type
Image
Digest
Size
26.1 MB
Last updated
over 4 years ago
docker pull micado/credential-manager:0.10Pulls:
137
Last week