diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-12-31 17:15:30 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-12-31 17:15:30 -0800 |
commit | b7da0669b1568bd17192bfbe86f8a248279a870a (patch) | |
tree | 8c1106ce3fc3f93b95ee528bc9b0c9cf6d5493d7 /rust | |
parent | cca7f97b0a8ffc65eb5bda2c8e8c93eb3c99605b (diff) | |
download | fatcat-b7da0669b1568bd17192bfbe86f8a248279a870a.tar.gz fatcat-b7da0669b1568bd17192bfbe86f8a248279a870a.zip |
bit of auth docs
Diffstat (limited to 'rust')
-rw-r--r-- | rust/HACKING.md | 4 | ||||
-rw-r--r-- | rust/README.md | 3 |
2 files changed, 7 insertions, 0 deletions
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: |