如何使用OneDrive Picker处理多个租户 [英] how to handle multiple tenants with onedrive picker

查看:89
本文介绍了如何使用OneDrive Picker处理多个租户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 https://js.live的onedrive选取器时遇到问题. net/v5.0/OneDrive.js

我有不同的重定向网址,例如

I have different redirect url's like

http://dev.example.com

http://dev1.example.com

通过提供这两个网址,我正面临这样的问题

by giving these two urls i am facing problem like this

当我提供重定向URL时,它不起作用.

when i give redirect url it is not working.

,我尝试使用 https://js.live.net/v7.0 /OneDrive.js 当我在弹出窗口中使用此选项时,仅重定向URL正在加载,重定向并关闭弹出窗口,但我没有获得成功的回叫

and i tried using https://js.live.net/v7.0/OneDrive.js while i am using this one in pop only the redirect url is loading and redirecting and closing the pop up i am not getting the call back success

<script type="text/javascript" src="https://js.live.net/v5.0/OneDrive.js" id="onedrive-js" client-id="APP_ID"></script>


<script type="text/javascript">
      function launchOneDriveSaver(){
var saverOptions = {
      success: function(files){
            console.log(files);
      },
     progress: function(p) {
    // upload is progressing
    },
    cancel: function(){
    // upload was cancelled
   },
   error: function(e) {
  // an error occured
  }

        OneDrive.save(saverOptions);
      }
</script>

推荐答案

您是否尝试添加根域?尝试以下顺序:

Have you tried adding root domain? Try this order :

http://example.com
http://dev.example.com
http://dev1.example.com

这篇关于如何使用OneDrive Picker处理多个租户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆