<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 28,  comments - 13,  trackbacks - 0

    網(wǎng)站: JavaEye  作者: jacally  鏈接:http://lib.javaeye.com/blog/165980  發(fā)表時間: 2008年02月28日

    聲明:本文系JavaEye網(wǎng)站發(fā)布的原創(chuàng)博客文章,未經(jīng)作者書面許可,嚴(yán)禁任何網(wǎng)站轉(zhuǎn)載本文,否則必將追究法律責(zé)任!

    CAS 單點(diǎn)登錄安裝筆記3
    -- 與acegi集成

    在我的項(xiàng)目中應(yīng)用了acigi安全框架,以下是結(jié)合yale cas單點(diǎn)登錄系統(tǒng)進(jìn)行的相關(guān)配置
    <!-- =========  Acegi as a CAS Client的配置============= -->
    <bean id="authenticationProcessingFilter"
    class="org.acegisecurity.ui.cas.CasProcessingFilter">
    <property name="authenticationManager"
    ref="authenticationManager" />
    <property name="authenticationFailureUrl"
    value="/login.do?login_error=1" />
    <property name="defaultTargetUrl" value="/main.do" />
    <property name="filterProcessesUrl">
    <value>/j_acegi_cas_security_check</value>
    </property>
    <property name="rememberMeServices" ref="rememberMeServices" />
    <property name="exceptionMappings">
    <value>
    org.acegisecurity.AuthenticationServiceException=/login.do?login_error=user_not_found_error
    org.acegisecurity.BadCredentialsException=/login.do?login_error=user_psw_error
    org.acegisecurity.concurrent.ConcurrentLoginException=/login.do?login_error=too_many_user_error
    org.acegisecurity.DisabledException=/login.do?login_error=disabled_user_error
    </value>
    </property>
    </bean>
    <bean id="exceptionTranslationFilter" class="org.acegisecurity.ui.ExceptionTranslationFilter">
    <property name="authenticationEntryPoint">
    <ref local="casProcessingFilterEntryPoint"/>
    </property>
    <property name="accessDeniedHandler">
    <bean
    class="org.acegisecurity.ui.AccessDeniedHandlerImpl">
    <property name="errorPage"
    value="/errors/accessDenied.jsp" />
    </bean>
    </property>
    </bean>
    <!-- cas config -->
    <bean id="casProcessingFilterEntryPoint" class="org.acegisecurity.ui.cas.CasProcessingFilterEntryPoint">
    <property name="loginUrl"><value>https://sso.gzps.net:8443/cas/login</value></property>
    <property name="serviceProperties"><ref local="serviceProperties"/></property>
    </bean>
    <bean id="authenticationManager" class="org.acegisecurity.providers.ProviderManager">
    <property name="providers">
    <list>
    <ref local="casAuthenticationProvider"/>
    </list>
    </property>
    </bean>
    <bean id="casAuthenticationProvider" class="org.acegisecurity.providers.cas.CasAuthenticationProvider">
    <property name="casAuthoritiesPopulator"><ref bean="casAuthoritiesPopulator"/></property>
    <property name="casProxyDecider"><ref local="casProxyDecider"/></property>
    <property name="ticketValidator"><ref local="casProxyTicketValidator"/></property>
    <property name="statelessTicketCache"><ref local="statelessTicketCache"/></property>
    <property name="key"><value>my_password_for_this_auth_provider_only</value></property>
    </bean>
    <bean id="casProxyTicketValidator" class="org.acegisecurity.providers.cas.ticketvalidator.CasProxyTicketValidator">
    <property name="casValidate"><value>https://sso.gzps.net:8443/cas/proxyValidate</value></property>
    <property name="serviceProperties"><ref local="serviceProperties"/></property>
    </bean>
    <!--
    <bean id="casProxyDecider" class="org.acegisecurity.providers.cas.proxy.AcceptAnyCasProxy" />
    -->
    <bean id="casProxyDecider" class="org.acegisecurity.providers.cas.proxy.RejectProxyTickets" />
    <bean id="serviceProperties" class="org.acegisecurity.ui.cas.ServiceProperties">
    <property name="service">
    <value>http://localhost:8080/aio/j_acegi_cas_security_check</value>
    </property>
    <property name="sendRenew">
    <value>false</value>
    </property>
    </bean>
    <bean id="statelessTicketCache" class="org.acegisecurity.providers.cas.cache.EhCacheBasedTicketCache">
    <property name="cache">
    <bean class="org.springframework.cache.ehcache.EhCacheFactoryBean">
    <property name="cacheManager">
    <bean class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"/>
    </property>
    <property name="cacheName" value="userCache"/>
    </bean>
    </property>
    </bean>
    <bean id="casAuthoritiesPopulator" class="org.acegisecurity.providers.cas.populator.DaoCasAuthoritiesPopulator">
    <property name="userDetailsService"><ref local="userDetailsService"/></property>
    </bean>

    <bean id="casProcessingFilter" class="org.acegisecurity.ui.cas.CasProcessingFilter">
    <property name="authenticationManager"><ref local="authenticationManager"/></property>
    <property name="authenticationFailureUrl"><value>/casfailed.jsp</value></property>
    <property name="defaultTargetUrl"><value>/</value></property>
    <property name="filterProcessesUrl"><value>/j_acegi_cas_security_check</value></property>
    </bean>


    <!-- ======================================================= -->


    本文的討論也很精彩,瀏覽討論>>


    JavaEye推薦
    中國領(lǐng)先的電子商務(wù)網(wǎng)站-淘寶網(wǎng)招賢納士,誠聘Java工程師



    文章來源:http://lib.javaeye.com/blog/165980
    posted on 2008-02-28 23:39 Lib 閱讀(924) 評論(0)  編輯  收藏 所屬分類: 服務(wù)配置 、Java
    <2025年5月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567



    我的JavaEye博客
    http://lib.javaeye.com


    常用鏈接

    留言簿(2)

    隨筆分類

    文章分類

    FLASH

    Java

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 国产成人精品日本亚洲语音 | 乱淫片免费影院观看| 最好2018中文免费视频| 四虎国产精品永久免费网址| 成年丰满熟妇午夜免费视频| 亚洲愉拍99热成人精品热久久| 鲁啊鲁在线视频免费播放| 国产成人高清精品免费鸭子| 自拍偷自拍亚洲精品播放| 国产禁女女网站免费看| 精品久久久久久亚洲中文字幕| 免费夜色污私人影院在线观看| 亚洲理论片在线中文字幕| 100部毛片免费全部播放完整| 亚洲精品资源在线| 免费AA片少妇人AA片直播| 中文字幕不卡亚洲| 色窝窝亚洲AV网在线观看| 免费一级特黄特色大片在线观看 | 亚洲天堂中文字幕在线| 2022免费国产精品福利在线| 亚洲啪啪AV无码片| **俄罗斯毛片免费| 亚洲中文字幕无码亚洲成A人片| 国产精品极品美女免费观看| 五级黄18以上免费看| 亚洲av无码一区二区三区网站| 黄色免费网址大全| 亚洲女同成av人片在线观看| 蜜桃视频在线观看免费视频网站WWW| 亚洲AV无码专区在线亚| 亚洲国产成人精品女人久久久 | 免费看一区二区三区四区| 亚洲精品无码AV中文字幕电影网站| 一本色道久久88—综合亚洲精品 | 色偷偷尼玛图亚洲综合| 成全视频免费高清| 高清免费久久午夜精品 | 国产人成亚洲第一网站在线播放| 免费v片在线观看无遮挡| 毛片在线全部免费观看|