diff options
author | David Mehren | 2020-11-30 15:04:30 +0100 |
---|---|---|
committer | David Mehren | 2020-11-30 15:04:30 +0100 |
commit | cc7fa947bfb4043bd4b97b0040e82daef892f365 (patch) | |
tree | 309bb8b2bbad207a5c763216c6c48910b3701d01 /public/views/includes/header.ejs | |
parent | 116fddd584a9d0927ce1109484826f6bc4074090 (diff) |
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>
Diffstat (limited to 'public/views/includes/header.ejs')
0 files changed, 0 insertions, 0 deletions