[Solved] Admin account and Google oAuth use the same email - how to resolve? Self hosted
So my admin account for self-hosted is using the same email as my google oAuth.
So when i tried to login as google I get this error message
I cannot change the email of the admin as well.
What do I do?
51 Replies
you have to delete your password account first
would advise having a backup password account that is an admin
how to delete? and is there a way to directly change the emal of the password account?
where can i report a bug?
i also used the wmill cli user management to remove the user account which i wanted to use google oauth with. but once i logged in with that user account, i get this message
how do i assign it to the right workspace?
What's the bug ? You need to use quote for zsh to accept *
And you need to add your user to your desired workspace by having the admin of that workspace add it or set auto add
i am getting this
Is your current user a super admin ?
i did do this
And did you switch user afterwards ?
and by current user, you mean the user in the browser or the cli?
i removed the original user so that i can add that user via google oauth
CLI, you're in the cli
how do i switch to a different user in the CLI?
i. have been looking in the manual and i don't quite see it
Then you need to delete and add the workspace again in the cli
delete? can't i just logout of current user somehow from the cli?
ok i figured out. i need to go to settings > instance and make that now google oauth user as superadmin
i still cannot add gmail
gmail api is added to the project "windmill access"
this is my credentials
client ID starts with 337675
client secret is GOCSP
i have it in instance settings
i am logged in using google oauth successfully
i needed to add the gmail oauth which was n't documented anywhere
i used the same client ID and client secret
when i add a resource, then it shows up.
and now i get this
i have also tried to do a brand new client ID
this time with a different authorized url
i am guessing so i used
http://localhost/oauth/callback/gmail
i changed the oauth for gmail client id and client secret in the windmill
this time i got further but i am unsure if
windmill access
is referring to the API project name or the client IDthis time i saw this
then nothing happened
you click allow and drawer close ?
do you have the same issue on app.windmill.dev ?
yes i click allow then i got the following images you saw
i haven't tried it on app.windmill.dev
i will try that next. i got to go wokr on anotjher project
the docs is also open-source, feel free to send PR and feedback if you feel the docs is lacking on those aspect https://github.com/windmill-labs/windmilldocs
GitHub
GitHub - windmill-labs/windmilldocs
Contribute to windmill-labs/windmilldocs development by creating an account on GitHub.
i cannot try this on app.windmill.dev
because
1. same email has already been used for another account that uses github as oauth
2. being not a superadmin in demo workspace in app.windmill.dev means i cannot delete that account and recreate using a different login.
Please help.
also on app.windmill.dev doesn't allow me access to instance.settings unsure if this is a blocker
also when i tried to add resource using gdrive, then i get this
I feel like this feature isn't really working?
no it is working
the screen above is fine, we just have to go through verification again with google
so i'll wait for the verification first?
you can just click on "Advanced'
and then continue
ok after i added the resource, how do I see it?
Do you not see the resources after adding it and saving it ?
oh i get it now. when i switched to using chrome away from edge I can now see the form to add the resource and save it
got it, we will take a look with ms edge
I’ve knocked off work so I will try to replicate on loom tomorrow to show u
ok never mind i think the issue is due to one of my extensions in edge. no idea which one it is. i will find out.
i also just realizd that it's ok to NOT use google for login and still use gmail as resource
since it's an extension isssue, i won't create the loom
What I owe windmill:
1. a suggested PR on how to add gmail as resource on the docs
Note to self:
- take this https://www.windmill.dev/docs/misc/setup_oauth#oauth-resources
and make it more like https://www.windmill.dev/docs/integrations/gmail
or simply link the two
currently unsure. will decide again on weekend
Gmail Integration | Windmill
Gmail is a free email service provided by Google.
Setup OAuth and SSO | Windmill
Windmill supports Single Sign-On for Microsoft, Google, GitHub, GitLab, Okta, and domain restriction.
🙏