def post(self):

    self.session = Session()
    
    if users.get_current_user():
      # 1.) REQUEST TOKEN STEP. Provide the data scope(s) and the page we'll
      # be redirected back to after the user grants access on the approval page.
      req_token = gdocs.FetchOAuthRequestToken(
          scopes=SETTINGS['SCOPES'], oauth_callback=self.request.uri)

      # Generate the URL to redirect the user to.  Add the hd paramter for a
      # better user experience.  Leaving it off will give the user the choice
      # of what account (Google vs. Google Apps) to login with.
      domain = self.request.get('domain', default_value='default')
      approval_page_url = gdocs.GenerateOAuthAuthorizationURL(
          extra_params={'hd': domain})

      # 2.) APPROVAL STEP.  Redirect to user to Google's OAuth approval page.
      self.redirect(approval_page_url)
Fetches a request token and redirects the user to the approval page.
dataset/ETHPy150Open kuri65536/python-for-android/python-build/python-libs/gdata/samples/oauth/oauth_on_appengine/main_rsa.py/OAuthDance.post