Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Orion » Need help writing Authentication Plugin
Need help writing Authentication Plugin [message #939426] Wed, 10 October 2012 14:53 Go to previous message
Javier Pedemonte is currently offline Javier Pedemonte
Messages: 4
Registered: July 2009
Junior Member
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?
 
Read Message
Read Message
Read Message
Previous Topic:Orion and same origin policy
Next Topic:Async highlighter
Goto Forum:
  


Current Time: Thu May 23 11:53:17 EDT 2013

Powered by FUDForum. Page generated in 0.06112 seconds