hedgedoc/lib
David Mehren cc7fa947bf
Fix crash when OAuth2 config parameters are missing
If the optional config options `config.oauth2.userProfileIdAttr` or `config.oauth2.rolesClaim` were not set, `String.split` was called on `undefined`, triggering a crash.

This commit adds handling of these cases and improves error logging in `checkAuthorization`.

Fixes #608

Signed-off-by: David Mehren <git@herrmehren.de>
2020-11-30 15:04:30 +01:00
..
config Merge pull request #597 from hedgedoc/fix/install-docs 2020-11-29 15:51:43 +01:00
migrations Add fix for missing deletion of notes on user-deletion request 2020-03-21 16:14:43 +01:00
models Replace CodiMD with HedgeDoc 2020-11-14 21:18:36 +01:00
ot Fix logging in ot module 2018-11-13 23:30:13 +01:00
web Fix crash when OAuth2 config parameters are missing 2020-11-30 15:04:30 +01:00
workers Rework debug logging 2019-06-08 21:27:29 +02:00
csp.js Add missing unsafe-inline CSP directive 2020-08-23 01:29:53 +02:00
errors.js Fix broken redirect on login 2020-03-21 16:56:09 +01:00
history.js Move note actions to their own file. 2019-10-27 13:51:53 +01:00
letter-avatars.js Fix eslint warnings 2019-05-31 00:30:29 +02:00
logger.js Fix eslint warnings 2019-05-31 00:30:29 +02:00
realtime.js remove unused variable to pass ci testing - #58 2019-10-03 09:24:46 -04:00
response.js Replace CodiMD with HedgeDoc 2020-11-14 21:18:36 +01:00
utils.js Makes the mime also work with upper case extension 2020-11-12 21:06:09 +01:00