Pentaho more authentication providers












2














I need to develop two custom authentication providers able to handle 2 main use case:




  • login via username and password form authentication


  • authentication via token



I ve developed my CustomFormAuthProvider and CustomTokenAuthProvider.



Inside Pentaho appContext-spring-security.xml i have declared both providers beans with



providername=custom 


and consequently i have set the corresponding property (in security.properties) to "custom".



When i startup pentaho i can see that AccessManager object loads just one provider of the two... So it catches an error when i use one of the two authentication method.



Is there a way to load both providers in the provider list, the way that the access manager can load the correct one which supports the current token type?



Thanks










share|improve this question





























    2














    I need to develop two custom authentication providers able to handle 2 main use case:




    • login via username and password form authentication


    • authentication via token



    I ve developed my CustomFormAuthProvider and CustomTokenAuthProvider.



    Inside Pentaho appContext-spring-security.xml i have declared both providers beans with



    providername=custom 


    and consequently i have set the corresponding property (in security.properties) to "custom".



    When i startup pentaho i can see that AccessManager object loads just one provider of the two... So it catches an error when i use one of the two authentication method.



    Is there a way to load both providers in the provider list, the way that the access manager can load the correct one which supports the current token type?



    Thanks










    share|improve this question



























      2












      2








      2







      I need to develop two custom authentication providers able to handle 2 main use case:




      • login via username and password form authentication


      • authentication via token



      I ve developed my CustomFormAuthProvider and CustomTokenAuthProvider.



      Inside Pentaho appContext-spring-security.xml i have declared both providers beans with



      providername=custom 


      and consequently i have set the corresponding property (in security.properties) to "custom".



      When i startup pentaho i can see that AccessManager object loads just one provider of the two... So it catches an error when i use one of the two authentication method.



      Is there a way to load both providers in the provider list, the way that the access manager can load the correct one which supports the current token type?



      Thanks










      share|improve this question















      I need to develop two custom authentication providers able to handle 2 main use case:




      • login via username and password form authentication


      • authentication via token



      I ve developed my CustomFormAuthProvider and CustomTokenAuthProvider.



      Inside Pentaho appContext-spring-security.xml i have declared both providers beans with



      providername=custom 


      and consequently i have set the corresponding property (in security.properties) to "custom".



      When i startup pentaho i can see that AccessManager object loads just one provider of the two... So it catches an error when i use one of the two authentication method.



      Is there a way to load both providers in the provider list, the way that the access manager can load the correct one which supports the current token type?



      Thanks







      authentication pentaho provider






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 28 '16 at 8:30

























      asked Jan 28 '16 at 7:38









      Alex

      5421627




      5421627
























          1 Answer
          1






          active

          oldest

          votes


















          0














          this could be the answer



          https://help.pentaho.com/Documentation/5.4/0P0/150/010/080


          Editing the



          applicationcontext-spring-securit.xml


          it s possible to add more providers in the ProviderManager providers list like the code below



           <bean id="authenticationManager"class="org.springframework.security.providers.ProviderManager">
          <property name="providers">
          <list>
          <pen:bean class="org.springframework.security.providers.AuthenticationProvider">
          <pen:attributes>
          <pen:attr key="providerName" value="jackrabbit"/>
          </pen:attributes></pen:bean>
          <pen:bean class="org.springframework.security.providers.AuthenticationProvider">
          <pen:attributes> 
          <pen:attr key="providerName" value="webservice"/>
          </pen:attributes>
          </pen:bean>
          <ref local="anonymousAuthenticationProvider" />
          </list>
          </property>
          </bean>


          i will try it






          share|improve this answer























          • it works!......
            – Alex
            Jan 28 '16 at 10:50











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f35055420%2fpentaho-more-authentication-providers%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          this could be the answer



          https://help.pentaho.com/Documentation/5.4/0P0/150/010/080


          Editing the



          applicationcontext-spring-securit.xml


          it s possible to add more providers in the ProviderManager providers list like the code below



           <bean id="authenticationManager"class="org.springframework.security.providers.ProviderManager">
          <property name="providers">
          <list>
          <pen:bean class="org.springframework.security.providers.AuthenticationProvider">
          <pen:attributes>
          <pen:attr key="providerName" value="jackrabbit"/>
          </pen:attributes></pen:bean>
          <pen:bean class="org.springframework.security.providers.AuthenticationProvider">
          <pen:attributes> 
          <pen:attr key="providerName" value="webservice"/>
          </pen:attributes>
          </pen:bean>
          <ref local="anonymousAuthenticationProvider" />
          </list>
          </property>
          </bean>


          i will try it






          share|improve this answer























          • it works!......
            – Alex
            Jan 28 '16 at 10:50
















          0














          this could be the answer



          https://help.pentaho.com/Documentation/5.4/0P0/150/010/080


          Editing the



          applicationcontext-spring-securit.xml


          it s possible to add more providers in the ProviderManager providers list like the code below



           <bean id="authenticationManager"class="org.springframework.security.providers.ProviderManager">
          <property name="providers">
          <list>
          <pen:bean class="org.springframework.security.providers.AuthenticationProvider">
          <pen:attributes>
          <pen:attr key="providerName" value="jackrabbit"/>
          </pen:attributes></pen:bean>
          <pen:bean class="org.springframework.security.providers.AuthenticationProvider">
          <pen:attributes> 
          <pen:attr key="providerName" value="webservice"/>
          </pen:attributes>
          </pen:bean>
          <ref local="anonymousAuthenticationProvider" />
          </list>
          </property>
          </bean>


          i will try it






          share|improve this answer























          • it works!......
            – Alex
            Jan 28 '16 at 10:50














          0












          0








          0






          this could be the answer



          https://help.pentaho.com/Documentation/5.4/0P0/150/010/080


          Editing the



          applicationcontext-spring-securit.xml


          it s possible to add more providers in the ProviderManager providers list like the code below



           <bean id="authenticationManager"class="org.springframework.security.providers.ProviderManager">
          <property name="providers">
          <list>
          <pen:bean class="org.springframework.security.providers.AuthenticationProvider">
          <pen:attributes>
          <pen:attr key="providerName" value="jackrabbit"/>
          </pen:attributes></pen:bean>
          <pen:bean class="org.springframework.security.providers.AuthenticationProvider">
          <pen:attributes> 
          <pen:attr key="providerName" value="webservice"/>
          </pen:attributes>
          </pen:bean>
          <ref local="anonymousAuthenticationProvider" />
          </list>
          </property>
          </bean>


          i will try it






          share|improve this answer














          this could be the answer



          https://help.pentaho.com/Documentation/5.4/0P0/150/010/080


          Editing the



          applicationcontext-spring-securit.xml


          it s possible to add more providers in the ProviderManager providers list like the code below



           <bean id="authenticationManager"class="org.springframework.security.providers.ProviderManager">
          <property name="providers">
          <list>
          <pen:bean class="org.springframework.security.providers.AuthenticationProvider">
          <pen:attributes>
          <pen:attr key="providerName" value="jackrabbit"/>
          </pen:attributes></pen:bean>
          <pen:bean class="org.springframework.security.providers.AuthenticationProvider">
          <pen:attributes> 
          <pen:attr key="providerName" value="webservice"/>
          </pen:attributes>
          </pen:bean>
          <ref local="anonymousAuthenticationProvider" />
          </list>
          </property>
          </bean>


          i will try it







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 30 '16 at 18:47

























          answered Jan 28 '16 at 9:36









          Alex

          5421627




          5421627












          • it works!......
            – Alex
            Jan 28 '16 at 10:50


















          • it works!......
            – Alex
            Jan 28 '16 at 10:50
















          it works!......
          – Alex
          Jan 28 '16 at 10:50




          it works!......
          – Alex
          Jan 28 '16 at 10:50


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f35055420%2fpentaho-more-authentication-providers%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Monofisismo

          Angular Downloading a file using contenturl with Basic Authentication

          Olmecas