blob: 37029c3b4c54c16ba145434fda7d78cf8cb37426 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
```
|