{messageIncorrect login type, attempting to use oidc but user is of login type password

This is the error I get trying to use OpenID Connect This is Coder OSS Error is thrown here I think ? https://github.com/coder/coder/blob/fb9ca7b830f82f0a20878e2e4e453aa7d89cd7f5/coderd/users.go#L946
GitHub
coder/users.go at fb9ca7b830f82f0a20878e2e4e453aa7d89cd7f5 · coder/...
A tool that provisions remote development environments via Terraform - coder/users.go at fb9ca7b830f82f0a20878e2e4e453aa7d89cd7f5 · coder/coder
9 Replies
thy
thy3y ago
if you created a user with the same email prior you'll have to delete it, then login through oidc to create the account. we don't let the same user have multiple login types!
DrewP23
DrewP23OP3y ago
it works! thank you but how can I make myself an owner? i'm the only user I'm a member now ( where I was the owner before) and how I can disallow any login method except for oidc?
thy
thy3y ago
hmm, you don't have the root user you created during setup? or was that the user you deleted
DrewP23
DrewP23OP3y ago
it was the user i deleted
Phorcys
Phorcys3y ago
maybe you can go edit the db manually to change your roles i've deleted the main one but gave me admin first maybe there should be a warning when trying to delete the only admin user
DrewP23
DrewP23OP3y ago
@Phorcys that did the trick thank you
Phorcys
Phorcys3y ago
great, you can resolve using /resolve
Codercord
Codercord3y ago
Marked the thread as resolved.
Scott
Scott2y ago
Just wanted to say this helped me. Went to the database and changed the login type and now OIDC is working. This should be something to be able to change by the User Admin/ Owner in the app IMHO.

Did you find this page helpful?