rlblais
rlblais7mo ago

Client Secret expired

I accidentally let the client secret for sso integration with azure expire. now i can't figure out how to login. i have a SUPERADMIN_SECRET set with an environment variable - but i'm not sure how to use it. Any help here? i have generated a new client secret in the azure portal but I need help getting into the system to update it. seems i may have painted myself into a corner here. i think i changed the superadmin to my email address that is now linked to the SSO integration - as my saved email / password combo with the same email address does not work. thanks for any assistance here. Cheers, Ry
2 Replies
rubenf
rubenf7mo ago
Hi @rlblais , if you have access to the db, you can always force your way through
admin@windmill.dev | $argon2id$v=19$m=19456,t=2,p=1$ijpVAMhqjACxDmbi0tosJw$fvjnvLMvh4QH31ND+8dTf9+01GSVcmwCdXi1XJEisMk | password | t | t | | | f | admin
admin@windmill.dev | $argon2id$v=19$m=19456,t=2,p=1$ijpVAMhqjACxDmbi0tosJw$fvjnvLMvh4QH31ND+8dTf9+01GSVcmwCdXi1XJEisMk | password | t | t | | | f | admin
this is what you need in password table for admin@windmill.dev / changeme
rlblais
rlblaisOP7mo ago
oh thanks! i'll see if i can do that INSERT INTO password (email, password_hash, login_type, super_admin, verified, name, company, first_time_user, username) VALUES ('admin@windmill.dev', '$argon2id$v=19$m=19456,t=2,p=1$ijpVAMhqjACxDmbi0tosJw$fvjnvLMvh4QH31ND+8dTf9+01GSVcmwCdXi1XJEisMk', 'password', true, true, NULL, NULL, false, 'admin'); Success! thnks @rubenf