[jboss-user] [JBoss Seam] - cannot make authenticator work

laxu do-not-reply at jboss.com
Fri Mar 16 13:53:48 EDT 2007


Hi,
Trying seam security features. Just like the example from manual I have added the authenticator class into components.xml
Here is my components.xml:
<?xml version="1.0" encoding="UTF-8"?>
  | 
  | <components xmlns="http://jboss.com/products/seam/components"
  |             xmlns:core="http://jboss.com/products/seam/core"
  |             xmlns:security="http://jboss.com/products/seam/security"
  |             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |             xsi:schemaLocation="
  |             http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.1.xsd 
  |             http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.1.xsd
  |             http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.1.xsd
  | ">
  |     
  |     <core:init jndi-pattern="java:comp/env/gop-ejb/#{ejbName}/local" debug="true"/>
  |     
  |     <core:manager conversation-timeout="120000" 
  |                   concurrent-request-timeout="500"
  |                   conversation-id-parameter="cid"
  |                   conversation-is-long-running-parameter="clr"/>
  |     
  |     <core:transactionListener/>
  |     
  |     <core:ejb installed="@embeddedEjb@"/>
  |     
  |     <security:identity authenticate-method="#{otantikamator.otantikmi}"/>
  |     
  |     
  | </components>
I have a stateless bean Otantikamator @named as "otantikamator" having a method "otantikmi".
However, it does not get called. Regardless of what I write as the "authenticate-method" in "components.xml", it does not fire any exception or something but call some standard authenticator (I imagine) and a "Login failed" is messaged.

Best regards


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028911#4028911

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028911



More information about the jboss-user mailing list