aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 97ff495463e6627efd07794780aaed9f7fdccd6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Static Single Sign On

Http server for hosting static files behind single sign on:

## Building 

```bash
make
```

## Installing

It will generate a binary into the `./bin` folder. To install run:

```bash
sudo make install
```

You can also chose another location:

```bash 
PREFIX="$HOME/.local" make install
```

Or even using go cli:

```bash
go install git.sr.ht/~gabrielgio/s4o/cmd/s4o@latest
```

## Running

To get all the param run `./s4o --help`, e.g.:

```bash
s4o \
    --client-id="$CLIENT_ID" \
    --client-secret="$CLIENT_SECRET" \
    --issuer="$ISSUER" \
    --callback="http://localhost:3000/callback"
```