Is it possible to access a shared external folder using JWT authentication?

回答済み
新規投稿

コメント

4件のコメント

  • 正式なコメント
    Kourtney

    Hello Arthur, 

    External content cannot be accessed via the as-user header. Therefore, you will need to directly obtain an access token for the user. 

    Best,

    Kourtney

    コメントアクション パーマリンク
  • Arthur Duarte

    Hi Kourtney, thanks for your answer.
    Do you know, how could I get this token for the user and how can I use it with a JWT authentication client?

    0
    コメントアクション パーマリンク
  • Kourtney

    Arthur, 

    This is done in your JWT assertion. You'll want to set the box_sub_type=user and sub=userID you want the token for. 

    Best, 

    Kourtney

    1
    コメントアクション パーマリンク
  • Arthur Duarte

    Hi Kourtney,
    This link that I your shared was very useful and I could move on with the JWT assertion.

    Specially the Code Samples section, where there is this github repo with complete code examples on how to use the JWT assertion, in my case using Python3:
    https://github.com/box-community/samples-docs-authenticate-with-jwt-api/blob/master/sample.3.py

    I just used this code and the modifications that you suggested for the token and it works, I can access and modify the external folder.

    Thanks a lot.




    0
    コメントアクション パーマリンク

サインインしてコメントを残してください。