question

luis sergio lugo victorino avatar image
luis sergio lugo victorino asked

Alexa authorize Issue

Hello I've been trying to use the alexa Voice Service API but when I tried to login with amazon and launch the authorize screen I'm getting the following error: Error=invalid_scope error_description=lwa-invalid-parameter-bad-scope As the documentation says I'm using the following code to lauch the screen: Bundle options = new Bundle(); String scope_data = "{\"alexa:all\":{\"productID\":\"" + "nucleusAVS" + "\", \"productInstanceAttributes\":{\"deviceSerialNumber\":\"" + "12345678910" + "\"}}}"; options.putString(AuthzConstants.BUNDLE_KEY.SCOPE_DATA.val, scope_data); options.putBoolean(AuthzConstants.BUNDLE_KEY.GET_AUTH_CODE.val, true); options.putString(AuthzConstants.BUNDLE_KEY.CODE_CHALLENGE.val, "057a7b8872c1cdf94ecae7f90513de80451e9134619d3d273b6bbb9b48a7f841"); options.putString(AuthzConstants.BUNDLE_KEY.CODE_CHALLENGE_METHOD.val, "S256"); mAuthManager.authorize(APP_SCOPES, options, new AuthorizeListener()); Is anyone having the same issue? Regards
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kexik avatar image
kexik answered
Last post on this page can resolve your issue (you have to use APIKey for the platform where you are requesting auth code): http://forums.developer.amazon.com/forums/thread.jspa?messageID=22998&tstart=0
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

vaibhav avatar image
vaibhav answered
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.