|Need help writing Authentication Plugin [message #939426]
||Wed, 10 October 2012 14:53
| Javier Pedemonte
Registered: July 2009
I'm working on an authentication plugin for Orion v0.5 (cannot move up to 1.0 yet).|
I copied org.eclipse.orion.server.authentication.formopenid and replaced the bits I needed for my authentication service. I even changed the URL in authenticationPlugin.html from "mixloginstatic/LoginWindow.html?redirect=XXX?key=FORMOpenIdUser" to something like "mylogin/LoginWindow.html?redirect=XXX?key=MyUser".
Then I ran Orion from within Eclipse with the following setup:
* In web-ide.conf, I added "orion.auth.name=MyAuth" (corresponds to the name in my plugin's OSGI-INF/component.xml).
* I disabled the org.eclipse.orion.server.authentication.feature from the Eclipse run configuration, and enabled my plugin.
Now, when loading localhost:8080, I would expect it to load the "/mylogin/..." URL. Instead, it still goes to "/mixloginstatic/..." -- even though the Orion auth plugins have been disabled.
This seems to be due to the authenticationPlugin.* files in the org.eclipse.orion.client.core plugin. It is setting the URL to "/mixloginstatic/...".
How can I make it so the authenticationPlugin.html from my plugin is used, rather than the one from org.eclipse.orion.client.core?