Passing dynamic state to Github Apps post install? #53626
Replies: 6 comments 2 replies
-
@APTy Did you happen to resolve this using a server-side solution? Have you see the callback URL option that's available on the app settings page? |
Beta Was this translation helpful? Give feedback.
-
I'm also interested in solving this. When initiating a GitHub App auth flow from my app's frontend, it's hard to reconcile what internal account initiated the request with the webhook I get from GitHub (which has info only about the GitHub account). The
|
Beta Was this translation helpful? Give feedback.
-
I had this question too, and stumbled into an answer. I was trying to pass a It Would. Not. Work. because I was sending the user to:
What's confusing is that both URLs work for (afaict) all the other parts of the process: you get your app installed. But only the one ending in |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Actually the problem is still here, it would be great the |
Beta Was this translation helpful? Give feedback.
-
I have the same problem - So if you do some changes to the installation (or even use Back button to adjust installation a bit), it does redirect like to url like I need |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Similar to how OAuth apps can pass a
state
parameter to the callback, is there a way to do this with Github Apps?I receive a webhook for
installation.created
, but I don't know how to associate that with a user in my application.Put another way, is there a best practice for associating github events with applications?
Thanks!
Edit: Worth knowing I'm aware of the docs for Preserving an application state during installation but there's no clear way on how my backend should receive this state, and if it's entirely on the frontend, it's not trustworthy.
Beta Was this translation helpful? Give feedback.
All reactions