Reputation: 33
I'm trying to build a NodeJS subsystem that is automatically syncing content with Box. I have existing "passport-box" authentication that is requiring user logging in from browser, but this is not an option for me. I need pure server-side authentication.
So, I've came across JWT as a possible way to do this, but I don't have a clue how to start, as I'm new to tokens approach. Possibly, Auth0 can be in hand - but, again, I don't know how exactly to use it.
Can someone point out which libraries should I use and where to connect to in order to construct a proper "Authentication: Bearer ..." header.
Currently I'm using passport-box and box-sdk nodejs modules, but seems like I'll need to change something in my approach, to get tokens without user interaction.
Thanks!
Upvotes: 0
Views: 933
Reputation: 14212
This rule would create a Box access_token for you, provided you re-establish a relationship between your Box account and your Auth0 one:
https://github.com/auth0/rules/blob/master/rules/creates-box-access-token.md
In essence:
Upvotes: 0