Code Monkey home page Code Monkey logo

Comments (14)

tpitale avatar tpitale commented on August 26, 2024

I do have a local branch to do this. I'm a bit busy this week, but I'll try to get that up and integrated soon!

from legato.

devth avatar devth commented on August 26, 2024

Awesome, thanks! 🍺

from legato.

tpitale avatar tpitale commented on August 26, 2024

Can you check out this branch: https://github.com/tpitale/legato/tree/oauth-1-support It allows you to use oauth with an API key, and hang onto that token forever without having to refresh it. This was how I did single user support in my own stuff.

Check out the Rakefile for a way to get a new token.

I'm not sure if this is entirely what you're looking for, and it certainly needs better integration, tests, and documentation. But it might get you started.

from legato.

devth avatar devth commented on August 26, 2024

I was able to get an oauth verification code using your code from Rakefile. Do I use that to create a Legato::User?

from legato.

devth avatar devth commented on August 26, 2024

I think I figured it out. After manually retrieving the Token/Secret, I just create an access token in with those saved values:

def access_token 
  OAuth::AccessToken.new(consumer, token, secret)
end

@user = Legato::User.new(access_token, api_key)

Thanks for your help.

from legato.

devth avatar devth commented on August 26, 2024

Filtering on this branch must not match the docs right? Does this use the previous method of filtering from Garb?

from legato.

devth avatar devth commented on August 26, 2024

Nvm, just saw that oauth-1-support is up-to-date with master. I'll keep messing with it.

from legato.

devth avatar devth commented on August 26, 2024

Got this working. Thanks!

from legato.

nfriend21 avatar nfriend21 commented on August 26, 2024

Trying to get this working too....do you have any tips? I can only get it working if I continue to re-authorize my account and get a current token. I just want to use the api key. How can I do this? thanks!

from legato.

salgadobreno avatar salgadobreno commented on August 26, 2024

I'm trying to set up this type of access too, any tips?

from legato.

tpitale avatar tpitale commented on August 26, 2024

As far as I'm aware, Google has disabled access via oauth 1. OAuth 2 is the only thing available. You can, however, get a service account: https://github.com/tpitale/legato/wiki/OAuth2-and-Google#service-accounts

from legato.

amiel avatar amiel commented on August 26, 2024

FYI: Service accounts only work for Google Apps accounts. Since we were using a regular @gmail.com google account, we went with an "Installed Application". And to streamline the process, we wrote this poorly named gem (google-oauth2-installed). I hope it helps someone :)

from legato.

tpitale avatar tpitale commented on August 26, 2024

Cool, if you open an issue I'll add it to the wiki so people can find it. Thanks!

On Mar 18, 2014, at 2:08 PM, Amiel Martin [email protected] wrote:

FYI: Service accounts only work for Google Apps accounts. Since we were using a regular @gmail.com google account, we went with an "Installed Application". And to streamline the process, we wrote this poorly named gem (google-oauth2-installed). I hope it helps someone :)


Reply to this email directly or view it on GitHub.

from legato.

amiel avatar amiel commented on August 26, 2024

@tpitale Will do, thanks!

from legato.

Related Issues (20)

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.