forgejo/services/auth/source
Baptiste Daroussin 9762f9ea20 fix: portable error reporting for PAM (#11296)
Linux PAM reports "Authentication Failure"
OpenPAM reports "authentication error"

This resulted in forgejo reporting error 500 on FreeBSD when pam
authentication failed.

Add a sentinel error to make this portable: ErrInvalidCredentials

Signed-off-by: Baptiste Daroussin <bapt@FreeBSD.org>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11296
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Baptiste Daroussin <bapt@FreeBSD.org>
Co-committed-by: Baptiste Daroussin <bapt@FreeBSD.org>
2026-02-16 05:57:01 +01:00
..
db feat: add validating user password as trace region (#7981) 2025-05-28 14:46:23 +02:00
ldap chore: fix typos throughout the codebase (#10753) 2026-01-26 22:57:33 +01:00
oauth2 chore: Add JWT() method for convenience and clarity (#11067) 2026-02-07 01:01:30 +01:00
pam fix: portable error reporting for PAM (#11296) 2026-02-16 05:57:01 +01:00
remote chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
smtp chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
main_test.go feat: allow sync quota groups with oauth2 auth source (#8554) 2025-12-01 14:12:00 +01:00
source_group_sync.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
source_quota_group_sync.go feat: allow sync quota groups with oauth2 auth source (#8554) 2025-12-01 14:12:00 +01:00
source_quota_group_sync_test.go feat: allow sync quota groups with oauth2 auth source (#8554) 2025-12-01 14:12:00 +01:00