Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
User Authentication using API + oAuth
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ed Burns  
View profile  
 More options Dec 21 2011, 1:33 pm
From: Ed Burns <ed.blogres...@gmail.com>
Date: Wed, 21 Dec 2011 10:33:14 -0800 (PST)
Local: Wed, Dec 21 2011 1:33 pm
Subject: User Authentication using API + oAuth
Trying to authenticate a user via
https://disqus.com/api/oauth/2.0/access_token/

I've learned that the documentation is incorrect in that it specifies
the request as GET when it has to be POST.

However, after switching to POST, I get an invalid_grant error when
attempting to authenticate a user:

My Request:
grant_type=password&client_secret=(SECRET)&client_id=(PUBLIC)&username=(USE RNAME)&password=(PASSWORD)

The Response:
array(2) {
  ["error_description"]=>
  string(30) "Unallowed grant type: password"
  ["error"]=>
  string(13) "invalid_grant"

}

Since the documentation specifically tells me grant_type should be set
to 'password', I'm pretty stuck on this.

Anyone have any experience with authenticating a user with
access_token requests?

Ed


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ed Burns  
View profile  
 More options Dec 21 2011, 1:41 pm
From: Ed Burns <ed.blogres...@gmail.com>
Date: Wed, 21 Dec 2011 10:41:00 -0800 (PST)
Subject: Re: User Authentication using API + oAuth
Ahh...didn't notice this part:

Certain applications may not have full access to a standard web-style
authorization flow. This is ideal for desktop and mobile applications.
Given this, we also support authorization by requesting the client's
username and password. This type of flow is restricted to approved
applications only, so you must request access first.

Requires approval first.

On Dec 21, 11:33 am, Ed Burns <ed.blogres...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcor  
View profile  
 More options Jul 3 2012, 10:18 am
From: Marcor <marco...@gmail.com>
Date: Tue, 3 Jul 2012 07:18:16 -0700 (PDT)
Local: Tues, Jul 3 2012 10:18 am
Subject: Re: User Authentication using API + oAuth

I've the same problem:
{"error_description": "Unallowed grant type: password", "error":
"invalid_grant"}

How can I require the approval?

Il giorno mercoledì 21 dicembre 2011 19:41:00 UTC+1, Ed Burns ha scritto:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Cramer  
View profile  
 More options Jul 3 2012, 10:20 am
From: David Cramer <dcra...@gmail.com>
Date: Tue, 3 Jul 2012 16:20:11 +0200
Local: Tues, Jul 3 2012 10:20 am
Subject: Re: [disqus-dev] Re: User Authentication using API + oAuth

Send me the following (da...@disqus.com):  

- Application summary (what it is)
- Reason for wanting to use password auth (vs other auth)
- Information on yourself or the company that the application is being developed on behalf of.

--  
David Cramer

twitter.com/zeeg
disqus.com/zeeg


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »