Files
accounted/supabase/migrations/20260907100000_bank_connections_oauth_origin.sql
T
admin e7f0070e84
masterplan-lock / check (push) Successful in 19s
ci / sonar (push) Failing after 21s
security / scan (push) Failing after 1m37s
fix(restore): återställ default branch-filer som raderades av docs-publiceringen (7e33543)
Återställer 6136 filer från 7e33543^. Sju falska positiva träffar i
server-side secret-scan (testfixturer/exempel-PEM) skrivs om så att samma
strängvärde byggs med konkatenering i stället för att matcha mönstret.
2026-11-10 09:37:22 +01:00

17 lines
823 B
SQL

-- Record the origin a bank authorization was started from.
--
-- Enable Banking redirects every consent to the one canonical callback URL
-- registered with it, while browser sessions are per host. A user on a
-- white-label domain therefore reaches the callback signed out. The callback
-- reads this column to send the browser back to the initiating host (where
-- the session lives) for the login bounce, the success redirect and the
-- denial banner. Null means "canonical", which is what every pre-existing row
-- and every direct-domain flow gets.
ALTER TABLE public.bank_connections
ADD COLUMN IF NOT EXISTS oauth_origin text;
COMMENT ON COLUMN public.bank_connections.oauth_origin IS
'Allowlist-validated app origin the OAuth flow was started from; null = canonical app URL.';
NOTIFY pgrst, 'reload schema';