This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 603
Authorizing questions #36
Comments
Hello zx-stark, Unfortunately the C++ SDK does not yet include example code for authorizing with a companion app. Instead, the AuthDelegate component of the C++ SDK includes example code for step 7 of authorizing with companion web site To implement authorizing with a companion app, you currently need your own client device side code to implement the following:
You can look at the Java sample app for examples of implementing steps 1/2 and 5/6/7. Please let us know if you have further questions, |
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi friends,
There are 7 steps in the Procedure for Obtaining Refresh and Access Tokens. Dose AVS SDK 0.4 realize from step 6, and we should realize the first 5 steps?(https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/docs/authorizing-your-alexa-enabled-product-from-an-android-or-ios-mobile-app)
TEST_F(AlexaAuthorizationDelegateTest, refreshAuthToken) fail, could you tell me why?
...
[ RUN ] AlexaAuthorizationDelegateTest.refreshAuthToken
ConfigurationNode:initializeSuccess:configuration=redacted
HttpPost:doPostSucceeded:code=400
AuthDelegate:handleLwaResponseFailed:error=unauthorized_client,isUnrecoverable=false
AuthDelegate:calculatedTimeToRetry:delayMs=0
HttpPost:doPostSucceeded:code=400
AuthDelegate:handleLwaResponseFailed:error=unauthorized_client,isUnrecoverable=false
AuthDelegate:calculatedTimeToRetry:delayMs=798
HttpPost:doPostSucceeded:code=400
AuthDelegate:handleLwaResponseFailed:error=unauthorized_client,isUnrecoverable=false
AuthDelegate:calculatedTimeToRetry:delayMs=2803
HttpPost:doPostSucceeded:code=400
AuthDelegate:handleLwaResponseFailed:error=unauthorized_client,isUnrecoverable=false
AuthDelegate:calculatedTimeToRetry:delayMs=3106
HttpPost:doPostSucceeded:code=400
AuthDelegate:handleLwaResponseFailed:error=unauthorized_client,isUnrecoverable=false
AuthDelegate:calculatedTimeToRetry:delayMs=10162
HttpPost:doPostSucceeded:code=400
AuthDelegate:handleLwaResponseFailed:error=unauthorized_client,isUnrecoverable=false
AuthDelegate:calculatedTimeToRetry:delayMs=16145
HttpPost:doPostSucceeded:code=400
AuthDelegate:handleLwaResponseFailed:error=unauthorized_client,isUnrecoverable=false
AuthDelegate:calculatedTimeToRetry:delayMs=39762
/work/code/r16midea/alexa-client-sdk-master/Integration/test/AlexaAuthorizationDelegateTest.cpp:83: Failure
Value of: tokenRefreshed
Actual: false
Expected: true
Refreshing the auth token timed out.
[ FAILED ] AlexaAuthorizationDelegateTest.refreshAuthToken (60040 ms)
...
The text was updated successfully, but these errors were encountered: