OAuth and password authentication
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
In reply to MuseScore.com API doesn't by [DELETED] 5
Thanks for your reply.
This is pretty much confusing, since http://developers.musescore.com/#/authentication links to the OAuth2 pages on oauth.net and the Getting Started link explicitly describes the simple password authentication. Using OAuth1 is widely frowned upon and OAuth2 is already several years old.
Are there any plans to upgrade the API to OAuth2?
In reply to Thanks for your reply. This by sciurius
Yes, but we don't have an ETA.
In reply to Yes, but we don't have an by [DELETED] 5
Fair enough.
I'm not really familiar with OAuth1, so for the time being, does anyone have examples of command line programs that can do OAuth1 authentication by asking the user for her username/password?
In reply to Fair enough. I'm not really by sciurius
You can check the python wrapper https://github.com/musescore-com/python-api-wrapper in particular connect.py
In reply to You can check the python by [DELETED] 5
I'm trying to use the code in connect.py with the consumer key and secret I received but it still gets me to 401 Unauthorized page. What could be the problem?
In reply to I'm trying to use the code… by avivo
same