Giter VIP home page Giter VIP logo

Comments (6)

acucciniello avatar acucciniello commented on June 18, 2024

It turns out Google Drive was giving me an authorization code not an access token. The authorization code is temporary and it is used to get an access token.

from alexa-open-doc.

acucciniello avatar acucciniello commented on June 18, 2024

I am now using authorization code grant instead of implicit grant, so google gives me an authorization code and then returns an access token. The access_token that google gives me expires after 1 hour. Proposed Solution: to get a refresh token, so when the token does expire, code will automatically get me a new access_token, not causing any problems for the user

from alexa-open-doc.

acucciniello avatar acucciniello commented on June 18, 2024

The last commit fixed this issue, by changing a setting in the Amazon Developer Portal. The setting is titled "Client Authentication Scheme" the setting to make it work should be HTTP in order to properly get the refresh token from google. Closing Issue

from alexa-open-doc.

acucciniello avatar acucciniello commented on June 18, 2024

After adding CreateFileIntent and EditFileIntent refresh token seems to stop working, more investigating is needed to be done

from alexa-open-doc.

acucciniello avatar acucciniello commented on June 18, 2024

After further investigation, it seems as if the refresh token is received only when calling the Launch Intent, versus calling any other intent that I have created. I am not sure if this is something that happens with amazon or if there is a minute difference in the code that is causing a refresh token to not be received. I cannot close this until I know for a fact that it will work without having to call the Launch Intent

from alexa-open-doc.

acucciniello avatar acucciniello commented on June 18, 2024

After a combination of two things and some playing with the skill afterward, it seems as if the skill is automatically getting the refresh token as it is supposed to. In my Amazon Developer Portal, under configuration, I have changed the setting of Client Authentication Scheme to Credentials in request body. After that, I went into my Google Drive account settings, removed access to the skill, and then reallowed access by relinking the skill in the Amazon Alexa Companion App ( the mobile app). My thought process is that by relinking the skill after it now had new capabilities, a new refresh token was needed. That last step (of denying access then relinking) may have to occur when new google drive functionality is added to the skill in the future. Closing this issue as resolved.

from alexa-open-doc.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.