Skip to content

Commit

Permalink
BED-5103 fix: users in bad auth state (#994)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistahj67 authored Dec 3, 2024
1 parent 00a246f commit 70563e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/api/src/database/migration/migrations/v6.3.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ ALTER TABLE ONLY saml_providers

-- Set the `updated_posture_page` feature flag to true
UPDATE feature_flags SET enabled = true WHERE key = 'updated_posture_page';

-- Fix users in bad state due to sso bug
DELETE FROM auth_secrets WHERE id IN (SELECT auth_secrets.id FROM auth_secrets JOIN users ON users.id = auth_secrets.user_id WHERE users.sso_provider_id IS NOT NULL);

0 comments on commit 70563e4

Please sign in to comment.