2-legged oauth

178 views
Skip to first unread message

Chad Wagner

unread,
Apr 3, 2012, 4:09:54 PM4/3/12
to 7digit...@googlegroups.com
Hi all,

Does anyone have some simple pointers or steps for getting 2-legged oauth working? The protected URL I am interested in accessing is for track streaming, http://stream.geo.7digital.com/media/track/stream

I'm using the php OAuth extension, but I think the problem is I just don't have the steps right in my head. All of the examples and tutorials I've found are for 3-legged oauth. The best I've managed so far is to get an error that "response does not contain a user". I do include our own userId (session ID) in the query string as suggested in the docs. Either that, or perhaps my key is not working, we have not verified it yet through any successful use.

Any advice would be much appreciated.

Thanks,
Chad

filip

unread,
Apr 3, 2012, 4:41:41 PM4/3/12
to 7digital API Developers
Hi Chad,

in 2-legged oauth requests you just need to omit the token, it's
basically equivalent to request for a "request token" in the 3-legged
world. (since at that point no tokens are involved yet)

But I don't really know how can you replicate this using the php OAuth
extension, hopefully someone else might be able to help you here.

Please note that the error messages on our media delivery servers are
currently slightly confusing and the "response does not contain a
user" error is most probably not the real reason why your requests are
failing. Look for the very last sentence of the whole error message.

The best starting point in debugging OAuth issues is by making a plain
OAuth signed request with all the application specific parameters
omitted and see if you get a different error back or not.

Cheers
Filip
7digital

On Apr 3, 9:09 pm, Chad Wagner <c...@chadawagner.com> wrote:
> Hi all,
>
> Does anyone have some simple pointers or steps for getting 2-legged oauth working?  The protected URL I am interested in accessing is for track streaming,http://stream.geo.7digital.com/media/track/stream

Chad Wagner

unread,
Apr 3, 2012, 5:59:03 PM4/3/12
to 7digit...@googlegroups.com
Hi Filip,

Thanks for the quick response. I was hoping that would help but unfortunately I'm still having issues. Nevermind about PHP, I am trying to use the 7digital OAuthConsole from github to get the mechanics straightened out, and getting the same errors. The last sentence is just "Access to resource denied." I've been at this now for quite some time, and not sure what to try next. Before I waste too many more hours is there a way to verify that my consumer key and secret are indeed activated and working properly?

filip

unread,
Apr 3, 2012, 6:15:29 PM4/3/12
to 7digital API Developers
That "Access to resource denied" bit is actually the important part of
the error message. (We're working on improving the error messaging).

It means your API key does not have access to this endpoint. I have
your key details so someone will look into this tomorrow. We'll get
back to you directly.

Thanks
Filip

Ramana Vishnumolakala

unread,
Aug 23, 2012, 7:40:09 PM8/23/12
to 7digit...@googlegroups.com
Hi Filip,

I am getting the same error when I am trying to access http://feeds.api.7digital.com/1.2/feed/artist/full. Do i need to get in touch with 7digital to get more privileges for my access key?

Thanks,
Ramana

Christine O'Dell

unread,
Aug 24, 2012, 6:12:28 AM8/24/12
to 7digit...@googlegroups.com
Hi Ramana,

The feeds are only available to clients with a contract with us.  As such you will need to contact us directly to set this up.

If you already have this agreed, then please contact your Account Manager who will check that your key has the necessary privileges.

Thanks,
Chris
Reply all
Reply to author
Forward
0 new messages