Hello,
I'm very new to the development with node.js and the Box API - so please don't hit me if I ask very stupid or basic questions.
I read the tutorials about setting up the application, getting the enterprise access token and creating an app user. In the tutorial about authentication using JWT I found this:
"Fortunately, there are many libraries available for easily constructing the JWT assertion. These can be found here. Our SDKs also provide methods that will handle authentication with JWT."
So I used the box-node-sdk for my first tests. In the documentation of the sdk I found "getAppAuthClient". I used it like shown in the example, but now I do not now how to proceed. I have many questions and I don't seem to find them in the documentation. For example:
- Does the AppAuthClient handle the constructing and use of the JWT assertion?
- Where do I find the access_token after creating the AppAuthClient?
- How do I proceed to create an App User? I don't see a method for that in then SDK and to youse the restful API I need the access token.
Is there maybe some example code of a node application using the authentication with JWT? That would be a great help. Right now I'm on the verge of retreating from using the sdk and do it manually like the tutorial demonstrated. But I would really like to use it.
I'm thankful for any help you can give me.
Thank you.
