We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit c2de0a74 authored by Brion Vibber's avatar Brion Vibber

Ok, got the AJAX clicky-throughs working for yammer auth (if app is already...

Ok, got the AJAX clicky-throughs working for yammer auth (if app is already registered), but needs prettification. Yammer ignores callback URLs unless they're pre-registered with the app, and this apparently requires manual intervention to become a 'trusted' app, you don't get it on those you register yourself. Sigh. Also can't use an iframe since it breaks out of the frame (fair 'nuff)
parent a57d67c9
......@@ -76,7 +76,7 @@ class YammeradminpanelAction extends AdminPanelAction
return $this->showAjaxForm($form);
} else if ($this->verify_token) {
$form = new YammerAuthProgressForm();
$form = new YammerProgressForm($this, $this->runner);
return $this->showAjaxForm($form);
} else {
throw new ClientException('Invalid POST');
......@@ -65,8 +65,17 @@ class YammerAuthVerifyForm extends Form
function formData()
$this->out->input('verify_token', _m('Verification code:'), '', _m("Click through and paste the code it gives you below..."));
// iframe would be nice to avoid leaving -- since they don't seem to have callback url O_O
$this->out->element('iframe', array('id' => 'yammer-oauth',
'src' => $this->runner->getAuthUrl()));
// yeah, it ignores the callback_url
array('href' => $this->runner->getAuthUrl(),
'target' => '_blank'),
'clicky click');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment