Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
1.8k views
in Plugins by
recategorized by

I've updated Proxy Single Sign-on plugin for v 1.4.1

See the screencast which show the features and architecture of the plug-in. The screencast is for the first version of the plugin, but the user experience and architecture remain the same.

 

The plugin includes a new widget for greeting the user. The widget software can be used as an example of the "flash message" idea from Rails. It enables software to post a message to the user.

Thanks to Gideon's work on 1.4.1, installation of the plug in is now much smoother. No core files are changed to install the plugin!

by
Wow. Thanks for updating this. FYI that one core change you made could also be done via a plugin layer, which removes the form under the appropriate conditions.
by
Thanks Gidi. I'll look into the plugin layer api.
by
Do you mean I should override method form in  qa-theme-base and examine *every* form that q2a is displaying?

If there was an "admin_form" method, I think that'd be a better place to add an extra layer. Adding another layer at the form level doesn't have a good feeling...

Or am I missing something and there's another place to add code?

Thanks.
by
Take some theme function called early on - main() will do - and override it to check whether you're on a user's account page (using $this->template). If so and the password form should be hidden, unset($this->content['form_password']) before calling through to the overridden function - e.g. main() - in the default theme class.
by
Thanks. Done--I've updated the plugin to no longer require any core file changes. Thanks again for great sw! You may wish to add a link to the plugin on the q2a front page where you discuss SSO plugins. The method used in this plugin is the same as the popular Vanilla Forum sw. Regards.
by
Is this working with v 1.5??
by
I haven't tested/upgraded yet. So it may work or may not, let me know! I'll be upgrading "soon".
by
edited by
Can this plugin be used to integrate a Q2A site with Drupal?
by
Yes, as long as your drupal and q2a site share a root domain such as q2a.foo.com and foo.com or drupal.foo.com. But you will need to add sw to the drupal site. See the readme for this plugin and consult with people who write sw for drupal.
by
the qa-plugin.php tries to register 3 php files, only one of them exists at the github site.
by
what is "sw" stands for ?

1 Answer

0 votes
by

just tested with a fresh install of 1.5, I am getting this whenever the plugin is in place:

Warning: require_once(/.../qa/qa-plugin/proxy-sso-login/qa-proxy-sso-login-widget.php) [function.require-once]: failed to open stream: No such file or directory in /.../qa/qa-include/qa-base.php on line 572

Fatal error: require_once() [function.require]: Failed opening required '/.../qa/qa-plugin/proxy-sso-login/qa-proxy-sso-login-widget.php' (include_path='.:/usr/local/share/pear') in /.../qa/qa-include/qa-base.php on line 572

by
I believe those imports were from the Q2A core. I'm looking into the upgrade issues right now....
by
Fixed the repo on GitHub. Thank you for the problem report!
...