OAuth 2.0 error responses

43 views
Skip to first unread message

luisge...@fastmail.fm

unread,
Jun 21, 2015, 7:40:44 AM6/21/15
to rdio...@googlegroups.com
I justs switched to OAuth 2 and noticed that when I provide an invalid access token I get a 401 with JSON that looks like the one documented at www.rdio.com/developers/docs/web-service/oauth2/overview/ref-error-codes but has the error code invalid_token. Could you please clarify when which error codes are returned? Is the information at www.rdio.com/developers/docs/web-service/overview/ still valid?

Rebecca Stecker

unread,
Jun 22, 2015, 9:45:50 PM6/22/15
to rdio...@googlegroups.com
Hi there,

The error codes listed for http://www.rdio.com/developers/docs/web-service/oauth2/overview/ref-error-codes are for failures at the Token endpoint that are bad requests (400 response code).  

It looks like the unauthorized responses (401) are not documented. Are you getting these responses from the resource endpoint?  I've filed a task to expand upon the documentation.

Currently we can return two different 401 errors- `invalid_token` and `insufficient_scope`

Rebecca Stecker
Rdio API Engineer

On Sun, Jun 21, 2015 at 4:40 AM, <luisge...@fastmail.fm> wrote:
I justs switched to OAuth 2 and noticed that when I provide an invalid access token I get a 401 with JSON that looks like the one documented at www.rdio.com/developers/docs/web-service/oauth2/overview/ref-error-codes but has the error code invalid_token. Could you please clarify when which error codes are returned? Is the information at www.rdio.com/developers/docs/web-service/overview/ still valid?

--
You received this message because you are subscribed to the Google Groups "Rdio API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rdio-api+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rdio-api/7c655e97-d24e-4aba-a916-72d41a9efc30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

luisge...@fastmail.fm

unread,
Jun 23, 2015, 3:48:47 AM6/23/15
to rdio...@googlegroups.com
Hi,
Yes, I receive them from the resource endpoint.

Thanks for the answer and best wishes from Germany,
Luis
Reply all
Reply to author
Forward
0 new messages