• 大小: 44KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-11
  • 语言: 其他
  • 标签: Spring  Cloud  OAuth2  SSO  

资源简介

Spring Cloud 安全:集成OAuth2实现身份认证和单点登录 示例代码

资源截图

代码片段和文件信息

package com.peterwanghao.spring.cloud.oauth.authclient;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

import com.peterwanghao.spring.cloud.oauth.authclient.filters.SimpleFilter;

/**   
 * @ClassName:  Application
 * @Description:TODO(这里用一句话描述这个类的作用)
 * @author: wanghao
 * @date:   2018年7月19日 下午3:21:27
 * @version V1.0
 * 
 */
@SpringBootApplication
public class AuthClient {
public static void main(String[] args) {
        SpringApplication.run(AuthClient.class args);
    }    
    
    @Bean
    public SimpleFilter simpleFilter() {
      return new SimpleFilter();
    } 
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\
     文件        2187  2018-07-20 15:46  spring-cloud-examples-master\pom.xml
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\
     文件        2955  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\pom.xml
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\main\
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\main\java\
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\main\java\com\
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\main\java\com\peterwanghao\
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\main\java\com\peterwanghao\spring\
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\main\java\com\peterwanghao\spring\cloud\
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\main\java\com\peterwanghao\spring\cloud\oauth\
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\main\java\com\peterwanghao\spring\cloud\oauth\authclient\
     文件         776  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\main\java\com\peterwanghao\spring\cloud\oauth\authclient\AuthClient.java
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\main\java\com\peterwanghao\spring\cloud\oauth\authclient\config\
     文件        2036  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\main\java\com\peterwanghao\spring\cloud\oauth\authclient\config\SiteSecurityConfigurer.java
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\main\java\com\peterwanghao\spring\cloud\oauth\authclient\controller\
     文件        1199  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\main\java\com\peterwanghao\spring\cloud\oauth\authclient\controller\CloudSiteController.java
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\main\java\com\peterwanghao\spring\cloud\oauth\authclient\filters\
     文件        1142  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\main\java\com\peterwanghao\spring\cloud\oauth\authclient\filters\SimpleFilter.java
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\main\resources\
     文件           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\main\resources\application.properties
     文件        1069  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\main\resources\application.yml
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\main\resources\templates\
     文件         299  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client\src\main\resources\templates\personinfo.html
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client2\
     文件        2965  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client2\pom.xml
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client2\src\
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client2\src\main\
     目录           0  2018-07-20 07:36  spring-cloud-examples-master\spring-cloud-oauth\auth-client2\src\main\java\
............此处省略62个文件信息

评论

共有 条评论