Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SharePoint online用于移动应用程序_Sharepoint_Azure Active Directory_Sharepoint Online_Sharepoint Api - Fatal编程技术网

SharePoint online用于移动应用程序

SharePoint online用于移动应用程序,sharepoint,azure-active-directory,sharepoint-online,sharepoint-api,Sharepoint,Azure Active Directory,Sharepoint Online,Sharepoint Api,我有一个移动应用程序,其中我需要从SharePoint online读取列表。但我无法使用Azure AD登录Sharepoint api 我尝试过很多方法,比如传递客户端ID,所有的响应都像重定向到域,但我没有任何域,因为我的是移动应用程序 因此,请帮助我登录到Azure广告,无需重定向URL GET https://login.microsoftonline.com/{tenant}/adminconsent ?client_id=6731de76-14a6-49ae-97bc-6eba69

我有一个移动应用程序,其中我需要从SharePoint online读取列表。但我无法使用Azure AD登录Sharepoint api

我尝试过很多方法,比如传递客户端ID,所有的响应都像重定向到域,但我没有任何域,因为我的是移动应用程序

因此,请帮助我登录到Azure广告,无需重定向URL

GET https://login.microsoftonline.com/{tenant}/adminconsent
?client_id=6731de76-14a6-49ae-97bc-6eba6914391e
&state=12345
&redirect_uri=https://localhost/myapp/permissions
在成功登录后的上述方法中,我重定向到上述重定向url,但我没有任何域,因为我正在开发移动应用程序

我正在使用离子与角度应用程序


请帮忙,有没有办法获得访问令牌。

您不需要自己的域

重定向URI对于您的应用程序是唯一的,当身份验证完成时,它将返回到此URI

对于本机应用程序(移动应用程序),当身份验证成功时,代码或令牌将包含在重定向url中

您不必担心,因为如果您使用的是MSAL或ADAL,您可以从Azure AD app身份验证页面中建议的重定向URI中进行选择


是否有任何更新?我的回答有用吗?@AllenWu正在研究。谢谢你的回复。我们完成后将向您更新。