@@ -198,76 +198,6 @@ can specify multiple scopes by separating them with a comma:
198198 scope=user,public_repo
199199
200200## Common errors for the authorization request
201- <<<<<<< HEAD
202-
203- There are a few things that can go wrong in the process of obtaining an
204- OAuth token for a user. In the initial authorization request phase,
205- these are some errors you might see:
206-
207- ### Application Suspended
208-
209- If the OAuth application you set up has been suspended (due to reported
210- abuse, spam, or a mis-use of the API), GitHub will redirect to the
211- registered callback URL with the following parameters summerizing the
212- error:
213-
214- http://your-application.com/callback?error=application_suspended
215-
216- Please contact [ support] ( https://github.com/contact ) to solve issues
217- with suspended applications.
218-
219- ### Redirect URI mismatch
220-
221- If you provide a redirect_uri that doesn't match what you've registered
222- with your application, GitHub will redirect to the registered callback
223- URL with the following parameters summerizing the error:
224-
225- http://your-application.com/callback?error=redirect_uri_mismatch
226-
227- To correct this error, either provide a redirect_uri that matches what
228- you registered or leave out this parameter to use the default one
229- registered with your application.
230-
231- ### Access denied
232-
233- If the user rejects access to your application, GItHub will redirect to
234- the registered callback URL with the following parameters summerizing
235- the error:
236-
237- http://your-application.com/callback?error=access_denied
238-
239- There's nothing you can do here as users are free to choose not to use
240- your application. More often that not, users will just close the window
241- or press back in their browser, so it is likely that you'll never see
242- this error.
243-
244- ## Common errors for the access token request
245-
246- In the second phase of exchanging a code for an access token, there are
247- an additional set of errors that can occur. The format of these
248- responses is determined by the accept header you pass. The following
249- examples only show JSON responses.
250-
251- ### Invalid client credentials
252-
253- If the client\_ id and or client\_ secret you pass are incorrect you will
254- receive this error response.
255-
256- <%= json : error => : invalid_client_credentials %>
257-
258- To solve this error, go back and make sure you have the correct
259- credentials for your oauth application. Double check the ` client_id ` and
260- ` client_secret ` to make sure they are correct and being passed correctly
261- to GitHub.
262-
263- ### Bad verification code
264-
265- If the verification code you pass is incorrect, expired, or doesn't
266- match what you received in the first request for authorization you will
267- receive this error.
268-
269- <%= json : error => : bad_verification_code %>
270- =======
271201
272202There are a few things that can go wrong in the process of obtaining an
273203OAuth token for a user. In the initial authorization request phase,
@@ -368,8 +298,6 @@ receive this error.
368298 : error_uri => "http://developer.github.com/v3/oauth/#bad-verification-code "
369299%>
370300
371- >>>>>>> master
372-
373301To solve this error, start the [ OAuth process over from the beginning] ( #redirect-users-to-request-github-access )
374302and get a new code.
375303
0 commit comments