I am in the process of learning the Autodesk Forge API. With a simple C# application, I am able to authenticate using the Forge API.
var responseString = await
"https://developer.api.autodesk.com/authentication/v1/authenticate"
.PostUrlEncodedAsync(new
{
client_id = Client_ID.Text,
client_secret = Client_Secret.Text,
grant_type = "client_credentials",
scope = "data:read data:write bucket:create bucket:read"
})
.ReceiveJson();
Though I have explicitly specified the bucket:read scope bucket:read, further call to check a bucket exists fails with error:-
Http code 403 (Forbidden) with the message "Only the bucket creator is allowed to access this API"
When I try to create another bucket with the same name it fails with the:-
Http Code 409 (Conflict) with the message "Bucket already exists"
Can someone please help me on what is missing here?