oauth 2.0 - Auth Azure with php -
i'm trying make auth microsoft azure, i've registered app in places azure portal, y link register app in easyauth.azurewebsites.net, enven here apps.dev.microsoft.com, , copy de app id in code, i'm trying use graph api auth , use outlook services in connection local app using lampp, , app in php. when register app use url localhost/app/app.php
here's code i'm trying 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") }); }); });
i don't see exact question instead i'll give general answer. support either azure ad (work or school accounts) or microsoft accounts (outlook, xbox, hotmail) can register app inside app registration portal. then, you'll need configure application creating app secret/password , set redirect uri.
then can integrate app oauth2.0 library. i've written small php sample using phpleague oauth2.0 client can checkout this.
Comments
Post a Comment