Skip to main content
Question

Regards Android App authenticate using JWT

  • May 22, 2025
  • 2 replies
  • 18 views

Forum|alt.badge.img

Dear Support team,

Does it possibility to authenticate with JWT access token in android application. 

We does't want OAuth access. 

 

 

 

 

2 replies

Forum|alt.badge.img
At this time, our Android SDK does not support JWT in the same way as our iOS SDK. The best approach I can suggest: 
  • A remote token generator service through something like our Java SDK that handles it
  • AuthenticationRefreshProvider for its part to call that service when a new token is needed. More notes in the code here for implementation.

Best,

Kourtney, Box Developer Advocate


Forum|alt.badge.img

Hi Kourtney,

I am getting the error when we do pass refreshProvider in

BoxSession session = new BoxSession(context, info, refreshProvider);

I am getting error on `refreshProvider`.
Can you please provide some code/docs which is working?

I want to do authenticate without UI or using access/refresh token. so How I can do this?