fix(oauth2): verify user id exists

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2025-02-14 20:50:26 +01:00 committed by Erik Michelson
parent fb6218ed82
commit a8d5cb754c
2 changed files with 6 additions and 0 deletions

View file

@ -9,6 +9,7 @@ If you use SAML authentication, please make sure to update your SAML configurati
See: https://docs.hedgedoc.org/configuration/#saml-login `CMD_SAML_ATTRIBUTE_USERNAME` or `CMD_SAML_ATTRIBUTE_EMAIL`
### Bugfixes
- Check if a valid user id is present when using OAuth2
- Abort SAML login if NameID is undefined instead of logging in with a user named "undefined"
- Set default values for username and email attribute mapping in SAML configuration