onedrive-explorer-js | OneDrive sample application for JavaScript
kandi X-RAY | onedrive-explorer-js Summary
kandi X-RAY | onedrive-explorer-js Summary
This sample illustrates the basic concepts for interacting with OneDrive via Microsoft Graph API to create a file explorer web app.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of onedrive-explorer-js
onedrive-explorer-js Key Features
onedrive-explorer-js Examples and Code Snippets
Community Discussions
Trending Discussions on onedrive-explorer-js
QUESTION
I have a single web application that is using different locales (around 35) to render localized content. I am using token flow authentication (more details https://dev.onedrive.com/auth/graph_oauth.htm) to generate a new access token.
This is implemented through a new window that is doing a GET request to login.live.com/oauth20_authorize.srf?client_id=....&scope=scope=onedrive.readwrite&response_type=token&redirect_uri=REDIRECT_URI (when there is an access_token expiration I am using a silent way via iframes to get a new access_token the same way as with window). Similar way of authentication was done on OneDrive Explorer sample web app (https://github.com/OneDrive/onedrive-explorer-js)
After successful authentication, there is a redirect to the REDIRECT_URI (this is built dynamically on my app based on the locale.
The problem I have is that I cannot manually add all the possible redirect uris on the Microsoft registration portal (there is a limit of 21).
Do you know if there is any way to do that by using wildcards on the setup of redirect_uris in the portal? Or maybe another way to implement that logic? I did some investigation online and found many developers having the same problem. Is there any recent patch/update available regarding that?
Thanks.
...ANSWER
Answered 2017-Mar-16 at 13:06I know I should post this as a comment, sadly I don't have enough reputation to post comments..
If the user chooses his locale before authentication you could save the locale settings temporarily to Session (or wherever you want). Now you can create your own redirect page where you read the settings from the session (or wherever you saved the settings) and redirect to the right URI yourself. This way you only have to register the URI of your own redirect page on the Microsoft registration portal.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install onedrive-explorer-js
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page