From 963f04a88b138a26888a68ce68fc173cb9d3d9cf Mon Sep 17 00:00:00 2001 From: bain Date: Sat, 1 Jun 2024 23:06:41 +0200 Subject: [PATCH] correct config file in readme --- README.md | 4 ++-- config.sample.toml | 13 ------------- config.yml.sample | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 15 deletions(-) delete mode 100644 config.sample.toml create mode 100644 config.yml.sample diff --git a/README.md b/README.md index 53c2528..5842161 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,8 @@ can correlate user information across services. 1. build binary with `cargo` -2. fill out `config.toml.sample`. The server expects a file called - `config.toml` in its working directory. +2. fill out `config.yml.sample`. The server expects a file called + `config.yml` in its working directory. 3. Generate the keypair for signing JWT tokens with: ```bash diff --git a/config.sample.toml b/config.sample.toml deleted file mode 100644 index 83a31b7..0000000 --- a/config.sample.toml +++ /dev/null @@ -1,13 +0,0 @@ -host = "0.0.0.0" -port = 8000 -issuer_uri = "http://localhost:8000/" -issuer_name = "My Issuer" -salt = "SOMETHING SOMETHING" -rsa_key_file = "rsa-key.pk8" - -[clients] - -[clients.a1] -name = "a1.example.com" -client_secret = "SECRET" -redirect_uris = ["https://a1.example.com/cb"] diff --git a/config.yml.sample b/config.yml.sample new file mode 100644 index 0000000..88cf62f --- /dev/null +++ b/config.yml.sample @@ -0,0 +1,17 @@ +host: "0.0.0.0" +port: 8000 +issuer_uri: "https://anon.my-org.invalid" +issuer_name: "My Org" +salt: "longhexstringdeadbeefsomething" +rsa_key_file: "rsa-key.pk8" + +clients: + service1: + name: "Service 1" + client_secret: "abcd" + redirect_uris: ["https://service1/redirect"] + + service2: + name: "Service 2" + client_secret: "2222" + redirect_uris: ["http://service2/redirect"]