Skip to content
This repository has been archived by the owner on May 21, 2020. It is now read-only.

to what extent is xtuple oauth compatible with npm request module #5

Open
tjwebb opened this issue Jul 15, 2014 · 1 comment
Open

Comments

@tjwebb
Copy link

tjwebb commented Jul 15, 2014

https://github.com/mikeal/request#oauth-signing

Is this compatible? A totally different methodology? I am ignorant, but it appears superficially similar. Any insight is appreciated.

@lynnaloo
Copy link
Owner

Yep, it's compatible. It's just a matter of dissecting and changing part of the "googleapis" modules. If you look at jwt.js in "googleapis" and the "gapitoken" module, that is where the https request is to get the access token.

I based this client example as closely to this as possible so I'd stay in line with what Google is using, but this isn't the only way to do it (or really even the most efficient way)

This is another npm module that could be substituted in here as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants