GitHub legacy token authentication is broken
See original GitHub issueThe most recent commit updated the construction of a GitHub instance in the connect controller, but did not pass the ‘version’ option. As a result it is not possible to use the legacy ‘token’ GitHub authentication. I created a commit to my own branch to try ad address this issue. However I am now getting an UnhandledPromiseRejectionWarning. The details are in the linked commit comments.
Are you in the process of tearing out support for token authentication? Any ideas why it is currently failing to work?
UPDATE: I captured the error. It is returning a 404. I am not sure why yet though.
{ HttpError: Not Found
at response.text.then.message (/var/task/user/index.js:130027:27)
at <anonymous>
at process._tickDomainCallback (internal/process/next_tick.js:228:7)
name: 'HttpError',
status: 404,
headers:
{ 'access-control-allow-origin': '*',
'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type',
connection: 'close',
'content-encoding': 'gzip',
'content-security-policy': 'default-src \'none\'',
'content-type': 'application/json; charset=utf-8',
date: 'Sun, 07 Apr 2019 13:02:39 GMT',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
server: 'GitHub.com',
status: '404 Not Found',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
'transfer-encoding': 'chunked',
'x-accepted-oauth-scopes': 'public_repo, repo, repo:invite',
'x-content-type-options': 'nosniff',
'x-frame-options': 'deny',
'x-github-media-type': 'github.v3; format=json',
'x-github-request-id': 'E876:4A18:21B074A:28D6BF7:5CA9F4EF',
'x-oauth-scopes': '',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4999',
'x-ratelimit-reset': '1554645759',
'x-xss-protection': '1; mode=block' },
request:
{ method: 'GET',
url: 'https://api.github.com/user/repository_invitations',
headers:
{ accept: 'application/vnd.github.v3+json',
'user-agent': 'Staticman agent octokit.js/16.8.0 Node.js/8.10.0 (Linux 4.14; x64)',
authorization: 'token <MY-TOKEN>' },
request: { timeout: 5000, validate: [Object] } },
documentation_url: 'https://developer.github.com/v3/repos/invitations/#list-a-users-repository-invitations' }
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
Token not working, always causing 403 · Issue #11217 - GitHub
GitHub action Upload Python Package authentication fails with the token I generates for it (403). ... Create a repo with some python things....
Read more >Unable to host own instance · Issue #318 - GitHub
Create a new GitHub account to run your bot. In this account, generate a personal access token in dev settings and use this...
Read more >Authentication broken with Octokit 4.22.0 and ... - GitHub
22.0 of the gem we are seeing authentication failures against GitHub Enterprise v3.1.2 using both GitHub App auth and personal token auth.
Read more >SSO Auth is broken on 4.0+ for "Automatically created users ...
ModularRealmAuthenticator - Attempting to authenticate token ... 4.0.x with users that were created automatically by the legacy SSO plugin.
Read more >Troubleshooting OAuth App access token request errors
To solve this error, make sure you have the correct credentials for your OAuth App. Double check the client_id and client_secret to make...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1 for this issue. I just hit that when I tried to run my own instance from latest master branch.
Quick temporary workaround if needed - checkout latest verified version and restart application:
git checkout -b workaround 9ce2c48
I created PR #285 to rollback version 3 API support. I understand that the normal procedure is to make a PR for the dev branch. This rollback will fix all the unit tests and restore version 2 API support to last known good. Once the dev branch is ready then it can be merged again into master.