aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--notes/auth.md (renamed from notes/auth_thoughts.txt)0
-rw-r--r--rust/HACKING.md4
-rw-r--r--rust/README.md3
3 files changed, 7 insertions, 0 deletions
diff --git a/notes/auth_thoughts.txt b/notes/auth.md
index c82b204e..c82b204e 100644
--- a/notes/auth_thoughts.txt
+++ b/notes/auth.md
diff --git a/rust/HACKING.md b/rust/HACKING.md
index 57642b2d..9d161b87 100644
--- a/rust/HACKING.md
+++ b/rust/HACKING.md
@@ -57,3 +57,7 @@ Debug SQL schema errors (if diesel commands fail):
Creating entities via API:
http --json post localhost:9411/v0/container name=asdf issn=1234-5678
+
+## Authentication
+
+Uses macaroons. See `notes/auth.md` and maybe look in the guide.
diff --git a/rust/README.md b/rust/README.md
index ddde9b80..ecbfba2d 100644
--- a/rust/README.md
+++ b/rust/README.md
@@ -17,6 +17,9 @@ Create a `.env` file with configuration:
DATABASE_URL=postgres://fatcat:tactaf@localhost/fatcat_rs
TEST_DATABASE_URL=postgres://fatcat:tactaf@localhost/fatcat_rs_test
+ AUTH_LOCATION=dev.fatcat.wiki
+ AUTH_KEY_IDENT=2018-12-31-dev
+ AUTH_SECRET_KEY=VQe8kdn8laZ3MArKAzOeWWNUQgM6IjduG2jwKnSWehQ=
Re-create database from scratch: