Long-standing Bug. Client Credentials access - Grant Credentials are Invalid

Terminée
New post

Commentaires

2 commentaires

  • Rona

    Hi Tom, 

    Welcome to Box Community! 

    To help address your issue, I created a new ticket and a member from Box Product Support will be in touch, please keep an eye out. 

    Thanks for posting!

    0
    Actions pour les commentaires Permalien
  • Tom Weisenbeck

    Resolved. Working code below:

    Config.json is the config downloaded from the developer panel for the app. 

    The change that needed to be enabled was that in the developer panel the app needed to be set to App+Enterprise Access, make sure boxes for permissions are checked (you need write permission to download, according to the text in the developer panel), and then the app needs to be re-submitted for authorization. I was testing some of these changes but did not realize it needed to be re-submitted and authorized again in order for them to take effect.
    App still needs enterprise access even if the service account for the user has permissions on the folder/file to download. I had a variety of different errors when testing different configurations including a common 403: "status":403,"code":"access_denied_insufficient_permissions"
    I'm including this info in case anyone finds this issue from Google.

    auth = BoxJWTAuth(
        config = JWTConfig.from_config_file('config.json')
    )
    client = BoxClient(auth)

    file: Optional[ByteStream] = client.downloads.download_file('my-file-id')

    file

    0
    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.