hedgedoc/lib/web
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
..
auth Fix crash when OAuth2 config parameters are missing 2020-11-30 15:04:30 +01:00
imageRouter Merge pull request #213 from davidmehren/refactor_backend_notes 2019-11-20 20:07:35 +01:00
middleware Replace CodiMD with HedgeDoc 2020-11-14 21:18:36 +01:00
note Remove pdf export code 2020-11-26 21:09:23 +01:00
baseRouter.js Move note actions to their own file. 2019-10-27 13:51:53 +01:00
historyRouter.js Fix eslint warnings 2019-05-31 00:30:29 +02:00
statusRouter.js Add config option for cookie SameSite policy 2020-08-27 02:04:49 +02:00
userRouter.js Move note actions to their own file. 2019-10-27 13:51:53 +01:00
utils.js Allow posting new note with content 2018-01-18 10:41:58 +01:00