Permalink
Browse files

access token post params confusion

  • Loading branch information...
1 parent fb11e28 commit 69dd5a404429dc439e6b595ee7c5a01ddfa4e0aa @rloads rloads committed Sep 28, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 authentication.md
View
@@ -27,20 +27,20 @@ Request access, receive a verification code, trade it for an access token.
1. Your app requests authorization by redirecting your user to TeamPlatform's authorization end point:
- https://teamplatform.com/api/v1/oauth/authorize?response_type=code&client_id=your-client-id&redirect_uri=your-redirect-uri
+ https://teamplatform.com/api/v1/oauth/authorize?response_type=code&client_id=your_client_id&redirect_uri=your_redirect_uri
2. We authenticate their TeamPlatform ID and ask whether it's ok to give access to your app.
3. We redirect the user back to your app with a time-limited verification code.
- http://your_redirect_uri?code=issued_verification_code
+ http://your_redirect_uri?code=your_issued_verification_code
4. Your app makes a backchannel request to trade the verification code for an access token. We authenticate your app and issue an access token:
POST https://teamplatform.com/api/v1/oauth/access_token
{
"grant_type": "authorization_code",
- "code": "verification_code",
+ "code": "your_issued_verification_code",
"client_secret": "your_client_secret",
"client_id": "your_client_id",
"redirect_uri": "your_redirect_uri"

0 comments on commit 69dd5a4

Please sign in to comment.