Files
wbin90620 f38cd92641 An archived account that proves its credential is refused at the sign-in, with a reason
A password or email-code sign-in to an account an operator archived
(isForbidden) passed the credential check and loginGrant minted it an
authorization code. The token endpoint then refused to redeem it ("the user
is forbidden"), so the person reached the client's callback with an opaque
exchange_failed and no reason, after a code they had proven.

loginGrant, the one tail every interactive sign-in reaches, now refuses a
forbidden or deleted account before minting, with "the account is not
permitted" and code account_not_permitted (CodeAccountNotPermitted), the same
words a provider's sign-in already gets (federation.go). Only the holder of
the credential reaches it, so the reason is no oracle: a wrong password on an
archived account still gets the opaque wrong-password refusal.

TestLogin_ArchivedAccountIsToldSoAndGetsNoCode and
TestLogin_ArchivedAccountWithAWrongPasswordLearnsNothing hold both.
2026-10-20 14:56:11 -04:00
..