Comments (5)
Indeed, Garb::Session.access_token
should be an instance of OAuth2::AccessToken
instead of a raw String
.
from garb.
Hm, would be nice if Garb would handle the initialization of the AccssToken object. I might invest a few hours into that next tuesday.
from garb.
That I think wouldn't be feasible as Garb doesn't "know" enough to initialize OAuth2::AccessToken
.
This should be done by yourself by providing things like OAuth2::Client
instance and appropriate options to the initializer.
from garb.
Ah, oke, seems legit. Maybe the documentation in the readme could use some clarification on using OAuth access tokens with Garb. I think this issue should be closed now, thanks for your quick reply!
from garb.
Just a side note, a good way to generate that token is suggested on StackOverflow by Brandon Tilley: http://stackoverflow.com/questions/5675029/how-to-use-omniauth-to-make-authenticated-calls-to-services
from garb.
Related Issues (20)
- Why don't you push on rubygems HOT 2
- Sample Application HOT 1
- Garb returns duplicate values HOT 2
- Contributors and link to Legato HOT 6
- unexpected json version errors HOT 2
- Please make this Gem available on RubyGems. HOT 13
- Multiple filters using OR HOT 1
- Unable to handle account without profiles HOT 1
- Unable to get access_token when using garb HOT 2
- Unable to authenticate from Travis HOT 1
- Unable to get profile. HOT 1
- Unable to get all profiles
- undefined method `token' for HOT 1
- Unable to Login with Single User - Garb::AuthenticationRequest::AuthError HOT 2
- Unable to fetch the profiles from Google Analytics using Server to server OAuth2 HOT 5
- Garb::ClientError: There was an internal error. HOT 1
- Are results fetched via Garb sampled
- After the OAuth 1.o shutdown on April 20, 2015 the Garb authentication is not working HOT 1
- Unable to filter using metrics operator such as >,>=, < and <=
- Dependabot can't resolve your Ruby dependency files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from garb.