[CDO] Custom configuration for Authenticator [message #1739066] |
Wed, 27 July 2016 05:58  |
Eclipse User |
|
|
|
Hi,
I've defined my own authenticator inside the cdo-server.xml file.
My custom authenticator class is instantiated but now I'd like to provide her with configuration parameters (ldap server address and port).
Is there a way to provide my own parameters directly in the cdo-server.xml file ?
Maybe I could set properties on the repository and then access them from my authenticator (or even better from the authenticator factory). But then, how can I access the repository configuration from the authenticator or from the factory ?
If this is not possible, what would be the recommended way to configure my authenticator ?
Regards,
Stéphane
|
|
|
|
|
|
Re: [CDO] Custom configuration for Authenticator [message #1739744 is a reply to message #1739743] |
Thu, 28 July 2016 00:34  |
Eclipse User |
|
|
|
Am 28.07.2016 um 07:30 schrieb Eike Stepper:
> Am 27.07.2016 um 22:28 schrieb Stéphane Thibaudeau:
>> Hi Eike,
>>
>> Thanks for your reply.
>> What if I need more parameters ?
>> I think that description is just a string, you mean I should use my own custom format to pass all the parameters in
>> one string ?
> Yes, that's the way it works.
I forgot to mention that you could also register a custom application extension by implementing one of the following
interfaces:
org.eclipse.emf.cdo.spi.server.IAppExtension
org.eclipse.emf.cdo.spi.server.IAppExtension2
Your implementing plugin must contribute to the Eclipse extension registry. An example is in the
org.eclipse.emf.cdo.server.security plugin:
<extension point="org.eclipse.emf.cdo.server.appExtensions">
<appExtension class="org.eclipse.emf.cdo.server.internal.security.SecurityExtension"/>
</extension>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Re: [CDO] Custom configuration for Authenticator [message #1741960 is a reply to message #1739743] |
Thu, 28 July 2016 00:34  |
Eclipse User |
|
|
|
Am 28.07.2016 um 07:30 schrieb Eike Stepper:
> Am 27.07.2016 um 22:28 schrieb Stéphane Thibaudeau:
>> Hi Eike,
>>
>> Thanks for your reply.
>> What if I need more parameters ?
>> I think that description is just a string, you mean I should use my own custom format to pass all the parameters in
>> one string ?
> Yes, that's the way it works.
I forgot to mention that you could also register a custom application extension by implementing one of the following
interfaces:
org.eclipse.emf.cdo.spi.server.IAppExtension
org.eclipse.emf.cdo.spi.server.IAppExtension2
Your implementing plugin must contribute to the Eclipse extension registry. An example is in the
org.eclipse.emf.cdo.server.security plugin:
<extension point="org.eclipse.emf.cdo.server.appExtensions">
<appExtension class="org.eclipse.emf.cdo.server.internal.security.SecurityExtension"/>
</extension>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.03921 seconds