Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Wrong Authentication in "OAuth Authorizations" page #2925

Copy link
Copy link
Open
@kbumsik

Description

@kbumsik
Issue body actions

Code of Conduct

What article on docs.github.com is affected?

All endpoints in https://docs.github.com/en/free-pro-team@latest/rest/apps/oauth-applications?apiVersion=2022-11-28

What part(s) of the article would you like to see updated?

In the whole page, the doc clearly states that you must use Basic Authentication for OAuth Authorizations endpoints.

However, the code samples use token authentication, which is NOT working.

For example, it should be fixed like below:

curl -L \
  -X DELETE \
  -H "Accept: application/vnd.github+json" \
-  -H "Authorization: Bearer <YOUR-TOKEN>" \
+  --user "<YOUR_CLIENT_ID>:<YOUR_CLIENT_SECRET>" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/applications/Iv1.8a61f9b3a7aba766/grant \
  -d '{"access_token":"e72e16c7e42f292c6912e7710c838347ae178b4a"}'

Additional information

Screenshot by Dropbox Capture

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.