Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecating API authentication Github #1766

Closed
tdnhduc opened this issue Dec 1, 2021 · 1 comment
Closed

Deprecating API authentication Github #1766

tdnhduc opened this issue Dec 1, 2021 · 1 comment

Comments

@tdnhduc
Copy link

tdnhduc commented Dec 1, 2021

When I'm trying access private repository on stackedit.io.

curl 'https://api.github.com/user?access_token=<MY_ACCESS_TOKEN>' \
  -H 'authority: api.github.com' \
  -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36' \
  -H 'accept: */*' \
  -H 'sec-gpc: 1' \
  -H 'origin: https://stackedit.io' \
  -H 'sec-fetch-site: cross-site' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-dest: empty' \
  -H 'referer: https://stackedit.io/' \
  -H 'accept-language: en-US,en;q=0.9' \
  --compressed

stackedit.io receive response from github

  "message": "Must specify access token via Authorization header. https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param",
  "documentation_url": "https://docs.github.com/v3/#oauth2-token-sent-in-a-header"
}

Please update this api. Refer https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param/

@tyoc213
Copy link

tyoc213 commented Dec 1, 2021

#1755 (comment)

@tdnhduc tdnhduc closed this as completed Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants