zorn-v / nextcloud-social-login

GNU Affero General Public License v3.0
198 stars 137 forks source link

No error reporting if login error #339

Closed arkanovicz closed 1 year ago

arkanovicz commented 2 years ago

Hi all.

My group mapping was not properly configured. I had to resort to xdebug to find the problem. The following exception:

throw new LoginException($this->l->t('Your user group is not allowed to login, please contact support'))

from lib/Service/ProviderService.php:448 is never shown on the screen, all we get is a blank 404 page.

Is there any way to enhance this error reporting?

arkanovicz commented 2 years ago

Also, this specific exception wasn't displayed either in the web server error log.

zorn-v commented 2 years ago

What version of nextcloud do you use ? How your 404 is looks ? Normally LoginException is displayed as error on login page.

arkanovicz commented 2 years ago

Sorry, I meant 401. Nextcloud 21.0.9.

zorn-v commented 2 years ago

Yep, status code is 401. But user must see the error like this. изображение

Probably you have misconfigured reverse proxy that show empty page on status 401.