Grant credentials are invalid
完了Hi,
I am getting this error --> {"error":"invalid_grant","error_description":"Grant credentials are invalid"} when I am trying to generate access token using the credentials.
Client id is ni8daktl7chhwxlt0zovndcefq4e7brc
App Access Level is set to App Access Only.
Can anyone please look into this?
Thanks,
Kaustav
-
正式なコメント
Hello,
Please go ahead and re-try now!
Best,
Kourtney, Box Developer Advocate
コメントアクション -
Hi Kourtney,
Thanks for replying. I am still getting the same error for client id ni8daktl7chhwxlt0zovndcefq4e7brc.
However, I have another app with client id 7ficj01obo62wtckb6lk3t1qtk2u3on6 which works absolutely fine. For both the apps, all the settings and configurations are same however the first one is not working. What can be the issue?
-
Hi,
This is the request I am making:
type: "POST",
url: "https://api.box.com/oauth2/token",
data: {
contentType:'application/x-www-form-urlencoded',
client_id: 'ni8daktl7chhwxlt0zovndcefq4e7brc',
client_secret: 'xxxxxxxxxxxxxxxxxxxx',
grant_type: 'client_credentials',
box_subject_type: 'user',
box_subject_id: 'xxxxxxxxxxx'
} -
Great question! You can read more about app users and managed users in our user types guide.
The TLDR is that app users are only accessible via the API, meaning they do not have login credentials.
If you would like to access the content of managed users as well, you will need to change the application access to app + enterprise and then ensure the application is reauthorized in the Admin Console.
-
Hi Kourtney,
Thanks for sharing the information.
After going through the user guide as well as your explanation, I can conclude that the user id is a managed user id, i.e, the user id has login credentials.
However, I cannot change the access to app + enterprise as it is not allowed in our organization. But my concern is that the APIs are behaving differently though the scope of the application and the type of user is same (as shared earlier with screenshots).
サインインしてコメントを残してください。
コメント
12件のコメント