Commit 3f86a3bf9b70316a5a84e2298a54407fbb9f68bb

Authored by Victor Costa
1 parent e4c7476f

oauth login

Showing 3 changed files with 12 additions and 0 deletions   Show diff stats
embed_test.html 0 → 100644
... ... @@ -0,0 +1 @@
  1 +<iframe src="http://noosfero.com:3000/proposal-app/index.html" style="width: 600px; height: 600px;"></iframe>
... ...
index.html
... ... @@ -55,11 +55,18 @@
55 55  
56 56 <div id='proposal-result'></div>
57 57  
  58 + <div id="login">
  59 + <a href="http://noosfero.com:3000/plugin/oauth_client/google_oauth2?id=3" target="_blank" class="google">Google</a>
  60 + <a href="http://noosfero.com:3000/plugin/oauth_client/facebook?id=2" target="_blank" class="facebook">Facebook</a>
  61 + <a href="http://noosfero.com:3000/plugin/oauth_client/noosfero_oauth2?id=4" target="_blank" class="participa">Participa</a>
  62 + </div>
  63 +
58 64 <footer>
59 65 <p>Ícones desenhados por <a href="http://flaticon.com">Flaticon.com</a></p>
60 66 </footer>
61 67  
62 68 <script src='js/main.js'></script>
  69 + <script src='js/login.js'></script>
63 70 </body>
64 71  
65 72 </html>
... ...
js/login.js 0 → 100644
... ... @@ -0,0 +1,4 @@
  1 +function handleLoginResult(logged_in) {
  2 + // TODO reload
  3 + alert('login: ' + logged_in);
  4 +}
... ...