question

newuser-ad6db603-5631-4028-82ce-4abccf3d8911 avatar image
newuser-ad6db603-5631-4028-82ce-4abccf3d8911 asked ·

Can Alexa SmartHome Skill handle Refresh Token expirancy ? (Azure AD B2C)

Hello all,

Alexa Skill documentation explicitly specify that Refresh Tokens should be valid indefinitely ( https://developer.amazon.com/docs/login-with-amazon/refresh-token.html ).

I am using Azure AD B2C to authenticate Alexa users. But AD B2C limit the maximum validity of a Refresh Token to 90 days ( https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-token-session-sso ).

Does it exists any workaround to bypass this limitation ? How Alexa handle the error response it gets when it try to get a new Access token with the expired Refresh token ?

Thanks a lot for the help,

Alexandre

azure
10 |2000 characters needed characters left characters exceeded

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

1 Answer

Brian@Amazon avatar image
Brian@Amazon answered ·

Hello. Smarthome skills can handle refresh. The documentation you were reading refers to the behavior of login with amazon, but so long as you return a fresh refresh token when you return an updated access token that will be valid.

3 comments
10 |2000 characters needed characters left characters exceeded

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

Thank you for you're answer. So if the user utilize Alexa at least once every 90 days, Alexa will get a new refresh at the same time as the access token. But what about if the user doesn't use Alexa for more that 90 days ? When Alexa will try to use the refresh token older than 90 days it will get an error and it will not be able to get neither an access token nor a new refresh token.

Will it display an error message ? Ask the user to reactivate its skill ? Some other behavior ?

Alex

0 Likes 0 ·

Hello @Brian@Amazon, do you know more about my issues ?

Thanks

Alex

0 Likes 0 ·
Jamie@Amazon avatar image Jamie@Amazon ♦♦ newuser-ad6db603-5631-4028-82ce-4abccf3d8911 ·

Hey Alexa, are you still blocked by this?

0 Likes 0 ·