summaryrefslogtreecommitdiff
path: root/plugins/YammerImport/actions/yammerauth.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/YammerImport/actions/yammerauth.php')
-rw-r--r--plugins/YammerImport/actions/yammerauth.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/YammerImport/actions/yammerauth.php b/plugins/YammerImport/actions/yammerauth.php
new file mode 100644
index 000000000..7e6e7204a
--- /dev/null
+++ b/plugins/YammerImport/actions/yammerauth.php
@@ -0,0 +1,17 @@
+<?php
+
+
+function showYammerAuth()
+{
+ $token = $yam->requestToken();
+ $url = $yam->authorizeUrl($token);
+
+ // We're going to try doing this in an iframe; if that's not happy
+ // we can redirect but there doesn't seem to be a way to get Yammer's
+ // oauth to call us back instead of the manual copy. :(
+
+ //common_redirect($url, 303);
+ $this->element('iframe', array('id' => 'yammer-oauth',
+ 'src' => $url));
+}
+