Search code examples
javascriptskypeskype-for-businessskypedeveloper

net::ERR_INSECURE_RESPONSE on using Skype web sdk to login


I'm using skype web sdk to create an application.

Here is the code to sign in:

jQuery(document).on("click", ".sfb_widget", function() {
        client.signInManager.signIn({
            username: "[email protected]",
            password: "mypassword"
        }).then(function() {
            log('Logged In Succesfully');
            //$('#searchagain').show();
        }).then(null, function(error) {
            // if either of the operations above fails, tell the user about the problem
            //console.error(error);
            log('Oops, Something went wrong: ' + error);
        });
    })

On click of the button i'm getting the following error:

GET https://lyncdiscover.mydomain.onmicrosoft.com/xframe net::ERR_INSECURE_RESPONSE

https://lyncdiscoverinternal.mydomain.onmicrosoft.com/xframe net::ERR_NAME_NOT_RESOLVED

What am I doing wrong here ?


Solution

  • If you use Skype for Bussiness online, you should use Authentication using Azure AD. Please read this article: https://msdn.microsoft.com/en-us/skype/ucwa/developingucwaapplicationsforsfbonline

    In your example, you are trying to use password authentication, that works for on-premise Skype for Bussiness only.