Skip to main content

I’ve seen the example of how to use an app token for a limited access app in the original .NET SDK but have yet to figure it out for the .NET GEN SDK. Basically, I’ve got a Client ID and an App Token that need to create a BoxClient but none of the methods I’ve tried work. Both CcgConfig and JwtConfig objects want clientSecrets or other information. What am I missing?

Hi @nframe!

 

Unlike Box custom apps (either JWT or CCG), limited access apps do not support programatic token generation. Instead, the tokens are generated within the dev console (please see screenshot), and then consumed wherever they need to be.

 

 

Note that the scopes of the tokens for these limited access apps are, rather unsurprisingly, very limited. But, as a trade-off, they are (or can be) long-lived, and as such, may not need to be refreshed (unlike the tokens generated by custom apps). Consequently, there is only a narrow range of use cases for which a limited access app - and token - may be appropriate.

 

More information here:

  1. https://developer.box.com/guides/authentication/
  2. https://developer.box.com/guides/authentication/app-token/

Hi @nframe 👋 Welcome to our community! 🎉 We appreciate posting this topic on how to use an app token for a limited access app.

Thank you so much @noj Box for providing this essential resource. You’re awesome! 👏


Reply