Hey Cameron,

I'm not quite sure what you're asking here. Do you mean that you're running 
a python script in a development environment and would like to auth against 
our production oauth servers with an actual account? Or something else?

Cheers,

Nick
Cloud Platform Community Support

On Wednesday, July 20, 2016 at 10:40:52 PM UTC-4, Cameron Blackwood wrote:
>
> Does anyone have an official/recommended oauth2 command line python script 
> example which can authenticate a user in an appengine project? Ie, one that 
> sets google.appengine.api.get_current_user()?
>
> I had a script which used the old clientlogin interface to log into a page 
> to extract stats, but that is now depreciated and now we have to switch to 
> oauth2.
>
> Im hoping that I dont have to modify my appengine app to enable 
> use/setting of the user variable in appengine. I mean it's auth'ing a 
> google account through google infrastructure, so in theory google's front 
> end should be able to do the oauth2 redirects and such forth before it 
> passes the request on to my appengine project, shouldnt it?
>
> I have a working commandline script which can use oauth2 to login (it 
> gives you a url to visit, you auth there in a browser and enter a magic 
> string and that seems to work).
>
> I guess im asking:
>
>   * is there a magic google oauth scope which sets the user for an 
> appengine script? or do i have to totally roll my own appengine oauth
>   * is there a 'reference' example for the minimal *command line* (non 
> browser) script settings to authenticate a user for appengine?
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2bf0876b-3657-4195-9490-a97b90833d4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to