Skip to main content
Question

Does Box support the oauth 2 device flow?

  • May 22, 2025
  • 2 replies
  • 13 views

Forum|alt.badge.img

Hi, I am developing an application that will run on an hpc cluster, and I cannot guarantee the computer/port number for a callback URL for the oauth dance.  Is it a bad idea to use the oauth device flow? Can my application perform the oauth 2 device authentication flow with box? 

 

2 replies

Forum|alt.badge.img

Hey Daniel! 

Thanks for the question! I'm interested to hear more. What exactly is your application going to be doing? With Box's Oauth flow, a user would need to interact with a UI. It will also redirect to a url after a user approves/logs in. You can manually set the url like it is described here in the redirect user section. 

Thanks, 

Alex, Box Developer Advocate


Forum|alt.badge.img

Hi Alex,

   My use case is that I am reading data from box on a cluster compute node that doesn't have direct access to the internet, but I could create an ssh tunnel to the cluster head node.  The issue is that one the app is started, the user typically doesn't interact with the application.  So I think we need to get the tokens in advance.

Daniel