Вопрос разработки Skype Web SDK - PullRequest
0 голосов
/ 27 февраля 2019

Я сделал все, что описано в Разработка приложений Web SDK для Skype для бизнеса Online

Сначала зарегистрируйте новое приложение с именем skype-business-test со следующими настройками:

Application type = Web app / API;

Reply URLs = http://localhost:9191/*;

Required permissions = Skype for Business Online

Во-вторых, есть тестовая страница на http://localhost:9191/skype.html со следующим содержанием:

<!DOCTYPE html>
<html>
  <head>
    <script src="https://swx.cdn.skype.com/shared/v/1.2.35/SkypeBootstrap.min.js"></script>
    <script>
      var hasToken = /^#access_token=/.test(location.hash)
      var hasError = /^#error=/.test(location.hash)

      var client_id = 'client id got from first step'

      if (!hasToken && !hasError) {
        // chinese partner of microsoftonline
        location.assign(
          'https://login.partner.microsoftonline.cn/common/oauth2/authorize?response_type=token' +
            '&client_id=' +
            client_id +
            '&redirect_uri=' +
            location.href +
            '&resource=https://webdir.online.lync.com'
        )
      }

      if (hasToken) {
        alert('signed in')
      }

      if (hasError) {
        // no luck, always goes here
        console.log(decodeURIComponent(location.hash))
      }
    </script>
  </head>
  <body></body>

А потом я получил сообщение об ошибке, когда подписано с моей учетной записью, как показано ниже:

#error=invalid_resource&error_description=AADSTS500011: The resource principal named https://webdir.online.lync.com was not found in the tenant named <my tenant name>. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.
Trace ID: 77a6d00a-259c-44d8-b7d7-aab659542100
Correlation+ID: 809ba2fc-4f43-4d4f-81b2-2509e31bc1d8
Timestamp: 2019-02-27+16:36:19Z

Я просто понятия не имею, что случилось, я что-то пропустил?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...