P
P
Pesetsu2019-04-09 09:43:40
OAuth
Pesetsu, 2019-04-09 09:43:40

OAuth2 authorization, getting a token, what to do?

Hello.
According to the OAuth2 spec, I'm trying to authenticate to get an access token. However, instead of the expected result, I get a 401 response code and a message that the credentials were entered incorrectly.
POST: https://www.deviantart.com/oauth2/token
client_id=1700&client_secret=9f66b7b5b0b2eaf9fa776c8ad3ec9428&grant_type=password&username={user}&password={pass}&scope=basic challenge
User-Agent: AndroidSDK-based-1700
Content-type: application/ x-www-form-urlencoded; charset=UTF-8
Test account:
.... Login: xzxzxzfd
.... Password: testaccess123 Am
I missing something?I ask you to suggest a solution or at least in which direction to dig.
Thank you in advance for your response.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey P, 2019-04-18
@lynxp9

Change grant_type to client_credentials and remove scope:
https://monosnap.com/file/oxzSqgId2032cmpmxkzpkStS...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question