I found out more about this behavior.
This is not due to admin page restriction but to malformed URLs i
passed to the request.

The url is in form

http://myapp.appspot.com/Admin.jsp&from=google&domain=mydomain.it

In this case the user gets redirected to Google Accounts login page
instead of

http://myapp.appspot.com/_ah/login_required?continue=http://myapp.appspot.com/Admin.jsp&from=google&domain=mydomain.it

[which is the URL you usually get redirected to if you require login
for a page:
http://myapp.appspot.com/Home.jsp redirects to
http://myapp.appspot.com/_ah/login_required?continue=http://myapp.appspot.com/Home.jsp]

Sorry for bad information about the issue

Lorenzo

On Jun 15, 11:26 am, Scott Ellis <[email protected]> wrote:
> I think if you log out of your apps account, it should allow you to login
> again with whatever account you want.
>
> On 15 June 2010 19:15, l.denardo <[email protected]> wrote:
>
> > Hello,
> > I'm currently facing an unattended behavior when using openID to
> > authenticate for an admin page.
>
> > My app uses openID to authenticate users: requests are correctly
> > redirected to _ah/login_required for requests on regular app address,
> > and I use a servlet to show a custom login page.
>
> > If I try to access an admin page (i.e. a page under security
> > constraint with  <role-name>admin</role-name> ), I'm not redirected to
> > my login page but I get an authomatic redirect to Google Accounts
> > login page.
>
> > This prevents me from accessing my admin pages both with a direct link
> > and from App Engine admin console, since my administrator account is a
> > Google Apps account and I have no choice to login with that if my
> > login servlet is bypassed. Accessing pages with a direct link when I'm
> > already logged in works, but App Engine console still redirects to
> > Google Accounts.
>
> > Searching documentation did not give pointers, neither did searching
> > issues and this group for "openid admin".
> > Thanks for clarification
>
> > Regards
> > Lorenzo
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-appengine%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to