Ui Elements 'Content Open With' - How to get service account token so I can add integration app.

New post

Comments

4 comments

  • Jason62

    Hi  ,

     

    Glad to see you're trying out the Open With element! Hmm, the issue you're seeing is interesting... let me see if I understand first.

     

    Right now, it sounds like you haven't gotten to the step of doing anything with the Element, right? It sounds like you're stuck on the first step, at just generating a token for any user. If I'm misreading, let me know!

     

    For the token issue, just to make sure, these are the three user types I'll refer to:

    * The "admin" user - this is the user you log into Box.com with, and it's tied to a real email address. You use this to navigate around the Admin Console or Dev Console.

    * The "service account" - this is the user that's created when you authorize the application in your admin console.

    * "App User" - this is a user created using a token from the service account. Typically represents a single user.

     

    To continue with the guide for the UI Element, you need a token for the Service Account. This is the token returned by default if you just run box tokens:get with no ID specified:

    https://github.com/box/boxcli/blob/master/docs/tokens.md

     

    It sounds like you've already been working with the Service Account through your work in SFDC, correct? Have you been able to get tokens for the Service Account? If so, where it sounds like you're having trouble now is getting a token for your app user.

     

    For the app user, first double check your syntax with the linked guide above, and then double check that the scope to Generate User Access Tokens is enabled both in the dev console for the app and within the "authorization" of the app in the admin console.

     

    Let me know if that helps explain or if I can explain anything more!

     

    Thanks,

    Jason

     

    0
    Comment actions Permalink
  • sfcrmguy

    So I am able to get a list of file and folders to display, but when you click on them, and a preview of the file shows up, I see a grayed out 'open with' button.    

     

    sfcrmguy_0-1583870540583.png

     

    Also, The app is authorized in dev console and admin console to generate tokens and enable integrations.   The syntax was copied direct from the dev guide page.

     

     

    -chris

    0
    Comment actions Permalink
  • sfcrmguy

    Jason62, did you see my reply?

    0
    Comment actions Permalink
  • spiral99

    Did you ever get this working? Running into the same issue I believe.

    0
    Comment actions Permalink

Please sign in to leave a comment.