Authentication misunderstanding

4 views
Skip to first unread message

Rijk

unread,
Dec 3, 2009, 1:48:49 AM12/3/09
to AppRocket
Hi everyone

I am trying to integrate AppRocket into an existing Google AppEngine
application.
After doing the setup steps as discussed under the Getting Started
section. I upload the new version to my appspot test instance. Then I
try to run the daemon locally on my dev box.

The only result is a trace including the html of the google
authentication page.

I have update key.py and my local copy is the same as the appengine
one.

What am I missing here?

Kind regards
Rijk

Kurt Daal

unread,
Dec 3, 2009, 4:20:07 AM12/3/09
to AppRocket
Did you try it running against local development server?

Do you use "login:" setting in your app.yaml?

Could it be that you application is restricted to memebers of your
domain only?

Rijk Stofberg

unread,
Dec 3, 2009, 8:29:50 AM12/3/09
to appr...@googlegroups.com
All valid questions :)

Taking it from the top...
I did run it against my local dev instance with URL set to
localhost:8080/rocket and I get an Unauthorized error.

The config snippet looks like this:
- url: /rocket/.*
script: rocket/rocket.py

Yes the app does is restricted to members of the domain.

Thanks!
Rijk
> --
>
> You received this message because you are subscribed to the Google Groups "AppRocket" group.
> To post to this group, send email to appr...@googlegroups.com.
> To unsubscribe from this group, send email to approcket+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/approcket?hl=en.
>

Kurt Daal

unread,
Dec 3, 2009, 9:23:30 AM12/3/09
to AppRocket
Actually it should work even with "restrict to memers of domain"
option, if you omit "login:' option for AppRocket URL (judging from
you config snippet, that part is correct).

If you get "Unauthorized" error, it means that local and remote key
(configured in key.py) are different for some reason.

You may try to open URL http://localhost:8080/rocket/?secret_key=your_key
in a browser and see if it works (you can do the same for hosted App
Engine URL).

On Dec 3, 3:29 pm, Rijk Stofberg <rijk.stofb...@gmail.com> wrote:
> All valid questions :)
>
> Taking it from the top...
> I did run it against my local dev instance with URL set to
> localhost:8080/rocket and I get an Unauthorized error.
>
> The config snippet looks like this:
> - url: /rocket/.*
>   script: rocket/rocket.py
>
> Yes the app does is restricted to members of the domain.
>
> Thanks!
> Rijk
>

Rijk Stofberg

unread,
Dec 3, 2009, 3:48:56 PM12/3/09
to appr...@googlegroups.com
Hi Kurt

Thanks for the help.
It turns out that the key was correct in key.py, but I should have
forced the default version of the app to the one with the correct code
(including key.py).
After going to https://appengine.google.com/deployment?app_id=[my_app_id]
and forcing the version I wanted, things started working as advertised
:)
Currently I have downloading working for one of my classes, now I have
to wire in my whole data model.
I will let you know how that works out ;)

Cheers!
Rijk
--
Regards
Rijk
Reply all
Reply to author
Forward
0 new messages