Skip to content

Commit b1dbdfd

Browse files
committed
Update README to match recommended config incl. key rotation
1 parent d408d9e commit b1dbdfd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,12 @@ Example settings for project that both issues and validates tokens for `myapp` a
150150
'SESSION_AUDIENCE': ['myapp'],
151151
'AUTHORIZATION_AUDIENCE': ['myapp', 'otherapp'],
152152
'ACCEPTED_ISSUERS': ['myapp'],
153+
'KEY_STORE_ROOT': '/srv/myapp/keys',
153154
'PUBLIC_KEYS': {
154-
'myapp': 'keys/myapp-20180101.pem', # both private/public key in same file
155+
'myapp': ['myapp-20200410.pem', 'myapp-20180101.pem'], # both private/public key in the same file
155156
},
156157
'PRIVATE_KEYS': {
157-
'myapp': 'keys/myapp-20180101.pem', # both private/public key in same file
158+
'myapp': ['myapp-20200410.pem', 'myapp-20180101.pem'], # both private/public key in the same file
158159
},
159160
}
160161
@@ -165,8 +166,9 @@ Example settings for project that only accepts tokens signed by `myapp` public k
165166
'VERIFY_SESSION_TOKEN': False,
166167
'IDENTITY': 'otherapp',
167168
'ACCEPTED_ISSUERS': ['myapp'],
169+
'KEY_STORE_ROOT': '/srv/otherapp/keys',
168170
'PUBLIC_KEYS': {
169-
'myapp': 'keys/myapp-20180101.pem', # only public key in this file
171+
'myapp': ['myapp-20200410.pem', 'myapp-20180101.pem'], # only public keys in these files
170172
},
171173
}
172174

0 commit comments

Comments
 (0)