Attempting to set up custom Oauth connection
Hello, my team and I are using the Enterprise Edition of Windmill and have run into a bit of a snag attempting to set up a connection to one of our API endpoints. However, one of the requirements that's been given to us is to set up the connection with OAuth and that they require us to provide a redirect URI in order to do so.
I've been reading through this documentation: https://www.windmill.dev/docs/misc/setup_oauth
However, I'm not seeing where I would get this for a custom connection, just established ones (Google, Microsoft, Slack, etc.).
Could someone help me figure out how I would go about finding this or setting it up ourselves?
Setup OAuth and SSO | Windmill
Windmill supports Single Sign-On for Google, Microsoft, Okta, GitHub, GitLab, Jumpcloud, Keycloak, Authentik, Authelia, Kanidm, Zitadel and domain restriction.
5 Replies
here on the bottom of the oauth settings in the instance settings:

So, just to understand this a bit better
When I add that, does it automatically create a Redirect URI under https://<instance_name>/oauth/callback/<service_name> ?
correct
Awesome!
Now, my apologies for a lack of understanding here - after I've set up that oauth connection and got my client id/client secret/auth url/token url included in that
If I then wanted to make a request to the API we set that up for, how exactly does that look within a script? (using python myself here)
I've previously used the "wmill" package import to get resources/variables, but looking through that (https://github.com/windmill-labs/windmill/blob/main/python-client/wmill/wmill/client.py), nothing stands out to me in terms of referencing this connection
Is it just an automated authentication if I were try to hit that endpoint, given that I've provided them that redirect uri?
it's better than that. You can just use a resource with that resource type and we handle refreshing the token for youy
so create the resource as a user once, and then you're guaranteed the token will always be non expired in that resource