8000 Merge pull request #717 from github/update-1424447082 · liukailcl/developer.github.com@322dab5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 322dab5

Browse files
committed
Merge pull request github#717 from github/update-1424447082
2 parents ee96eed + 5066101 commit 322dab5

File tree

3 files changed

+43
-3
lines changed

3 files changed

+43
-3
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
kind: change
3+
title: Breaking changes to Authorizations API responses on April 20
4+
created_at: 2015-02-19
5+
author_name: ptoomey3
6+
---
7+
8+
A couple weeks ago we [extended the preview period][removing-authorizations-token-extended-preview] of several API changes related to managing OAuth application authorizations. Today, we're finalizing these changes. This new functionality is now stable and suitable for production use. If your application relies on any of the affected functionality (described below), be sure to **update your code before April 20** to account for these changes.
9+
10+
### Breaking changes coming on April 20
11+
12+
If your application uses any of the following APIs, then you may be affected by this change:
13+
14+
- The [List your authorizations][list-your-authorizations] API
15+
- The [Get a single authorization][get-a-single-authorization] API
16+
- The [Get-or-create an authorization for a specific app][get-or-create-an-authorization-for-a-specific-app] API (`token` is still returned for "create")
17+
- The [Get-or-create an authorization for a specific app and fingerprint][get-or-create-an-authorization-for-a-specific-app-and-fingerprint] API (`token` is still returned for "create")
18+
- The [Update an existing authorization][update-an-existing-authorization] API
19+
20+
21+
If your application uses these APIs, we urge you to update your application as soon as possible. (Read [the December announcement][removing-authorizations-token] for more details on the changes.)
22+
23+
Starting today, we're offering a migration period allowing applications to opt in to these changes (as described below). On April 20, these changes will become official parts of the GitHub API v3. At that time, these changes will apply to all API consumers.
24+
25+
### Migration period
26+
27+
During the migration period, you can opt-in to these changes using the following custom media type in the `Accept` header:
28+
29+
application/vnd.github.mirage-preview+json
30+
31+
We want to make these updates as smooth as possible for everyone, and we hope that the migration period gives you flexibility to adopt these changes on your own schedule. If you have any questions or feedback, please [get in touch with us][contact]!
32+
33+
[removing-authorizations-token-extended-preview]: /changes/2015-02-03-removing-authorizations-token-update/
34+
[removing-authorizations-token]: /changes/2014-12-08-removing-authorizations-token/
35+
[list-your-authorizations]: /v3/oauth_authorizations/#list-your-authorizations
36+
[get-a-single-authorization]: /v3/oauth_authorizations/#get-a-single-authorization
37+
[get-or-create-an-authorization-for-a-specific-app]: /v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app
38+
[get-or-create-an-authorization-for-a-specific-app-and-fingerprint]: /v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint
39+
[update-an-existing-authorization]: /v3/oauth_authorizations/#update-an-existing-authorization
40+
[contact]: https://github.com/contact?form[subject]=Removing+authorizations+token

content/v3/oauth_authorizations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Make sure you understand how to [work with two-factor authentication](/v3/auth/#
2828
</ul>
2929

3030
<p>
31-
Please see <a href="/changes/2014-12-08-removing-authorizations-token/">the blog post</a> for full details.
31+
We're currently offering a migration period allowing applications to opt in to the new Authorization API behavior. This functionality will apply to all API consumers beginning April 20, 2015. Please see <a href="/changes/2015-02-20-migration-period-removing-authorizations-token/">the blog post</a> for full details.
3232
</p>
3333

3434
<p>
@@ -41,7 +41,7 @@ Make sure you understand how to [work with two-factor authentication](/v3/auth/#
4141
</p>
4242

4343
<p>
44-
To access the new API functionality during the preview period, you must
44+
To access the new API functionality during the migration period, you must
4545
provide a custom <a href="/v3/media/">media type</a> in the
4646
<code>Accept</code> header:
4747
<pre>application/vnd.github.mirage-preview+json</pre>

content/v3/versions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ The recommendations below will help you prepare your application for the next ma
114114
1. Authorization attribute: token
115115
: Recommendation: This attribute will return an empty string in the majority of
116116
the Authorizations API responses. Please see
117-
[the deprecation blog post](/changes/2014-12-08-removing-authorizations-token/)
117+
[the deprecation blog post](/changes/2015-02-20-migration-period-removing-authorizations-token/)
118118
and the [Authorizations API deprecation notice](/v3/oauth_authorizations/#deprecation-notice)
119119
for full details.
120120

0 commit comments

Comments
 (0)
0