<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Custom config for deploying plugins in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/custom-config-for-deploying-plugins/m-p/321941#M8942</link>
    <description>&lt;P&gt;Is there a way to have an external xml configuration file for plugins?  I followed the guide here: &lt;A href="http://doc.nuxeo.com/display/Studio/Deploy+your+plugin+manually" target="test_blank"&gt;http://doc.nuxeo.com/display/Studio/Deploy+your+plugin+manually&lt;/A&gt; and deployed my plugin just fine with the xml config inside the jar file, but this doesn't help me much if I need to change config parameters based on where I'm deploying. (I created a new authentication plugin that needs a config parameter pointing towards our login api, which might be different depending on the install).&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;If anyone is looking for this answer later I figured it out finally: thank you guys for your help!&lt;/P&gt;
&lt;P&gt;Answer:
The authentication plugin also used an authentication chain which needed to be extended in the jar file while the xml contribution for the authenticator could exist externally.&lt;/P&gt;
&lt;P&gt;In the plugin jar at OSGI-INF/extensions/nameofmyauthenticator.xml&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;component name="com.ikanow.infinit.e.nuxeo.auth.MyAuthenticator"&amp;gt;
   
  &amp;lt;extension
      target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
      point="chain"&amp;gt;
      &amp;lt;authenticationChain&amp;gt;
        &amp;lt;plugins&amp;gt;        	
            &amp;lt;plugin&amp;gt;MY_AUTH&amp;lt;/plugin&amp;gt;
            &amp;lt;plugin&amp;gt;FORM_AUTH&amp;lt;/plugin&amp;gt;
        &amp;lt;/plugins&amp;gt;
      &amp;lt;/authenticationChain&amp;gt;
    &amp;lt;/extension&amp;gt;
    
    &amp;lt;extension 
    	target="org.nuxeo.ecm.platform.login.LoginPluginRegistry"
   		point="plugin"&amp;gt;
    		&amp;lt;LoginPlugin name="MyLoginPlugin"
      			class="com.my.MyLoginPlugin"&amp;gt;
     			&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
    		&amp;lt;/LoginPlugin&amp;gt;
  	&amp;lt;/extension&amp;gt;
&amp;lt;/component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then externally place the contrib for the authenticator only in NUXEOINSTALL/nxserver/config/my-auth-config.xml (named XXX-config.xml as stated by Florent (thanks!))&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;component name="com.ikanow.infinit.e.nuxeo.auth.MyAuthenticatorConfig"&amp;gt;	
  	
  	&amp;lt;require&amp;gt;org.nuxeo.ecm.platform.ui.web.auth.defaultConfig&amp;lt;/require&amp;gt;
  
   &amp;lt;extension
      target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
      point="authenticators"&amp;gt;
      &amp;lt;authenticationPlugin 
      		name="MY_AUTH"
    		enabled="true"
    		class="com.my.MyAuthenticator"&amp;gt;
       &amp;lt;loginModulePlugin&amp;gt;MyLoginPlugin&amp;lt;/loginModulePlugin&amp;gt;
       &amp;lt;parameters&amp;gt;
       	 &amp;lt;parameter name="MyLoginURL"&amp;gt;http://www.my.com/&amp;lt;/parameter&amp;gt;
       	 &amp;lt;parameter name="MyAPIURL"&amp;gt;http://www.my.com/api/&amp;lt;/parameter&amp;gt;
       &amp;lt;/parameters&amp;gt;
      &amp;lt;/authenticationPlugin&amp;gt;
  &amp;lt;/extension&amp;gt;  	    
&amp;lt;/component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I was trying to place all the extension point information (login plugin and authentication chain) outside in the /config folder.  It would load my extension but not implement the authentication chain so I was still receiving some log messages about my authenticator initializing but it wasn't being used when going to nuxeo.  By just putting the authenticator contribution out there, it started working properly.&lt;/P&gt;
&lt;P&gt;Thanks for the help everyone, hopefully this helps someone in the future.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2013 21:58:40 GMT</pubDate>
    <dc:creator>cburch_</dc:creator>
    <dc:date>2013-07-30T21:58:40Z</dc:date>
    <item>
      <title>Custom config for deploying plugins</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/custom-config-for-deploying-plugins/m-p/321941#M8942</link>
      <description>&lt;P&gt;Is there a way to have an external xml configuration file for plugins?  I followed the guide here: &lt;A href="http://doc.nuxeo.com/display/Studio/Deploy+your+plugin+manually" target="test_blank"&gt;http://doc.nuxeo.com/display/Studio/Deploy+your+plugin+manually&lt;/A&gt; and deployed my plugin just fine with the xml config inside the jar file, but this doesn't help me much if I need to change config parameters based on where I'm deploying. (I created a new authentication plugin that needs a config parameter pointing towards our login api, which might be different depending on the install).&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;If anyone is looking for this answer later I figured it out finally: thank you guys for your help!&lt;/P&gt;
&lt;P&gt;Answer:
The authentication plugin also used an authentication chain which needed to be extended in the jar file while the xml contribution for the authenticator could exist externally.&lt;/P&gt;
&lt;P&gt;In the plugin jar at OSGI-INF/extensions/nameofmyauthenticator.xml&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;component name="com.ikanow.infinit.e.nuxeo.auth.MyAuthenticator"&amp;gt;
   
  &amp;lt;extension
      target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
      point="chain"&amp;gt;
      &amp;lt;authenticationChain&amp;gt;
        &amp;lt;plugins&amp;gt;        	
            &amp;lt;plugin&amp;gt;MY_AUTH&amp;lt;/plugin&amp;gt;
            &amp;lt;plugin&amp;gt;FORM_AUTH&amp;lt;/plugin&amp;gt;
        &amp;lt;/plugins&amp;gt;
      &amp;lt;/authenticationChain&amp;gt;
    &amp;lt;/extension&amp;gt;
    
    &amp;lt;extension 
    	target="org.nuxeo.ecm.platform.login.LoginPluginRegistry"
   		point="plugin"&amp;gt;
    		&amp;lt;LoginPlugin name="MyLoginPlugin"
      			class="com.my.MyLoginPlugin"&amp;gt;
     			&amp;lt;enabled&amp;gt;true&amp;lt;/enabled&amp;gt;
    		&amp;lt;/LoginPlugin&amp;gt;
  	&amp;lt;/extension&amp;gt;
&amp;lt;/component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then externally place the contrib for the authenticator only in NUXEOINSTALL/nxserver/config/my-auth-config.xml (named XXX-config.xml as stated by Florent (thanks!))&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;component name="com.ikanow.infinit.e.nuxeo.auth.MyAuthenticatorConfig"&amp;gt;	
  	
  	&amp;lt;require&amp;gt;org.nuxeo.ecm.platform.ui.web.auth.defaultConfig&amp;lt;/require&amp;gt;
  
   &amp;lt;extension
      target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
      point="authenticators"&amp;gt;
      &amp;lt;authenticationPlugin 
      		name="MY_AUTH"
    		enabled="true"
    		class="com.my.MyAuthenticator"&amp;gt;
       &amp;lt;loginModulePlugin&amp;gt;MyLoginPlugin&amp;lt;/loginModulePlugin&amp;gt;
       &amp;lt;parameters&amp;gt;
       	 &amp;lt;parameter name="MyLoginURL"&amp;gt;http://www.my.com/&amp;lt;/parameter&amp;gt;
       	 &amp;lt;parameter name="MyAPIURL"&amp;gt;http://www.my.com/api/&amp;lt;/parameter&amp;gt;
       &amp;lt;/parameters&amp;gt;
      &amp;lt;/authenticationPlugin&amp;gt;
  &amp;lt;/extension&amp;gt;  	    
&amp;lt;/component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I was trying to place all the extension point information (login plugin and authentication chain) outside in the /config folder.  It would load my extension but not implement the authentication chain so I was still receiving some log messages about my authenticator initializing but it wasn't being used when going to nuxeo.  By just putting the authenticator contribution out there, it started working properly.&lt;/P&gt;
&lt;P&gt;Thanks for the help everyone, hopefully this helps someone in the future.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2013 21:58:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/custom-config-for-deploying-plugins/m-p/321941#M8942</guid>
      <dc:creator>cburch_</dc:creator>
      <dc:date>2013-07-30T21:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Custom config for deploying plugins</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/custom-config-for-deploying-plugins/m-p/321942#M8943</link>
      <description>&lt;P&gt;You can put your contribution files inside &lt;CODE&gt;nxserver/config&lt;/CODE&gt; with a name ending in &lt;CODE&gt;-config.xml&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2013 22:31:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/custom-config-for-deploying-plugins/m-p/321942#M8943</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2013-07-30T22:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom config for deploying plugins</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/custom-config-for-deploying-plugins/m-p/321943#M8944</link>
      <description>&lt;P&gt;Thanks for the quick response, I moved my contribution xml out into /config (with a -config.xml name).  It loads up my components because I can see the log messages from initialization but it doesn't seem to be using my Authentication chain (it doesn't call my authenticator).  Do you have an example of what should still go in my jar file or should I not just toss the entire xml file out?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2013 22:54:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/custom-config-for-deploying-plugins/m-p/321943#M8944</guid>
      <dc:creator>cburch_</dc:creator>
      <dc:date>2013-07-30T22:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Custom config for deploying plugins</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/custom-config-for-deploying-plugins/m-p/321944#M8945</link>
      <description>&lt;P&gt;These pages might help you to find the information you need. They have been very helpful resources for me.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://doc.nuxeo.com/display/NXDOC56/Customization+and+Development" target="test_blank"&gt;http://doc.nuxeo.com/display/NXDOC56/Customization+and+Development&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;or if you are using the Fast Track version&lt;/P&gt;
&lt;P&gt;&lt;A href="http://doc.nuxeo.com/display/NXDOC/Customization+and+Development" target="test_blank"&gt;http://doc.nuxeo.com/display/NXDOC/Customization+and+Development&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;as well as this page.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://doc.nuxeo.com/display/NXDOC56/How-to+contribute+a+simple+configuration+in+Nuxeo" target="test_blank"&gt;http://doc.nuxeo.com/display/NXDOC56/How-to+contribute+a+simple+configuration+in+Nuxeo&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2013 03:48:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/custom-config-for-deploying-plugins/m-p/321944#M8945</guid>
      <dc:creator>ben-Nabiy_Derus</dc:creator>
      <dc:date>2013-08-28T03:48:35Z</dc:date>
    </item>
  </channel>
</rss>

