Skip to content

Cannot access the client's own user information or tracks #147

Open
@icreatestuff

Description

@icreatestuff

Title: Cannot access the client's own user information or tracks

Issue found of: October 5th, 2021

Endpoint(s):

  • GET /me
  • GET /me/tracks

Steps to reproduce:

Using the client_credentials grant type we receive an access token from the oauth/token endpoint which we use immediately to try and retrieve the users data and tracks from the /me and /me/tracks endpoints.

In both cases a 401 unauthorized response gets returned.

Based on this paragraph from the docs we are led to believe that as long as we're only trying to access the user details of the owner of the app (client Id & secret) this should be possible:

Authenticating without the SoundCloud Connect Screen
If you simply need an access token for testing, and do not want to go through the connect flow, or if your app needs to access only public resources, you can use the OAuth Client Credentials Flow. An example of this kind of app would be an artist's website where you'll only be accessing their tracks, playlists, or user information. In these cases you may exchange a set of your client credentials for an access token.

Expected behaviour:

The users details and tracks should be returned.

Actual behaviour:

401 unauthorized response every time without any error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions