From b56fb8bc40fcf841f9cb1ebafb5283daec00e47e Mon Sep 17 00:00:00 2001 From: Ernst Widerberg Date: Wed, 10 Nov 2021 16:22:39 +0100 Subject: Add auth-server-poc --- auth-server-poc/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 auth-server-poc/README.md (limited to 'auth-server-poc/README.md') 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 +``` -- cgit v1.1