summaryrefslogtreecommitdiff
path: root/plugins/YammerImport/actions/yammerauth.php
blob: 7e6e7204ae25e0257c12472d253353350710d9e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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));
}