1

I'm developing an application in C# and I to post questions, so I need an access token.

I registered my application and I have received a client ID. Then I get the following query-string to get the access token:

https://stackexchange.com/oauth/dialog?client_id=3996&scope=write_access&redirect_uri=https://stackexchange.com/oauth/login_success

The following error occurs (¿on page redirection?):

Application Login Failure

An error occurred while login into an application. Error Details

error description: client_id rejected

What is the reason for the error? How I could resolve the error?

  • Could anyone help me with an resolution? I urgently need to solve the problem – user2621858 Dec 3 '14 at 18:10
1

That error means that you've used an invalid id or that the settings on your app page are incorrect.

Do the following:

  1. Go to Your Apps page. You should see your app listed. If it is not, then register a new app.

  2. Click on your app's settings page. For example: stackapps.com/apps/oauth/view/3996. Note that only the owner can see a given app's settings page.

  3. For the kind of authorization you seem to be attempting, make your settings as follows:

    1. Stack Apps Post must be set to a valid post that you own.
      In this case, https://stackapps.com/questions/5017/ should work for user2621858.

    2. Enable Client Side OAuth Flow ==> checked

    3. Disable Desktop Application OAuth Redirect Uri ==> not checked

    4. OAuth Domain ==> stackexchange.com

    5. Application Name ==> (not blank and no error message)

    6. Description ==> (not blank and no error message)

    7. Application Website ==> http://localhost/foo/ (Not critical for this kind of auth.)


Finally, be sure that your app hasn't been disabled for gross attempts at violating quota limits or terms of service or ignoring the backoff flag. (I'm not sure what the error message would be for a banned app and that is probably not the case for this OP at this time.)

  • Thanks for ur help. I have modified the setting as per your instructions. Still it is showing "client_id rejected error" on hitting the url:stackexchange.com/oauth/… – user2621858 Dec 4 '14 at 7:10
  • Also, How I can understand whether my application is banned or not? – user2621858 Dec 4 '14 at 7:25
  • Try creating a new application and seeing if it works. As for verifying that an app is banned, an SE employee would have to answer that. – Brock Adams Dec 4 '14 at 7:30
  • Thanks for your help.I have created a new application and received access token on hitting the url (stackexchange.com/oauth/dialog?client_id=3973&scope= write_access&redirect_uri=stackexchange.com/oauth/login_success). Now, I tried to post a question from StacExchange API test page (api.stackexchange.com/docs/create-question). But it is showing an error : "We are no longer accepting questions from this account.".What could be the reason ? I dont think I have restricted from posting question as I could post questions manually.What is the solution ? – user2621858 Dec 4 '14 at 11:11
  • That's a whole different question. Mark this question as answered and create a new question for that. – Brock Adams Dec 4 '14 at 11:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .