Django-oauth-toolkit: Alexa skill integration

Created on 7 Dec 2020  路  3Comments  路  Source: jazzband/django-oauth-toolkit

Hi. I'm trying to figure out how to use the django-oauth-toolkit to implement alexa's skill integration. It seems that such integration it's possible with some modifications

https://stackoverflow.com/questions/41824162/when-exchanging-the-amazon-alexa-grant-code-for-an-access-token-where-are-the-c

733

However, there is no clear explanation of how these people achieved this. Do you know how to achieve such integration?

question

Most helpful comment

Hi! This is for sure possible as at the previous company we intagrated Alexa using DoT. Unfortunately I wasn't the one working on that and I don't have lots of insights but I may ask my friend if he remembers how he achieved that

All 3 comments

Hi! This is for sure possible as at the previous company we intagrated Alexa using DoT. Unfortunately I wasn't the one working on that and I don't have lots of insights but I may ask my friend if he remembers how he achieved that

That would be amazing!

@devmessias so this was how we did it:
we made first a custom model which is our Grant (possibly not needed, this depends on your use case and your DB structure)
We subclassed then the AbstractGrant, AbstractAccessToken and AbstractRefreshToken to create some models that have a FK to our internal grant.
We made an additional Grant model for storing Alexa specific grants, to store LWA tokens
We created a skill, the skill calls our authorization view
We created an oauth app for alexa with the client_id and client_secret from the skill, that app is used for linking
We have created an events endpoint which receives and process different types of events (received/sents) commands plus manages the LWA tokens lifecycle

This was after a look at what we did, not complete but should give a generic insight on the things needed to happen, if youhave more specific questions I can try to dig more stuff

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hackaprende picture hackaprende  路  5Comments

lucasdavid picture lucasdavid  路  3Comments

clintonb picture clintonb  路  6Comments

ericburns picture ericburns  路  3Comments

vegitron picture vegitron  路  7Comments