Authorize app in the convex Dashboard
I'm attempting to build something with Analytics, and was wondering how can I authorize users to login to My app, and Authorizing them to be connected to the convex dashboard, similar to how chef is being authorized:
My initial thought is to make use convex-auth with Gmail or github, and authorize based on it (I'm 90% sure that's not possible)
second thought is, to connect users through their deployment url link similar to how
convex-panel
is made
https://github.com/robertalv/convex-panel/blob/main/src/ConvexPanel.tsx#L174-L184GitHub
convex-panel/src/ConvexPanel.tsx at main · robertalv/convex-panel
A React component for monitoring and debugging Convex applications - robertalv/convex-panel

14 Replies
hmm. this is a cool idea, but I don't know if we have any real way to accomplish it right now. @ari any ideas?
Hi @Sara can you tell me a bit more about what you're building? Are you making a convex project for each user or want to give multiple users access to one of your convex projects?
It is basically to authorize users into each projct -> to use analytics per project base
Users need full access to the project? Do you want the project to be in your own convex team, or the user's team?
We're launching support for building OAuth applications with convex that will allow your app to create projects and manage convex deployments in your user's convex account similar to the way Chef does very soon (can likely get you access early next week)
I'm not entirely sure on how I'd want to do this, but I'm generally guessing the user's Convex Team? I was thinking maybe i could be able to do it per project via the deployment key
Ah Sweet! I've been trying to mess around with classes, I mostly need to access the project logs + functions code
Ooh like the original source code? And the logs that appear on the logs page?
Exactly
For the logs you may be able to get away with ingesting webhooks: https://docs.convex.dev/production/integrations/log-streams/#webhook
Trying to understand your use case a bit more -- you're building a tool for people that already have convex projects and want to run some analytics?
exactly 👀
I might look into adding a webhook script
but I'll still try out the OAuth since it fits better with what I want to implement
For the function code, we do store that in Convex but in some cases the source-maps for the code don't map back well right now (it's something we want to fix in the future)
So you may want to do a github integration to pull the original code instead
that would be cool too! one step at a time
Yup! Happy to help map out this project / hop on a call sometime to find the right path forward. We're really interested in folks building out integrations and want our offering to support them well
sweet, all your hard work is appreciated 😉, I've been writing docs first so it'll take me a week to pass the first part of setting up everything and make sure it all is working properly :kekw:
I'll make sure to nudge when I'm facing an issue! Thank you so much
Sweet! feel free to send a project outline over whenever. I'll add you as a friend on discord