diff options
Diffstat (limited to 'auth-server-poc/README.md')
-rw-r--r-- | auth-server-poc/README.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/auth-server-poc/README.md b/auth-server-poc/README.md new file mode 100644 index 0000000..37029c3 --- /dev/null +++ b/auth-server-poc/README.md @@ -0,0 +1,19 @@ +# auth-server-poc + +This is a modified version of [SUNET/auth-server-poc](https://github.com/SUNET/auth-server-poc). More detailed information is available in the original README at this URL. + +``` +Start container: +$ docker-compose up + +Generate JWT cert: +$ docker exec auth-server-poc /opt/auth-server-poc/gen-jwt-cert.sh + +Create user accounts: +(note that the -c flag is used to create the .htpasswd file and should only be used the first time) +$ docker exec auth-server-poc htpasswd -c /opt/auth-server-poc/userdb/.htpasswd indy +$ docker exec auth-server-poc htpasswd /opt/auth-server-poc/userdb/.htpasswd bob + +Get a token: +$ curl http://localhost:8000/api/v1.0/auth -X POST -p -u indy +``` |