class Contentful::Bootstrap::OAuthEchoView

Public Instance Methods

render() click to toggle source
# File lib/contentful/bootstrap/server.rb, line 10
      def render
        <<-JS
        <html><head>
          <link rel="shortcut icon" type="image/png" href="https://www.contentful.com/assets/images/favicons/favicon-47dc5f9d.png"/>
          <link rel="shortcut icon" type="image/png" href="https://www.contentful.com/assets/images/favicons/favicon-47dc5f9d.png"/>
        </head><body>
        <script type="text/javascript">
          (function() {
            var access_token = window.location.hash.split('&')[0].split('=')[1];
            window.location.replace('http://localhost:5123/save_token?token=' + access_token);
          })();
        </script>
        </body></html>
        JS
      end