OAuth and password authentication

• Aug 3, 2016 - 20:53

In my (non-interactive) application I want to use simple password authentication. This is supported by OAuth with "Authorization: Bearer". See e.g. https://aaronparecki.com/2012/07/29/2/oauth2-simplified#other-app-types

I try to get the access key I get "401 Unauthorized".

The POST (ayed out for convenience):

POST https://api.musescore.com/oauth/access_token
grant_type=password&
username=USERNAME&
password=PASSWORD&
client_id=CONSUMER_KEY

When I try to get the access key I get "401 Unauthorized".

I know from experience that the first step is usually the hardest :)

Thanks for your help,


Comments

MuseScore.com API doesn't support simple password authentication. If you need to get access to your private scores or to ask other people to grant your application access to their private scores, you need to use OAuth1 and your app will have to be interactive a least to acquire an access token. If you don't need to access private scores, you don't need oauth or any kind of authentication, a consumer key will be enough. You can read the documentation here: http://developers.musescore.com/#/authentication
If you need more help, and consumer key, please reach out to api@musescore.com

Do you still have an unanswered question? Please log in first to post your question.