none
[UWP][OneDrive] How to register app with OneDrive SDK RRS feed

  • Question

  • Hi,

    I had a UWP app working with OneDrive, allowing users to read and write to a file.

    Then I accidentally deleted my app from the Application Registration Portal and now any OneDrive related code throws an authentication error.

    How can I re-register my app with the Registration Portal to get it working with OneDrive again?

    Thanks for any help anyone can offer!

    When I try to re-register the app by clicking the 'add an app' button I cant get the Windows Store property as shown below.

    Here's the code I'm using to authenticate:

                var msaAuthenticationProvider = new OnlineIdAuthenticationProvider(new string[] { "onedrive.readwrite" });
                await msaAuthenticationProvider.AuthenticateUserAsync();
                client = new OneDriveClient("https://api.onedrive.com/v1.0", msaAuthenticationProvider);

    and the error I'm getting:

    The application requesting authentication tokens is either disabled or incorrectly configured. (Exception from HRESULT: 0x80860003)


    Wednesday, June 14, 2017 7:43 PM

All replies

  • For help with OneDrive development please see the OneDrive Dev Center at <g class="gr_ gr_9 gr-alert gr_gramm gr_hide gr_inline_cards gr_run_anim Style multiReplace replaceWithoutSep replaceWithoutSep" data-gr-id="9" id="9">https://dev.onedrive.com/ .</g> Per that page, the team is watching for questions on StackOverflow.

    From a quick look at the <g class="gr_ gr_10 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-ins replaceWithoutSep" data-gr-id="10" id="10">docs</g> you'll need to register your app with Microsoft Graph as described at <g class="gr_ gr_11 gr-alert gr_gramm gr_hide gr_inline_cards gr_run_anim Style multiReplace replaceWithoutSep replaceWithoutSep" data-gr-id="11" id="11">https://dev.onedrive.com/app-registration.htm .</g> If you've deleted that you probably need to reregister it and then reconnect your OneDrive code, but that's not on topic for this forum and I'm not familiar enough with the process to say for sure.

    For help with the dev <g class="gr_ gr_169 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-ins replaceWithoutSep" data-gr-id="169" id="169">portal</g> you can contact Dev Portal Developer Support at http://aka.ms/storesupport 

    Thursday, June 15, 2017 5:26 AM
  • Thanks for you help Rob, I'll try asking there.
    Thursday, June 15, 2017 7:06 AM