Re: [racket-users] Re: using ryanc's oauth2 package with Google?

2016-02-15 Thread Fred Martin
hahah!

I finished my "interacting with Google Drive via Racket" experiment. Basically, 
it recursively collects subfolders, and then lets you issue a search query over 
all of them at once.

If anyone wants to check it out, the code is here: 
https://github.com/fgmart/google-drive-racket.

I removed the "secret" from the commit. Email me if you want to use my Google 
Developer client :)

Thanks everyone for your help!

Fred

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Re: using ryanc's oauth2 package with Google?

2016-02-15 Thread Ryan Culpepper

On 02/14/2016 12:02 PM, Fred Martin wrote:

So... even though I chose "Other" as the client type, my API credentials were 
created with a secret.

I had to copy the secret into my client constructor request.

 From my reading of the oauth 2 API docs, I thought "installed app" clients 
weren't supposed to have secrets?


The Google OAuth2 API docs page for "installed applications" [1] says:

  In this context, the client secret is obviously not treated
  as a secret.

I don't know why they require the "secret", but they do, and they know 
it's a little weird.


Ryan


[1] https://developers.google.com/identity/protocols/OAuth2InstalledApp

--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.