new_contents: import webapp2
  import urllib2
  import urllib
  import json
  
  ## CHANGE THIS
  CLIENT_ID = "YOUR_CLIENT_ID"
  CLIENT_SECRET = "YOUR_CLIENT_SECRET"
  DOMAIN = "YOURS.auth0.com"
  CALLBACK_URL = "http://localhost:8080/callback"
  
  MAIN_PAGE_HTML = """\
  <html>
    <body>
      <script src="https://d19p4zemcycm7a.cloudfront.net/w2/auth0-widget-2.4.min.js"></script>
      <script type="text/javascript">
        
        var widget = new Auth0Widget({
          domain:         '%s',
          clientID:       '%s',
          callbackURL:    '%s'
        });
        
      </script>
      <button onclick="widget.signin()">Login</button>
    </body>
  </html>
  """ % (DOMAIN, CLIENT_ID, CALLBACK_URL)
  
  class MainPage(webapp2.RequestHandler):
  
      def get(self):
          self.response.write(MAIN_PAGE_HTML)
  
  class LoginCallback(webapp2.RequestHandler):
  
      def get(self):
        code = self.request.get("code")
        base_url = "https://{domain}".format(domain=DOMAIN)
        data = urllib.urlencode([('client_id', CLIENT_ID), 
                                 ('redirect_uri', CALLBACK_URL), 
                                 ('client_secret', CLIENT_SECRET),
                                 ('code', code), 
                                 ('grant_type', 'authorization_code')])
        req = urllib2.Request(base_url + "/oauth/token", data)
        response = urllib2.urlopen(req)
        oauth = json.loads(response.read())
        userinfo = base_url + "/userinfo?access_token=" + oauth['access_token']
        
        response = urllib2.urlopen(userinfo)
        data = response.read()
  
        ## print user data
        self.response.write(data)
  
  
  application = webapp2.WSGIApplication([
      ('/', MainPage),
      ('/callback', LoginCallback)
  ], debug=True)
  
subject: Create sample.py