基于控制台的应用程序,使用box.com outh,无需用户登录并允许该应用程序 [英] console based application using box.com outh with out asking user to login and allow the app
问题描述
这是我的情况。我正在使用c#开发基于控制台的应用程序。在这里我们不能有用户登录。我唯一能做的就是使用api,我需要获取auth_code然后访问令牌并刷新令牌。如果有人能够回答我如何在我的控制台应用程序中实现这一点,我感到非常高兴。我的意思是如何在不要求用户登录并允许应用程序的情况下获取auth_code。
Here is my situation. I am developing a console based application using c#. Here we can not have user login. Only i can do is using api i need to get auth_code then access token and refresh token. I am very happy if somebody can answer, how to implement this in my console app. i mean how to get the auth_code with out asking user to login and allow the application.
在这里,如果我运行cURL命令,我将得到html响应,即是完整的html用于框登录页面。
Here if i run a cURL command i am getting html response, which is the complete html for box login page.
致谢,
Pradeep
Regards, Pradeep
推荐答案
当前的OAuth 2流要求用户浏览器浏览器,无法以编程方式完成。
The current OAuth 2 flow requires the user to go through the browser and can't be done programmatically.
这篇关于基于控制台的应用程序,使用box.com outh,无需用户登录并允许该应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!