@auth_decorator
def token_authenticated(self):
 if (self.get_current_user_token() is None):
  raise web.HTTPError(403)

@ auth_decorator def token_authenticated ( self ) : if ( self . get_current_user_token ( ) is None ) : raise web . HTTPError ( 403 )
decorator for a method authenticated only by the authorization token header .