summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-12-31 17:15:30 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-12-31 17:15:30 -0800
commitb7da0669b1568bd17192bfbe86f8a248279a870a (patch)
tree8c1106ce3fc3f93b95ee528bc9b0c9cf6d5493d7
parentcca7f97b0a8ffc65eb5bda2c8e8c93eb3c99605b (diff)
downloadfatcat-b7da0669b1568bd17192bfbe86f8a248279a870a.tar.gz
fatcat-b7da0669b1568bd17192bfbe86f8a248279a870a.zip
bit of auth docs
-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: