Skip to content

Commit

Permalink
Delete OAuth Authorizations API for free/pro/team and GHEC (github#29335
Browse files Browse the repository at this point in the history
)

Co-authored-by: Vanessa <vgrl@github.com>
Co-authored-by: github-openapi-bot <69533958+github-openapi-bot@users.noreply.github.com>
Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com>
  • Loading branch information
4 people authored Aug 1, 2022
1 parent eb6af61 commit f6d51bc
Show file tree
Hide file tree
Showing 12 changed files with 1,093 additions and 17,116 deletions.
1 change: 0 additions & 1 deletion content/rest/guides/getting-started-with-the-rest-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,6 @@ Keep learning with the next API guide [Basics of Authentication][auth guide]!
[media types]: /rest/overview/media-types
[oauth]: /apps/building-integrations/setting-up-and-registering-oauth-apps/
[webflow]: /apps/building-oauth-apps/authorizing-oauth-apps/
[create a new authorization API]: /rest/reference/oauth-authorizations#create-a-new-authorization
[scopes]: /apps/building-oauth-apps/understanding-scopes-for-oauth-apps/
[repos-api]: /rest/reference/repos
[pages]: http://pages.github.com
Expand Down
2 changes: 0 additions & 2 deletions content/rest/oauth-authorizations.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
title: OAuth authorizations
intro: The OAuth authorizations lets you manage the access OAuth applications have to your account.
versions:
fpt: '*'
ghec: '*'
ghes: '*'
topics:
- API
Expand Down
10 changes: 0 additions & 10 deletions content/rest/overview/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,6 @@ For OAuth Apps, you should use the [web application flow](/apps/building-oauth-a
curl -H 'Authorization: token my-oauth-token' https://api.github.com/user/repos
```

### Calls to OAuth Authorizations API

If you're making [OAuth Authorization API](/enterprise-server/rest/reference/oauth-authorizations) calls to manage your OAuth app's authorizations or to generate access tokens, similar to this example:

```bash
curl -u my_username:my_password -X POST "https://api.github.com/authorizations" -d '{"scopes":["public_repo"], "note":"my token", "client_id":"my_client_id", "client_secret":"my_client_secret"}'
```

Then you must switch to the [web application flow](/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to generate access tokens.

## Timeouts

If {% data variables.product.product_name %} takes more than 10 seconds to process an API request, {% data variables.product.product_name %} will terminate the request and you will receive a timeout response.
Expand Down
1 change: 0 additions & 1 deletion lib/rest/static/apps/enabled-for-apps.json
Original file line number Diff line number Diff line change
Expand Up @@ -2171,7 +2171,6 @@
"requestPath": "/repos/{owner}/{repo}/import/lfs"
}
],
"oauth-authorizations": [],
"orgs": [
{
"slug": "list-organizations",
Expand Down
Loading

0 comments on commit f6d51bc

Please sign in to comment.