hedgedoc/lib/web/auth
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
..
dropbox Removing returnTo setting from referer in all other authentication sources 2019-11-28 12:25:59 +01:00
email Removing returnTo setting from referer in all other authentication sources 2019-11-28 12:25:59 +01:00
facebook Removing returnTo setting from referer in all other authentication sources 2019-11-28 12:25:59 +01:00
github Removing returnTo setting from referer in all other authentication sources 2019-11-28 12:25:59 +01:00
gitlab Removing returnTo setting from referer in all other authentication sources 2019-11-28 12:25:59 +01:00
google Add Google oauth variable: hostedDomain 2020-02-08 15:57:22 +08:00
ldap Removing returnTo setting from referer in all other authentication sources 2019-11-28 12:25:59 +01:00
mattermost Removing returnTo setting from referer in all other authentication sources 2019-11-28 12:25:59 +01:00
oauth2 Fix crash when OAuth2 config parameters are missing 2020-11-30 15:04:30 +01:00
openid Removing returnTo setting from referer in all other authentication sources 2019-11-28 12:25:59 +01:00
saml saml: make logger print actual error message 2020-07-11 21:21:01 +02:00
twitter Removing returnTo setting from referer in all other authentication sources 2019-11-28 12:25:59 +01:00
index.js Add OpenID to CodiMD 2018-10-05 22:43:32 +02:00
utils.js Removing returnTo setting from referer in all other authentication sources 2019-11-28 12:25:59 +01:00