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
However, there is no clear explanation of how these people achieved this. Do you know how to achieve such integration?
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
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