Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,

I call the OneDrive API on a button click it works but now the requirement is to fill the OneDrive API with the default values say Username: "xyz" and Password:"123" once the API load.

Is there any possibility to achieve this or Any suggestion?

Thanks
Posted
Updated 23-Dec-14 21:42pm
v2

1 solution

Hi Sanket ,

i am afraid that you can not auto fill the username and password to the one drive API as Microsoft wanted the user to sign in and allow access to the particular app to upload the file via third party application. moreover the rest API is a part of a web browser and you can't really have good control over it to manipulate the control which open inside webbrowser. user must enter the username and password when using a one drive rest API to upload the file to the one drive.
 
Share this answer
 
Comments
Sanket Saxena 24-Dec-14 6:04am    
Thanks Ravi, I understand the security concern and i don't want to bypass the Login Process instead i want to enter a fix Username and Password when the API loads. any suggestion will be appreciated.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900