资源简介

完整项目在https://download.csdn.net/download/u010588262/10327539 这个资源是新增功能之后的main文件夹 对应博客系列:https://blog.csdn.net/u010588262/article/category/7548325 对应博客这篇:https://blog.csdn.net/u010588262/article/details/80014083

资源截图

代码片段和文件信息

package com.hugeo.cas;

import org.apereo.cas.authentication.AuthenticationEventExecutionPlan;
import org.apereo.cas.authentication.AuthenticationEventExecutionPlanConfigurer;
import org.apereo.cas.authentication.AuthenticationHandler;
import org.apereo.cas.authentication.principal.DefaultPrincipalFactory;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.services.ServicesManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration(“CustomAuthConfig“)
@EnableConfigurationProperties(CasConfigurationProperties.class)
public class CustomAuthConfig implements AuthenticationEventExecutionPlanConfigurer{

    @Autowired
    private CasConfigurationProperties casProperties;

    @Autowired
    @Qualifier(“servicesManager“)
    private ServicesManager servicesManager;

    @Bean
    public AuthenticationHandler myAuthenticationHandler() {
        final Login handler = new Login(Login.class.getSimpleName() servicesManager new DefaultPrincipalFactory() 10);
        return handler;
    }

    @Override
    public void configureAuthenticationExecutionPlan(AuthenticationEventExecutionPlan plan) {
        plan.registerAuthenticationHandler(myAuthenticationHandler());
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-03-27 13:02  java\
     目录           0  2018-03-27 13:02  java\com\
     目录           0  2018-03-27 13:02  java\com\hugeo\
     目录           0  2018-04-22 11:37  java\com\hugeo\cas\
     目录           0  2018-04-22 10:59  java\com\hugeo\cas\capcha\
     文件        5101  2018-04-22 10:28  java\com\hugeo\cas\capcha\Capcha.java
     文件        1853  2018-04-22 10:51  java\com\hugeo\cas\capcha\HugeoWebflowConfiguration.java
     文件        1983  2018-04-22 10:57  java\com\hugeo\cas\capcha\HugeoWebflowConfigurer.java
     文件         788  2018-04-22 10:59  java\com\hugeo\cas\capcha\UsernamePasswordCaptchaCredential.java
     文件        1540  2018-04-20 08:17  java\com\hugeo\cas\CustomAuthConfig.java
     文件        3236  2018-04-22 11:37  java\com\hugeo\cas\Login.java
     文件        1133  2018-04-22 10:28  java\com\hugeo\cas\RegController.java
     文件         233  2018-04-20 08:17  java\com\hugeo\cas\SpringConfig.java
     目录           0  2018-04-22 10:58  resources\
     文件        3159  2018-04-20 15:52  resources\application.properties
     文件         105  2018-04-20 17:12  resources\hugeo.properties
     目录           0  2018-04-22 10:18  resources\meta-INF\
     文件         179  2018-04-22 10:18  resources\meta-INF\spring.factories
     目录           0  2018-04-20 09:06  resources\services\
     文件         250  2018-03-27 13:08  resources\services\Apereo-10000002.json
     文件         283  2018-04-03 16:27  resources\services\Client1-10000004.json
     文件         300  2018-03-27 13:08  resources\services\HTTPSandIMAPS-10000001.json
     文件         296  2018-04-20 09:06  resources\services\Localhost-10000003.json
     目录           0  2018-04-20 09:14  resources\static\
     目录           0  2018-04-20 15:49  resources\static\themes\
     目录           0  2018-04-20 17:05  resources\static\themes\hugeo\
     目录           0  2018-04-20 17:08  resources\static\themes\hugeo\css\
     文件          28  2018-04-20 17:08  resources\static\themes\hugeo\css\cas.css
     目录           0  2018-04-20 17:08  resources\static\themes\hugeo\js\
     文件          15  2018-04-20 17:08  resources\static\themes\hugeo\js\cas.js
     目录           0  2018-04-20 17:17  resources\templates\
............此处省略3个文件信息

评论

共有 条评论