Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/apps/api/ViGet
diff options
context:
space:
mode:
authorLeitwolf112026-10-16 16:13:45 +0300
committerLeitwolf112026-10-16 16:13:45 +0300
commit031cbf7efc5d97b28259da5b387cb3a3dbd242d5 (patch)
tree44077b255fdf019e82d6960ba30e70c3a59a954a /apps/api/ViGet
parent8f58831373b72dc5b60bad649a961acd0bb94aa4 (diff)
downloadprogmaweb-031cbf7efc5d97b28259da5b387cb3a3dbd242d5.tar.gz
Log why a Google callback could not finish
A failed Google callback has returned the visitor to /login?google=failed since the previous release, but nothing recorded why: a declined consent, an expired or missing state cookie and a forged request all looked the same, and the log of the service held no entry at all. GoogleSignInFailure now handles OnRemoteFailure. It writes one warning, event GoogleSignInFailed (id 5), with the cause: the error code Google reported, such as access_denied, or the reason the handler refused the callback, such as "The oauth state was missing or invalid." An error code is written only when it is a short run of letters, digits, '_', '-' and '.'; anything else from the query string is written as an unrecognized error. The authorization code, the state and tokens are never logged. The redirect is unchanged. Four new tests cover the entry, the redirect, an unusual error value and a refused state. The account API document describes the log entry.
Diffstat (limited to 'apps/api/ViGet')
0 files changed, 0 insertions, 0 deletions