基于 Sonos applink 的身份验证问题

Sonos applink based authentication issue

尝试添加 sonos 服务时,屏幕会显示几分之一秒的“授权”屏幕,然后消失并显示 "account not found",我什至没有时间输入帐户。以下是对应用程序链接的请求和反应。 需要任何其他东西才能使其保留在授权屏幕中

    //request
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.sonos.com/Services/1.1">
       <soapenv:Header>
          <ns:context>
          </ns:context>
          <ns:credentials>
          </ns:credentials>
       </soapenv:Header>
       <soapenv:Body>
          <ns:getAppLink>
             <ns:householdId>Sonos_ghsAflSonosakevCzmxcmFhN7pN</ns:householdId>
             <ns:hardware>iPhone8,2</ns:hardware>
             <ns:osVersion>Version 9.3.3 (Build 13G34)</ns:osVersion>
             <ns:sonosAppName>ICRU_iPhone8,2</ns:sonosAppName>
             <ns:callbackPath>sonos://x-callback-url/addAccount?state=sid%3D61703%26OAuthDeviceID%3DSonos_ghsAflSonosakevCzmxcmFhN7pN%26callbackPath%3D%2FaddAccount</ns:callbackPath>
          </ns:getAppLink>
       </soapenv:Body>
    </soapenv:Envelope>



    //response
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"  xmlns:tns="http://www.sonos.com/Services/1.1">
        <soap:Body>
            <getAppLinkResponse xmlns="http://www.sonos.com/Services/1.1">
                <getAppLinkResult>
                    <authorizeAccount>
                        <appUrlStringId>LAUNCH_APP</appUrlStringId>
                        <deviceLink>
                            <regUrl>https://ourserver.com/#/signin?callbackurl=sonos://x-callback-url/add…
                            <linkCode>Sonos_ghsAflSonosakevCzmxcmFhN7pN</linkCode>
                            <showLinkCode>false</showLinkCode>
                        </deviceLink>
                    </authorizeAccount>
                </getAppLinkResult>
            </getAppLinkResponse>
        </soap:Body>
    </soap:Envelope>

您所描述的体验是如果您没有正确返回“NOT_LINKED_RETRY”错误会发生什么。 如文档中所述,https://musicpartners.sonos.com/node/405 (search for polling). While your service waits for the user to manually log in through the browser, it should provide to the getDeviceAuthToken call the ‘NOT_LINKED_RETRY’ fault response for a few minutes. Details for this fault can be found here: https://musicpartners.sonos.com/node/292.