Documentation
¶
Overview ¶
Package authcheck asserts that an app's authentication configuration is coherent, and proves the parts that can be proved.
Every other surface here checks one system against a config. This one checks several variables against each other, because that is where authentication actually fails: not a missing value, but two values that disagree.
The failures it was written from, all of which were invisible until someone tried to sign in:
- an auth URL that lost its path, so every session lookup 404'd — and a 404 on get-session reads exactly like "no session"
- a CORS allowlist that matches an origin exactly, so a preview deployment loaded with an empty page and no error
- an unset provider variable, silently inferred as a different provider
- a sign-in page offering three ways in that the backend did not have
It changes nothing. Authentication is the one surface where a wrong automatic fix locks out everybody, including whoever ran the tool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.