Feedback by UserVoice

How can we improve the OneDrive Developer Platform?

Support wildcards in redirect_uri and are for 2 of my customers: x and y.
And I get new customers a, b, c, etc without my intervention.
As of now, I have to add by hand in redirect_uri app settings for every new customer and it is painful.

107 votes
Sign in
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
vijo shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →


Sign in
Sign in with: facebook google
Signed in as (Sign out)
  • Anonymous commented  ·   ·  Flag as inappropriate

    Edit... sorry it is a little off topic from the question. But I kept coming back to this thread. I wasted an entire day trying to figure this out. Hope it helps some else:

    Say your page url is http://localhost:80000/Do/Something/45678 or http://localhost:80000/Do/Something/?id=45678

    You can't redirect because you need a "static" url like http:/localhost:80000/Do/Something

    Set your redirectUri to that static URL; like so:
    var odOptions = {
    action: "query",
    advanced: {
    redirectUri: "http://localhost:80000/Do/Something"

    And make sure you add the same exact static Url (http://localhost:80000/Do/Something) to your Redirect URLs in your microsoft "my applictions"

    This will ignore the dynamic part of the url and allow you flow as expected.

  • John Spy commented  ·   ·  Flag as inappropriate

    Is there any update regarding supporting wildcards for redirect_uri on Microsoft registration portal?
    Having same issue (I want to support redirects based on different locales)

  • Harshveer Singh commented  ·   ·  Flag as inappropriate

    +3 This is very bad design, I am working on an enterprise application where we give different subdomain to each client and we are putting file picker on site on different pages. With current design I don't see any way to achieve this. Same integration with google drive picker and dropbox picker was seamless. One drive should also support this kind of integration.

  • Rene commented  ·   ·  Flag as inappropriate

    +1 wildcards or just domain/subdomain

    At the moment it's not possible to use this in any dynamic site. Please allow to configure (like Google Picker and Dropbox Chooser) just a domain and subdomain.

  • Florian Kutschera commented  ·   ·  Flag as inappropriate

    +1 for wildcards.
    Because of the direct match URL limitation the web picker can not be implemented by us.

  • Nick D., Software Design Engineer commented  ·   ·  Flag as inappropriate

    When it comes to SPA's, there is a broad multitude of combinations of URL's that are required to work with redirection,
    E.g., if a locale is included in the URL, then, say for 30 languages, there are atleast 30 URL combinations that are needed, OneDrive will provide up to (only) 21.
    There should be a generous increase to the number of URL's!

Feedback and Knowledge Base