Simplify by using the same path, this will impact build caching tough
parent
c5f90fe3df
commit
6134c842b5
|
@ -6,12 +6,12 @@ SSO support for Vaultwarden is currently [in development](https://github.com/dan
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
- Checkout the SSO branch, note the path
|
- Checkout the SSO branch
|
||||||
- Create a `docker-compose.yml` somewhere with the following contents (replace the path as needed):
|
- Create `docker-compose.yml` with the following contents:
|
||||||
~~~
|
~~~
|
||||||
services:
|
services:
|
||||||
vaultwarden:
|
vaultwarden:
|
||||||
build: /path/to/vaultwarden-source-with-sso
|
build: .
|
||||||
environment:
|
environment:
|
||||||
DOMAIN: "http://localhost:8000"
|
DOMAIN: "http://localhost:8000"
|
||||||
I_REALLY_WANT_VOLATILE_STORAGE: "true"
|
I_REALLY_WANT_VOLATILE_STORAGE: "true"
|
||||||
|
@ -30,10 +30,12 @@ services:
|
||||||
~~~
|
~~~
|
||||||
- Add `auth.test` to your systems host file:
|
- Add `auth.test` to your systems host file:
|
||||||
`echo "127.0.0.1 auth.test" | sudo tee -a /etc/hosts`
|
`echo "127.0.0.1 auth.test" | sudo tee -a /etc/hosts`
|
||||||
|
- Build vaultwarden:
|
||||||
|
`docker compose build`
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
|
|
||||||
- Start the services: `cd /path/to/docker-compose.yml && docker compose up --build`
|
- Start the services: `docker compose up`
|
||||||
- Go to [http://localhost:8000/#/sso](http://localhost:8000/#/sso), enter any string as identifier, click "Log in".
|
- Go to [http://localhost:8000/#/sso](http://localhost:8000/#/sso), enter any string as identifier, click "Log in".
|
||||||
- On the Mock Auth2 Server Sign-in-Page, enter any string for user/subject and add the email you want to test in the claims field like so:
|
- On the Mock Auth2 Server Sign-in-Page, enter any string for user/subject and add the email you want to test in the claims field like so:
|
||||||
`{"email": "user@example.com"}`
|
`{"email": "user@example.com"}`
|
||||||
|
|
Loading…
Reference in New Issue