Skip to main content
Question

Why box JWT token doen't follow the standard JWT structure?

  • May 22, 2025
  • 2 replies
  • 6 views

Forum|alt.badge.img

I 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 

 

2 replies

Forum|alt.badge.img

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!


Forum|alt.badge.img

Thank you Matt! this is helpful ..