18 Mar 2019

Debug access rights issues from access token

You can run into various issues by trying to access a resource that does not belong to you or by using the wrong scopes when requesting an access token. See Setting the scope for the access token or Token does not have the privilege for this request

As mentioned in the Forge Authentication Basics, Forge is using JWT tokens. This means that the token itself contains some useful info that can help you check if your code is using the right client_id and providing the correct scopes for the request. 

A JWT token contains 3 base64 encoded sections, so you could decode each separately. However, the easiest is to copy paste the access token you received into the JWT website:

Using JWT website to decode access token

Related Article

Posted By

Adam Nagy

Follow @AdamTheNagy Adam Nagy joined Autodesk back in 2005 and has been providing programming support, consulting, training and evangelism to external developers. He started his career in Budapest, then worked in Prague for 3 years and now lives in South England, UK. At the moment focusing on Inventor and Fusion 360, plus cloud and mobile related technologies. Adam has a degree in Software Engineering and has...