Backed authentication user-to-server without device flow #455
Labels
hacktoberfest
Issues for participation in Hacktoberfest
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Support
Any questions, information, or general needs around the SDK or GitHub APIs
Maybe this questions does not belong here, but anyway I try. I tried to follow example code snippets from README but they are not very clear for me. I was able to authenticate Octokit using the simple auth (Personal Access Token) and using a device flow (Github app). But what I want to achieve is the user-to-server authentication without explicitly redirecting the user to a browser (because I run it in the backend) and without the need to pass the device code.
My GithubApp is already installed in the UserA's repository REPO with also the checkbox "Request user authorization (OAuth) during installation". So my undestanding is that the github app can act onbehalf of UserA in repository REPO. So how can I authenticate my node.js app and run for example a create commit or create issue?
I would like to see the commit/issue be created under "UserA created commit using [app name]"
Thanks!
my attempts:
OAuth - this creates a commit under user UserA. But there is no mention of the app, and it requires the Code input from UserA.
The other attempt, not sure what should I put into the code:
The text was updated successfully, but these errors were encountered: