question

EmrahENTRK-9613 avatar image
EmrahENTRK-9613 asked ·

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

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?

azure-active-directory
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DSPatrick avatar image
DSPatrick answered ·

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)


Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.