diff options
author | Brion Vibber <brion@pobox.com> | 2010-09-22 17:51:50 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-09-28 07:44:23 -0700 |
commit | 472dab4a86c0ba365404b0994c3eb7e9979a80c2 (patch) | |
tree | baa11fa8496e7b9753bc1aafda710b56e24cd869 /plugins/YammerImport/actions/yammerauth.php | |
parent | 22434a5daeb535b72d4797877bacad9eb6a74f2e (diff) |
WORK IN PROGRESS: Starting infrastructure to initiate Yammer import from web UI and process it in the background queues. Totally not complete yet.
Diffstat (limited to 'plugins/YammerImport/actions/yammerauth.php')
-rw-r--r-- | plugins/YammerImport/actions/yammerauth.php | 17 |
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)); +} + |