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
models
ot
web Fix crash when OAuth2 config parameters are missing 2020-11-30 15:04:30 +01:00
workers
csp.js
errors.js
history.js
letter-avatars.js
logger.js
realtime.js
response.js
utils.js