I finally ended up building a more specific module for signing the
jwt, and then creating a module for google bigquery:

https://github.com/machadogj/node-jwt-sign
https://github.com/machadogj/node-google-bigquey

It still needs some work, but most of the API is supported.

Thanks!
Gus

On Tue, Jul 17, 2012 at 6:44 PM, Gustavo Machado <[email protected]> wrote:
> I finally figured it out, I was missing the -nodes parameter in the
> openssl command, so the private key was not being exported. Tried it
> and it's working now.
>
> Thanks for the help!
> Gustavo
>
> On Tue, Jul 17, 2012 at 6:35 PM, Gustavo Machado <[email protected]> wrote:
>> Hi Dick,
>>
>> Thanks for pointing that out, I went there, and created my service
>> credentials, which prompts me to download a .p12 file. I used openssl
>> tool to create a .pem file using the 'notasecret' password and looks
>> like it worked, but now I just can't seem to be able to sign the
>> token. I wouldn't know which is the so called "key" they need me to
>> sign this with.
>>
>> Gus
>>
>> On Tue, Jul 17, 2012 at 6:21 PM, Dick Hardt <[email protected]> wrote:
>>> Oh right. I forgot they waffle back and forth on bearer tokens vs signed 
>>> tokens.
>>>
>>> You want to go to the API console logged in with the account that you used 
>>> to register your app. (if you have not registered your app, then go here 
>>> anyway and register an app)
>>>
>>> https://code.google.com/apis/console
>>>
>>> You should get redirected to a URL that is managing your projects access
>>>
>>> Click the API Access tab and you can generate and get your keys there
>>>
>>> -- Dick
>>>
>>> On Jul 17, 2012, at 2:14 PM, Gustavo Machado wrote:
>>>
>>>> When using Google APIs from a service (without requiring your users to
>>>> log into google) I think you need to use this auth method:
>>>>
>>>> https://developers.google.com/accounts/docs/OAuth2ServiceAccount#libraries
>>>>
>>>>
>>>>
>>>> On Tue, Jul 17, 2012 at 6:04 PM, Dick Hardt <[email protected]> wrote:
>>>>> Which Google APIs take a jwt?
>>>>>
>>>>> On Jul 17, 2012, at 1:50 PM, Gustavo Machado wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Has anybody used the node-jwt-simple module to log into Google APIs?
>>>>>> In particular, I need to know where to pull the 'secret' parameter
>>>>>> from my Google APIs account.
>>>>>>
>>>>>> Thanks,
>>>>>> Gustavo
>>>>>>
>>>>>> --
>>>>>> Job Board: http://jobs.nodejs.org/
>>>>>> Posting guidelines: 
>>>>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "nodejs" group.
>>>>>> To post to this group, send email to [email protected]
>>>>>> To unsubscribe from this group, send email to
>>>>>> [email protected]
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>>>
>>>>> --
>>>>> Job Board: http://jobs.nodejs.org/
>>>>> Posting guidelines: 
>>>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "nodejs" group.
>>>>> To post to this group, send email to [email protected]
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected]
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>>
>>>> --
>>>> Job Board: http://jobs.nodejs.org/
>>>> Posting guidelines: 
>>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>>>> You received this message because you are subscribed to the Google
>>>> Groups "nodejs" group.
>>>> To post to this group, send email to [email protected]
>>>> To unsubscribe from this group, send email to
>>>> [email protected]
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>
>>> --
>>> Job Board: http://jobs.nodejs.org/
>>> Posting guidelines: 
>>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>>> You received this message because you are subscribed to the Google
>>> Groups "nodejs" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to