How to authenticate with a Github App to create V2 projects, through the new graphql API? #46681
Replies: 4 comments 5 replies
-
Ok... I think I got right the jwt auth, but still... What I accomplished was to get a valid bearer token to be able to send a valid mutation to the server, but the thing is I still got an error message that says That part I don't think I'll be able to figure out by myself, but it must be possible, if github is deprecating the classic projects, right? I'll leave a brief script that I made in node to generate the jwt, in case it helps someone 😅
|
Beta Was this translation helpful? Give feedback.
-
Were you able to find a solution for this? I've been at it for a few days now and documentation is super unclear |
Beta Was this translation helpful? Give feedback.
-
@mfigares @berkeli This was a tricky nuance indeed! The docs were updated today to expand on it. TL;DR: add the repository |
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.
-
Select Topic Area
Question
Body
I feel like I'm missing something so silly that when someone points it out I'll feel dumb, but I'll ask anyway.
The thing that I'm trying to do is just "creating a projectV2 with a github App, through the graphql API, to a predefined repo, in a user's account that has already installed the App". I can do it with a personal access token (classic), but I didn't find an analogous auth method in the app.
This is the mutation that I'm applying to my own repo (I'll share the exact same graphql mutation without the personal access token)
It should be the same mutation if I was authenticating it as an App? If that's the case, where are those credentials in my App?
If it wasn't the same mutation and I needed to add other/different arguments to the mutation, which params should I add? Can someone give me advice on this?
Thanks in advance to any replier 😄
Beta Was this translation helpful? Give feedback.
All reactions