How do I login to OneDrive (after the initial time) without seeing the permissions screen
<p>I have just started working with the OneDrive API and the sample program that comes with it (OneDriveApiBrowser).</p>

<p>As expected, the first time I logged in (using "Sign In to MSA...", I was asked for credentials, my 2-factor code, and finally a permissions screen asking if I approve of the access that the app wants against my OneDrive account.</p>

<p>But, after I exit the program and restart it, I am not logged in. I repeat going to "Sign In to MSA..." and I am no longer prompted for credentials (as I expected), but I <strong><em>am</em></strong> prompted with the permissions screen again.</p>

<p>Is there a way of having the app log back in without always prompting the user for permission?</p>

<p>For learning how to use the OneDrive API, I am just using the sample code that Microsoft supplied as part of the API located at <a href="https://github.com/OneDrive/onedrive-sdk-csharp/tree/master/samples/OneDriveApiBrowser" rel="nofollow">https://github.com/OneDrive/onedrive-sdk-csharp/tree/master/samples/OneDriveApiBrowser</a>. The code can't be downloaded directly from there, but at the root of this project, <a href="https://github.com/OneDrive/onedrive-sdk-csharp" rel="nofollow">https://github.com/OneDrive/onedrive-sdk-csharp</a>. This will download the source for the API as well as the sample code and unit tests.</p>