summary refs log tree commit diff
path: root/demo
diff options
context:
space:
mode:
authorDaniel Wagner-Hall <dawagner@gmail.com>2016-02-05 01:58:36 +0000
committerDaniel Wagner-Hall <dawagner@gmail.com>2016-02-05 01:58:36 +0000
commitdb0da033eb1013e19042b6c7e8d3ccfd80bf9d6f (patch)
treee0459fc07083e15dc4dd1871c446d762b87c1f4e /demo
parentMerge pull request #557 from matrix-org/dbkr/profile_dont_return_null (diff)
parentError if macaroon key is missing from config (diff)
downloadsynapse-db0da033eb1013e19042b6c7e8d3ccfd80bf9d6f.tar.xz
Merge pull request #558 from matrix-org/daniel/config
Error if macaroon key is missing from config

Currently we store all access tokens in the DB, and fall back to that
check if we can't validate the macaroon, so our fallback works here, but
for guests, their macaroons don't get persisted, so we don't get to
find them in the database. Each restart, we generate a new ephemeral
key, so guests lose access after each server restart.

I tried to fix up the config stuff to be less insane, but gave up, so
instead I bolt on yet another piece of custom one-off insanity.

Also, add some basic tests for config generation and loading.
Diffstat (limited to 'demo')
0 files changed, 0 insertions, 0 deletions