Hello, I have a question, I need to add a Java class to cas version 4.0.1 
project, I add a "java" folder inside the "main" folder, also I added a 
class within the "java" folder.
That class must extend and that method should I use to receive the 
credentials (username and password)? I need to add logic to my class to 
determine the source of search user ( in table or only in database schema)
then this class created injected into the next bean, my class  created is 
ValidatorCas and id is dbAuthHandler
Sorry, my english is little


    <bean id="authenticationManager" 
class="org.jasig.cas.authentication.PolicyBasedAuthenticationManager">
        <constructor-arg>
            <map>
                <entry key-ref="proxyAuthenticationHandler" 
value-ref="proxyPrincipalResolver" />
               <!-- <entry key-ref="primaryAuthenticationHandler" 
value-ref="primaryPrincipalResolver" />-->
               <entry key-ref="dbAuthHandler" 
value-ref="primaryPrincipalResolver"/>
            </map>
        </constructor-arg>

        <property name="authenticationPolicy">
            <bean 
class="org.jasig.cas.authentication.AnyAuthenticationPolicy" />
        </property>
    </bean>

     <bean id="dbAuthHandler" class="pe.prj.valid.ValidatorCas"/>

    <bean id="proxyAuthenticationHandler"
          
class="org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler"
          p:httpClient-ref="httpClient" />

    <bean id="primaryPrincipalResolver"
          
class="org.jasig.cas.authentication.principal.PersonDirectoryPrincipalResolver" 
>
        <property name="attributeRepository" ref="attributeRepository" />
    </bean>


Thanks

-- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/2386fc6e-b9ec-401f-9194-34ba7f4c8136%40apereo.org.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to