{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
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!
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?
hmm, you don't have the root user you created during setup? or was that the user you deleted
it was the user i deleted
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
@Phorcys that did the trick thank you
great, you can resolve using
/resolve
Marked the thread as resolved.
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.