Skype for business online sdk login problem (401 - unauthorized)

Emrah ŞENTÜRK 1 Reputation point
2020-04-08T14:41:37.177+00:00

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?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,116 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2020-04-08T14:45:55.167+00:00

    QnA currently supports the products listed in right-hand pane (more to be added) Better to reach out to subject matter experts in dedicated forums over here.

    https://social.msdn.microsoft.com/Forums/en-US/home?forum=SkypeWebSDK

    (please don't forget to mark helpful replies as answer)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.