Skip to content

Commit

Permalink
DOC-29 Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
patschilf authored Feb 12, 2024
1 parent d80071b commit 9bc62c2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# unb-libraries/docker-simplesamlphp
A Docker image to mock local SAML authentication using SimpleSAMLPHP.
A Docker image to add local SAML authentication to your _Docker Compose_ project, based on SimpleSAMLPHP.

## Usage
Add the following to your ```docker-compose.yml``` file:

```yml
services:
# ...
Expand All @@ -19,7 +21,7 @@ services:
- 8443:8443
```
The ```./env/saml/env``` should provide the following environment variable values:
Provide the following environment variables, e.g. in a ```.env``` (filename must match the file you reference in above snippet):

```sh
# A unique identifier of your local Service Provider (SP)
Expand All @@ -31,9 +33,12 @@ SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE='http://localhost:3000/login/saml'
# (optional) Use a different set of users. Refer to build/config/users for available options.
SIMPLESAMLPHP_USERSET='unb'
```
Edit variable values, e.g. port numbers, paths, accordingly to your project's needs.

Finally, rebuild your docker project.

### Users
The image comes with 12 sample UNB users, distributed into "members", "staff", "faculty", "student", and "stu" groups. Every user login follows a ```username:usernamepass``` schema.
The image comes with 12 sample UNB users, distributed into "members", "staff", "faculty", "student", and "stu" groups. Every user login follows a ```<username>:<username>pass``` schema.

| UID | First Name | Last Name | Groups |
|-------|------------|-----------|------------------------|
Expand Down Expand Up @@ -61,4 +66,4 @@ Verify that your local SAML IDP service is setup and configured correctly:
- As part of our 'open' ethos, UNB Libraries licenses its applications and workflows to be freely available to all whenever possible.
- Consequently, the contents of this repository [unb-libraries/docker-drupal] are licensed under the [MIT License](http://opensource.org/licenses/mit-license.html). This license explicitly excludes:
- Any website content, which remains the exclusive property of its author(s).
- The UNB logo and any of the associated suite of visual identity assets, which remains the exclusive property of the University of New Brunswick.
- The UNB logo and any of the associated suite of visual identity assets, which remains the exclusive property of the University of New Brunswick.

0 comments on commit 9bc62c2

Please sign in to comment.