[racket] Bite-Size Racket Projects
You can comment the require which is asking for secret.rkt.
Then goto this url
http://code.google.com/apis/accounts/docs/OAuth2.html#Registering
Follow the steps there , you will get client-identifier and
client-secret , make sure
your redirect-uri is : http://localhost:8000/oauth2callback.rkt ,
since example will only
work with above redirect uri.
Now you can define the oauth-obj in same file as :
(define oauth-obj
(make-oauth-2
#:client-id "abc .... blah"
#:client-secret "45bg......"
#:authorization-uri "https://accounts.google.com/o/oauth2/auth"
#:token-uri "https://accounts.google.com/o/oauth2/token"
#:redirect-uri "http://localhost:8000/oauth2callback.rkt"
#:response-type 'code))
Just substitute the client-id and client-secret that you got from google.
Example should work now, if not just drop me a mail.
Veer.
On Mon, Aug 29, 2011 at 5:08 PM, Sam Tobin-Hochstadt <samth at ccs.neu.edu> wrote:
> Very nice!
>
> I note that it seems to need a "secret.rkt" file. How do I generate
> one for myself?
>
> On Mon, Aug 29, 2011 at 1:20 AM, Veer <diggerrrrr at gmail.com> wrote:
>> I have put a very basic OAuth-2.0 protocol implementation at
>> https://github.com/veer-public/OAuth-2.0
>> As I understand it more , I will try to improve it , at present it
>> seems to work ok with
>> google api and requires racket version 5.1.3 .
>>
>> Thanks
>>
>>
>> On Fri, Aug 26, 2011 at 1:01 AM, Sam Tobin-Hochstadt <samth at ccs.neu.edu> wrote:
>>> It's clear that there are lots of people who are interested in hacking
>>> with Racket, or improving Racket, but don't know where to start. In
>>> response, some of us have put together a list of bite-size Racket
>>> projects, which are good places for learning Racket, contributing, and
>>> just having fun programming. The list is here:
>>> https://github.com/plt/racket/wiki/Intro-Projects
>>> It's a wiki, so feel free to add projects, let people know that you're
>>> working something, or provide more info on that page.
>>>
>>> Ask questions about any of the projects on this list, on the #racket
>>> IRC channel, or by sky-writing,
>>> --
>>> sam th
>>> samth at ccs.neu.edu
>>> _________________________________________________
>>> For list-related administrative tasks:
>>> http://lists.racket-lang.org/listinfo/users
>>>
>>
>
>
>
> --
> sam th
> samth at ccs.neu.edu
>