Hi,

My response to your email bounced.  So I'm posting it here:

I see what the issue is here, and unfortunately, there isn't much that can
be done in this case.

If you have an account that is a Google Apps account, App Engine will always
treat this account as a Google Apps account even if it is also a Google
Account.

If you set your app authentication to Google Accounts, however, your
application (this does not apply to the Admin Console) can only authenticate
against a Google Account. Thus you can not authenticate an admin in your
application if it is a Google Apps account, and is_current_user_admin() will
not work.

We try to explain these ideas in this article:
 http://code.google.com/appengine/articles/auth.html

The bottom line is, if you wish to sign in as an admin in your application,
you will need an account that is _only_ a Google Account to use for this
purpose.

Hope this makes sense,
Marzia

On Tue, Mar 17, 2009 at 4:45 PM, Marzia Niccolai <ma...@google.com> wrote:

> Hi,
>
> If you reply to me with the email addresses and app id I can further
> investigate the issue.
>
> It is important, in general, that you not be logged in to a Google Account
> and Google Apps account at the same time when accepting an invitation to
> develop.
>
> -Marzia
>
>
> On Mon, Mar 16, 2009 at 8:10 PM, Scumbag 
> <markstead.and.fam...@gmail.com>wrote:
>
>>
>> I've got a Google App Engine application which is using Google
>> Accounts for authentication.
>>
>> The application was created by a Google Apps user.  If I try to add a
>> new developer, and they accept the invitation using a Google Account,
>> then they can't see the application.  Note that the acceptance is
>> registered and the new user is listed as an active developer.
>>
>> If the new user instead tries to login using Google Apps
>> authentication, then they can successfully see the Google App Engine
>> application.
>>
>> Does that make sense?
>>
>> The problem I've got is that I cannot use the is_current_user_admin()
>> function.  To my application, all users appear as ordinary users -
>> because all the Developers/Administrators have to login using a Google
>> Apps account.
>>
>>
>> On Feb 27, 5:45 am, Marzia Niccolai <ma...@google.com> wrote:
>> > Hi,
>> >
>> > Yes, Google Apps accounts can be admins of an application.  However,
>> it's
>> > really only suggested that they are admins of an application where the
>> > authentication option of an app is also set to Google Apps.
>> >
>> > Generally, in order to sign in to an application as an admin, the type
>> of
>> > account must match the authentication setting for that app.  This is
>> because
>> > the app can only serve the authentication page that matches it's
>> > authentication option.
>> >
>> > We have an article on the subject which may be slightly more clear:
>> http://code.google.com/appengine/articles/auth.html
>> >
>> > If it sounds confusing, that's because it is.  Especially because you
>> can
>> > have emails that are both Google Accounts and Google Apps accounts.  All
>> I
>> > can say on that is that we hope in the future we can make it less
>> confusing
>> > for all our users, but we aren't there yet.
>> >
>> > -Marzia
>> >
>> > On Thu, Feb 26, 2009 at 10:37 AM, lenza <le...@aznel.trickip.net>
>> wrote:
>> >
>> > > I signed up for GAE using my Google Apps account, not a gmail.com
>> > > account.  I can access the administrator console with this account.
>> > > However, I cannot access pages where I have "login: admin" set.  Also
>> > > users.is_current_user_admin() returns False when signed into my Google
>> > > Apps account.
>> >
>> > > I also have an gmail.com account that I just added as an
>> > > administrator.  This account can access "login: admin" pages and
>> > > users.is_current_user_admin() returns True.
>> >
>> > > Is this a known issue?
>> >
>> >
>> >>
>>
>

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

Reply via email to