minauthator/justfile
Matthieu Bessat 02e16a7e74 feat: support OIDC id_token
- generate JWT id_token in token exchange
- store optional nonce in authorization object
- switch to RS256 algorithm for JWT signature
- add JWKs endpoint to provide OIDC clients with public keys
2024-12-17 22:32:25 +01:00

33 lines
981 B
Makefile

export RUST_BACKTRACE := "1"
export RUST_LOG := "trace"
export CONTEXT_ARGS := "--config config.toml --database tmp/dbs/minauthator.db --static-assets ./assets"
watch-server *args:
cargo-watch -x "run --bin minauthator-server -- $CONTEXT_ARGS {{args}}"
server *args:
cargo run --bin minauthator-server -- $CONTEXT_ARGS {{args}}
admin *args:
cargo run --bin minauthator-admin -- $CONTEXT_ARGS {{args}}
docker-build *args:
docker build -t lefuturiste/minauthator {{args}} .
docker-init-db:
docker run \
-v ./tmp/docker/config:/etc/minauthator \
-v minauthator-db:/var/lib/minauthator \
lefuturiste/minauthator \
/usr/local/bin/minauthator_init_db.sh
docker-run:
docker run \
-p 127.0.0.1:3085:8080 \
-v ./tmp/docker/config:/etc/minauthator \
-v minauthator-db:/var/lib/minauthator \
lefuturiste/minauthator
init-db *args:
sqlite3 {{args}} tmp/dbs/minauthator.db < migrations/all.sql