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
oauth return url identification problem
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
  6 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
 
Mark Hahn  
View profile  
 More options Nov 8 2012, 6:43 pm
From: Mark Hahn <m...@hahnca.com>
Date: Thu, 8 Nov 2012 15:43:10 -0800 (PST)
Local: Thurs, Nov 8 2012 6:43 pm
Subject: oauth return url identification problem

When I send in the initial request for a verification code and use this
return url ...

    https://d.eevu.it/basecamp_auth?user=04c86d1514822b09d60

... I get the return error "Provided redirect_uri is not approved".  When I
just send ...

    https://d.eevu.it/basecamp_auth

... it works fine.  This matches what i have in the app control panel.  But
this means the return url is just something like "?code=1234" and I don't
have my user id.  This is a big problem.  If my server sends
multiple verification code requests, how is it supposed to know which
callback matches which request?

Dropbox allows the query params and I have no problem.


 
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.
Mark Hahn  
View profile  
 More options Nov 9 2012, 11:22 am
From: Mark Hahn <m...@hahnca.com>
Date: Fri, 9 Nov 2012 08:22:55 -0800 (PST)
Local: Fri, Nov 9 2012 11:22 am
Subject: Re: oauth return url identification problem

Ok, I understand now.  The verification id is only used once for all users.
 This is quite different from how dropbox does auth and I was expecting the
same.

Sorry for the lame question.


 
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.
Jeremy Kemper  
View profile  
 More options Nov 9 2012, 3:55 pm
From: Jeremy Kemper <jer...@37signals.com>
Date: Fri, 9 Nov 2012 13:55:23 -0700
Local: Fri, Nov 9 2012 3:55 pm
Subject: Re: [37signals API] Re: oauth return url identification problem

Hey Mark

We require an exact redirect_uri match. You can pass additional info using
the 'state' param in the initial auth request. When we redirect back to
you, we include your original state so you know which user you're working
with.

 
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.
Mark Hahn  
View profile  
 More options Nov 9 2012, 4:22 pm
From: Mark Hahn <m...@hahnca.com>
Date: Fri, 9 Nov 2012 13:22:04 -0800 (PST)
Local: Fri, Nov 9 2012 4:22 pm
Subject: Re: [37signals API] Re: oauth return url identification problem

Thanks, it is good to know about the state param..I'm not bitching but
should I have read about this somewhere in the documentation?

While I have your attention, I've gotten stuck on the next step of getting
the token.  I don't know what to put in the body of the POST.  This doesn't
seem to be documented.

I've tried sending the POST with an empty body with a Content-Length of
zero, but I get a 411 saying there is no Content-Length.  As a matter of
fact I get a 411 no matter what I do.

Do you know of any sample code that implements these requests?


 
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.
Mark Hahn  
View profile  
 More options Nov 9 2012, 5:08 pm
From: Mark Hahn <m...@hahnca.com>
Date: Fri, 9 Nov 2012 14:08:40 -0800 (PST)
Local: Fri, Nov 9 2012 5:08 pm
Subject: Re: [37signals API] Re: oauth return url identification problem

I read the oauth2 draft specification and I see now where the state param
is defined.  I haven't been able to figure out what goes in the token POST
request body yet but I'll keep trying.


 
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.
Mark Hahn  
View profile  
 More options Nov 10 2012, 7:11 pm
From: Mark Hahn <m...@hahnca.com>
Date: Sat, 10 Nov 2012 16:11:20 -0800 (PST)
Local: Sat, Nov 10 2012 7:11 pm
Subject: Re: [37signals API] Re: oauth return url identification problem

I've gotten oauth2 to work.  I discovered that i needed to put the params
in both the query and the body.  How weird is that?


 
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 »