Why box JWT token doen't follow the standard JWT structure?
AnsweredI am using the Box .Net SDK to get UserToken, and token works fine when I am using it with Box APIs. But while looking more in JWT details https://jwt.io/introduction/ I see that the JWT should has three sections seperated with (.) Header.Payload.Signature.
By calling
boxJWT = new BoxJWTAuth(boxConfig);
token = boxJWT.UserToken(_boxUserId);
I am getting a token with only one section. how can I get the standard JWT token ? any ideas
-
Hi — I'm Matt, one of the developers on our .NET SDK. The UserToken() method returns a Box access token, not the JWT. That method is internally generating the JWT and sending it to the Box API for you, and returns the access token from the API. You can use that access token directly to make API calls!
Please sign in to leave a comment.
Comments
2 comments