Hi all, I am trying to get oauth working with Google so I can write some Google Drive code in Racket.
I set up an "installed application" in a project in my Google dev console, and copied its ID to my Racket code. When I try to get a token, it seems like everything is working -- I log into my Google account, select my app and grant it permission, and the browser redirect thinks that it succeeded in sending the auth code back to Racket. But then I get the error oauth2:acquire-token/auth-code/json: failed: "HTTP/1.1 400 Bad Request". Has anyone used this package lately? Below is the whole code for what I'm doing. Thanks! Fred #lang racket (require (planet ryanc/webapi:1:=1/oauth2)) (define myclient (oauth2-client #:id "548798434144-mhbmkbnlbi834tag326e5eojhgho9uco.apps.googleusercontent.com" #:secret #f)) ; goes through the whole browser login and grant privs, and even seems ; to send the auth code back to localhost, ; then fails with: 'oauth2:acquire-token/auth-code/json: failed: "HTTP/1.1 400 Bad Request"' (oauth2/request-auth-code/browser google-auth-server myclient '("https://www.googleapis.com/auth/drive")) -- 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.