Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.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
用php验证Azure_Azure_Oauth 2.0_Azure Web App Service_Azure Active Directory_Azure Ad Graph Api - Fatal编程技术网

用php验证Azure

用php验证Azure,azure,oauth-2.0,azure-web-app-service,azure-active-directory,azure-ad-graph-api,Azure,Oauth 2.0,Azure Web App Service,Azure Active Directory,Azure Ad Graph Api,我正在尝试使用microsoft azure进行身份验证,我已在azure门户网站、easyauth.azurewebsites.net、enven here apps.dev.microsoft.com中注册了我的应用程序,然后我在代码中复制了de app Id,此外,我还尝试使用Graph API进行身份验证,并使用一些Outlook服务连接到一个使用LAMP的本地应用程序,该应用程序使用php。 注册应用程序时,我使用url localhost/app/app.php 下面是我正在使用ea

我正在尝试使用microsoft azure进行身份验证,我已在azure门户网站、easyauth.azurewebsites.net、enven here apps.dev.microsoft.com中注册了我的应用程序,然后我在代码中复制了de app Id,此外,我还尝试使用Graph API进行身份验证,并使用一些Outlook服务连接到一个使用LAMP的本地应用程序,该应用程序使用php。 注册应用程序时,我使用url localhost/app/app.php

下面是我正在使用easy auth尝试的代码

 <script src="jquery-3.2.1.js"  type="text/javascript"></script>
 <script type="text/javascript">
  $(document).ready(function(){
    $("#theButton").on('click',function(){

        AzureADAuth.getAccessToken()
            .then(function(token){
                alert(token);
            })
            .error(function(err){
                alert("something gone wrong") 
            });
    });
});

$(文档).ready(函数(){
$(“#按钮”)。在('click',function()上{
AzureADAuth.getAccessToken()
.then(功能(令牌){
警报(令牌);
})
.error(函数(err){
警惕(“出了差错”)
});
});
});

我看不出确切的问题,所以我只给你一个大概的答案。要支持Azure AD(工作或学校帐户)或Microsoft帐户(outlook、xbox、hotmail),您可以在中注册应用程序。然后,您需要通过创建应用程序机密/密码并设置重定向URI来配置此应用程序


然后,您可以将该应用程序与一些OAuth2.0库集成。我想你可以结账

我看不出确切的问题,所以我只给你一个大概的答案。要支持Azure AD(工作或学校帐户)或Microsoft帐户(outlook、xbox、hotmail),您可以在中注册应用程序。然后,您需要通过创建应用程序机密/密码并设置重定向URI来配置此应用程序


然后,您可以将该应用程序与一些OAuth2.0库集成。我想你可以结账

你到底遇到了什么问题?是否要从PHP web应用程序连接到Azure Active Directory?如果是,请参阅此页,您遇到的确切问题是什么?是否要从PHP web应用程序连接到Azure Active Directory?如果是,请参考本文件