Omen
Omen
WWindmill
Created by Omen on 9/28/2023 in #help
Setting up oauth resources for gdrive/gsheets on self-hosted
Guess that kind of contribution is just a LLM prompt away, but yeah I'll def. look into the repo for a PR once I wrapped my head around the entire tool
20 replies
WWindmill
Created by Omen on 9/28/2023 in #help
Setting up oauth resources for gdrive/gsheets on self-hosted
Thanks for your time resolving this
20 replies
WWindmill
Created by Omen on 9/28/2023 in #help
Setting up oauth resources for gdrive/gsheets on self-hosted
I guess a regex to slap people in the face for not using http:// or https:// like me would be a blessing for this step
20 replies
WWindmill
Created by Omen on 9/28/2023 in #help
Setting up oauth resources for gdrive/gsheets on self-hosted
God damn, yes that was it
20 replies
WWindmill
Created by Omen on 9/28/2023 in #help
Setting up oauth resources for gdrive/gsheets on self-hosted
No description
20 replies
WWindmill
Created by Omen on 9/28/2023 in #help
Setting up oauth resources for gdrive/gsheets on self-hosted
It's also defined in super admin settings, yeah
20 replies
WWindmill
Created by Omen on 9/28/2023 in #help
Setting up oauth resources for gdrive/gsheets on self-hosted
In the .env file I've defined WM_BASE_URL=https://mydomain.xyz This is the CaddyFile
mydomain.xyz {
reverse_proxy /ws/* http://lsp:3001
reverse_proxy /* http://windmill_server:8000
}
mydomain.xyz {
reverse_proxy /ws/* http://lsp:3001
reverse_proxy /* http://windmill_server:8000
}
Do note that for some reason https doesn't seem to kick in either
20 replies
WWindmill
Created by Omen on 9/28/2023 in #help
Setting up oauth resources for gdrive/gsheets on self-hosted
With those logs in mind I'll try to figure out what's wrong on the redirect URL side. For this use-case I have two oauth clients on google side with these redirect URLs https://myDomain.xyz/oauth/callback/gsheets https://myDomain.xyz/oauth/callback/gdrive
20 replies
WWindmill
Created by Omen on 9/28/2023 in #help
Setting up oauth resources for gdrive/gsheets on self-hosted
Hi @rubenf, I've done a fresh server set-up with all steps from the guide. This seems to happen whenever building OAuth clients fails, as seen from the logs.
2023-09-28T20:52:00.580182Z INFO windmill: Base URL setting change detected
2023-09-28T20:52:00.589332Z INFO windmill_api::oauth2: OAuth loaded clients: gsheets, gdrive
2023-09-28T20:52:00.589384Z ERROR windmill_api::oauth2: Error building oauth client gsheets: Invalid redirect URL: relative URL without a base
2023-09-28T20:52:00.589402Z ERROR windmill_api::oauth2: Error building oauth client gdrive: Invalid redirect URL: relative URL without a base
2023-09-28T20:52:00.589408Z INFO windmill_api::oauth2: Final oauth config: AllClients {
logins: {},
connects: {},
slack: None,
}
2023-09-28T20:52:00.580182Z INFO windmill: Base URL setting change detected
2023-09-28T20:52:00.589332Z INFO windmill_api::oauth2: OAuth loaded clients: gsheets, gdrive
2023-09-28T20:52:00.589384Z ERROR windmill_api::oauth2: Error building oauth client gsheets: Invalid redirect URL: relative URL without a base
2023-09-28T20:52:00.589402Z ERROR windmill_api::oauth2: Error building oauth client gdrive: Invalid redirect URL: relative URL without a base
2023-09-28T20:52:00.589408Z INFO windmill_api::oauth2: Final oauth config: AllClients {
logins: {},
connects: {},
slack: None,
}
20 replies
WWindmill
Created by Omen on 9/28/2023 in #help
Setting up oauth resources for gdrive/gsheets on self-hosted
Hi @rubenf @Faton, please let me know if I should add anything to make this problem report more clear, thank you
20 replies