diff options
author | Ernst Widerberg <ernst@sunet.se> | 2021-11-10 16:22:39 +0100 |
---|---|---|
committer | Ernst Widerberg <ernst@sunet.se> | 2021-11-10 16:22:39 +0100 |
commit | b56fb8bc40fcf841f9cb1ebafb5283daec00e47e (patch) | |
tree | a094e60c1e70d9d3faba459d4ce49f6ee6d88a3b /auth-server-poc/README.md | |
parent | b80133312330f8f060a78debc635587b88f2367c (diff) |
Add auth-server-poc
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 +``` |