

def authorize_url(self):
    'Returns the URL to start the OAuth dance.\n\n    Must only be called from with a webapp.RequestHandler subclassed method\n    that had been decorated with either @oauth_required or @oauth_aware.\n    '
    callback = self._request_handler.request.relative_url('/oauth2callback')
    url = self.flow.step1_get_authorize_url(callback)
    user = users.get_current_user()
    memcache.set(user.user_id(), pickle.dumps(self.flow), namespace=OAUTH2CLIENT_NAMESPACE)
    return url

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/google-api-python-client/oauth2client/appengine.py OAuth2Decorator.authorize_url/original