diff options
author | Brion Vibber <brion@pobox.com> | 2010-09-22 17:51:50 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-09-22 17:51:50 -0700 |
commit | 084befc32f6ddefc8aa7743dc0ad332a985c98f5 (patch) | |
tree | d6330fde3aad44cd5ea71c37ae8070cbbf301a34 /plugins/YammerImport/actions/yammerauth.php | |
parent | a0052104388b4b73866aaa4d4cfafd08694247e0 (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)); +} + |