Hello,
I have a box standard account and want to upload artefacts/files from our Gitlab pipeline to the account.
Since the upload is done from a pipeline, I decided I created a box app with client credentials grant authentication.
When I execute the authentication command below, I get : {"error":"invalid_grant","error_description":"Grant credentials are invalid"}
curl -i -X POST "https://api.box.com/oauth2/token" \
-H "content-type: application/x-www-form-urlencoded" \
-d "client_id=craxv9gzavoiyj5knhu88kot0yv3sej6" \
-d "client_secret=XXXXXXXXXX" \
-d "grant_type=client_credentials" \
-d "box_subject_type=enterprise" \
-d "box_subject_id= 0"
The client_id and client_secret are correct.
I tried providing “user” as box_subject_type and my user id but it didn’t succeed either.
Additionally, I also tried to set the access level to “App + Enterprise Access”.
I read that I need to create a service account. However, I can’t find any settings to do this. I read in other forum threads that there should be an “Authorization” tab which I cannot see (I have a free developer account)
Thanks so much in advance!
Best regards,
Sebastian