google app engine - appengine app works only with my account -
i've developed simple appengine application google apps domain. access restricted users in domain, , app enabled in admin console domain.
the authentication/authorization in application done using decorators, using json client secrets downloaded api console. i've created client secrets of type "client id web applications".
my main handler, on method, follows:
@decorator.oauth_aware def get(self): if decorator.has_credentials(): .... stuff ..... else: self.response.out.write("decorator doesn't have credentials")
the problem application works when i'm logged in account. other users in same domain, "decorator doesn't have credentials" error.
any clue on why case?
the problem quite simple: user not logged in and, instead of presenting login window, app crashing.
to present login window should use @decorator.oauth_required
instead of oauth_aware
, , put login: required
in app.yaml file
Comments
Post a Comment