Hi,
I am trying to connect to skype for busines online with azure ad.
var href = 'https://login.microsoftonline.com/common/oauth2/authorize?response_type=token&client_id=';
href += client_id + '&resource=https://webdir.online.lync.com&redirect_uri=' + "http://localhost";
window.location.href = href;
And i am entering my acoount. I am getting access_token.
Then i am doing Skype.initialize with "apiKey: config.apiKeyCC".
Everything is ok here.
Then step is signin.
var params =
{
"client_id": config.clientid,
"origins": ["https://webdir.online.lync.com/autodiscover/autodiscoverservice.svc/root"],
"cors": true,
"version": config.appName+'/1.0.0',
"redirect_uri": "/empty.html"
};
client.signInManager.signIn(params).then(function(){
document.getElementById('SigninStatus').innerHTML = 'Signed in as ' + client.personsAndGroupsManager.mePerson.displayName();
},function(error){
console.log(error);
});
I am getting 401 unauthorized.
https://webdir1e.online.lync.com/Autodiscover/AutodiscoverService.svc/root/oauth/user 401 (Unauthorized)
Can you help me about that?