ForgejoKit/Tests/ForgejoKitTests
Stefan Hausotte 1ad2ee2607 fix: report security-key-blocked Basic auth instead of invalid credentials
Forgejo rejects username/password (Basic auth) for accounts with a
security key / passkey (WebAuthn) enrolled, responding 401 with
"Basic authorization is not allowed while having security keys enrolled".
This was misclassified as .invalidCredentials, showing "Invalid username
or password" and sending users in circles. Add a dedicated
.basicAuthBlockedBySecurityKey case that tells the user to use a token.

Also extract AuthenticationError into its own file.
2026-06-15 18:43:55 +02:00
..
AdminServiceTests.swift chore: formatting and function names 2026-06-15 12:06:27 +02:00
AttachmentTests.swift chore: formatting and function names 2026-06-15 12:06:27 +02:00
BearerCredentialTests.swift chore: formatting and function names 2026-06-15 12:06:27 +02:00
DateDecodingTests.swift chore: formatting and function names 2026-06-15 12:06:27 +02:00
DiffParserTests.swift chore: formatting and function names 2026-06-15 12:06:27 +02:00
ErrorMappingTests.swift fix: report security-key-blocked Basic auth instead of invalid credentials 2026-06-15 18:43:55 +02:00
FileContentTests.swift chore: formatting and function names 2026-06-15 12:06:27 +02:00
ModelDecodingTests.swift chore: formatting and function names 2026-06-15 12:06:27 +02:00
NormalizeServerURLTests.swift chore: formatting and function names 2026-06-15 12:06:27 +02:00
NotificationTests.swift chore: formatting and function names 2026-06-15 12:06:27 +02:00
RepositoryServiceURLTests.swift chore: formatting and function names 2026-06-15 12:06:27 +02:00
URLSessionManagerTests.swift chore: formatting and function names 2026-06-15 12:06:27 +02:00
UserServiceTests.swift chore: formatting and function names 2026-06-15 12:06:27 +02:00
WorkflowServiceURLTests.swift chore: formatting and function names 2026-06-15 12:06:27 +02:00