|Re: Need help writing Authentication Plugin [message #939546 is a reply to message #939426]
||Wed, 10 October 2012 21:32
| Mark Macdonald
Registered: July 2009
Look for a file named defaults.pref located in the org.eclipse.orion.client.core bundle. Open that file, find this line:|
The string in quotation marks is a URL. Change it to reference your new authentication plugin. The next time you load Orion (note: you may need to clear your browser's cache and localStorage database first), your own auth plugin will be loaded instead of Orion's default authenticationPlugin.html.
The longer explanation is that, in the Orion client, authentication is provided by Orion Plugins. These are different from Eclipse plug-ins: they can live anywhere on the web, and don't need to run in an Eclipse/OSGi environment. The defaults.pref file specifies the list of Orion Plugins that are installed by default in your Orion client, similar to how the Run Configurations dialog specifies which Eclipse plug-ins are active in an Eclipse launch.
To customize which plugins are active, we just edit defaults.pref and boot out stuff we don't want. An individual user can also control their own plugin environment by going to User Menu > Settings > Plugins after logging into Orion.
[Updated on: Wed, 10 October 2012 21:37]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.05800 seconds