CAS服务器搭建5.2.6-demo2

CAS服务器搭建5.2:

1.修改host

127.0.0.1 www.server.com

127.0.0.1 www.client1.com

2.下载cas源码

https://github.com/apereo/cas-overlay-template
CAS服务器搭建5.2.6-demo2_第1张图片

CAS服务器搭建5.2.6-demo2_第2张图片

下载:cas-server-webapp-tomcat-5.2.6.war

https://mvnrepository.com/artifact/org.apereo.cas/cas-server-webapp-tomcat/5.2.6 注意版本冲突 

CAS服务器搭建5.2.6-demo2_第3张图片

将其放在本地仓库中。

 CAS服务器搭建5.2.6-demo2_第4张图片

修改cas默认的https安全认证。将其修改成http

 1.在生成的目录中(target\cas\WEB-INF\classes)复制两个文件

CAS服务器搭建5.2.6-demo2_第5张图片

2新建cas服务器项目:将其放置到项目中。

CAS服务器搭建5.2.6-demo2_第6张图片

pom:



    4.0.0
    com.cas
    cas-server
    0.0.1-SNAPSHOT
    war
    
        
            
                org.springframework.boot
                spring-boot-maven-plugin
                ${springboot.version}
                
                    org.springframework.boot.loader.WarLauncher
                    true
                
            
            
                org.apache.maven.plugins
                maven-war-plugin
                2.6
                
                    cas
                    false
                    false
                    
                        false
                        ${project.build.directory}/war/work/org.apereo.cas/cas-server-webapp${app.server}/META-INF/MANIFEST.MF
                        
                    
                    
                        
                            org.apereo.cas
                            cas-server-webapp${app.server}
                        
                    
                
            
            
                org.apache.maven.plugins
                maven-compiler-plugin
                3.3
            
        
        cas
    

    
        
            org.apereo.cas
            cas-server-webapp${app.server}
            ${cas.version}
            war
            runtime
        
        
            org.apereo.cas
            cas-server-support-jdbc
            ${cas.version}
        
        
            org.apereo.cas
            cas-server-support-jdbc-drivers
            ${cas.version}
        
        
            org.apereo.cas
            cas-server-support-actions
            ${cas.version}
        

        
            mysql
            mysql-connector-java
            6.0.6
        
        
            org.apache.shiro
            shiro-core
            1.4.0
        
        
            junit
            junit
            4.12
            compile
        
        
        
        
            org.springframework.security
            spring-security-core
            4.2.5.RELEASE
        

        
            org.apereo.cas
            cas-server-core-webflow
            ${cas.version}
        
        
            org.apereo.cas
            cas-server-core-api-services
            ${cas.version}
        
         
            org.apereo.cas
            cas-server-support-actions
            ${cas.version}
        

        
            org.apereo.cas
            cas-server-core-authentication
            ${cas.version}
        

        
            org.apereo.cas
            cas-server-core-configuration
            ${cas.version}
        

         
            org.apereo.cas
            cas-server-core-web
            ${cas.version}
        
        
            org.apereo.cas
            cas-server-core-services-api
            ${cas.version}
        
        
            org.apereo.cas
            cas-server-support-themes
            ${cas.version}
        

        
            org.apereo.cas
            cas-server-support-pm
            ${cas.version}
        
        
            org.apereo.cas
            cas-server-support-actions
            ${cas.version}
        
        
        
            org.apereo.cas
            cas-server-webapp-config
            ${cas.version}
            provided
        
        
            org.apereo.cas
            cas-server-support-validation
            ${cas.version}
        
        
            org.apache.commons
            commons-dbcp2
            2.3.0
        
        
            javax.servlet
            javax.servlet-api
            provided
            3.1.0
        


       
            org.apache.commons
            commons-jexl
            2.1.1
        




    

    
        5.2.6
        2.0.0.RELEASE
        
        -tomcat
        1.8
        1.8
        UTF-8
    

    
        
            sonatype-releases
            http://oss.sonatype.org/content/repositories/releases/
            
                false
            
            
                true
            
        
        
            sonatype-snapshots
            https://oss.sonatype.org/content/repositories/snapshots/
            
                true
            
            
                false
            
        
        
            shibboleth-releases
            https://build.shibboleth.net/nexus/content/repositories/releases
        
        
            spring-milestones
            https://repo.spring.io/milestone
        
    

启动:

CAS服务器搭建5.2.6-demo2_第7张图片

CAS服务器搭建5.2.6-demo2_第8张图片

默认密码:properties中

CAS服务器搭建5.2.6-demo2_第9张图片

你可能感兴趣的:(单点登陆,单点登陆)