Skip to content

chengchao103/api-gateway

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation



================================================================================
服务网关
功能:
    1、服务授权
    2、服务限流
    3、服务注册与发现

参考资料:
    1、oauth2简介
        http://www.ruanyifeng.com/blog/2014/05/oauth_2_0.html
    2、Spring Cloud Security OAuth2搭建授权服务
        code模式 http://blog.csdn.net/neosmith/article/details/52539927
        password模式  https://github.com/pzxwhc/MineKnowContainer
    3、Spring Cloud Security OAuth2核心类分析
            http://www.tuicool.com/articles/ZJzYjqN
    4、完整实现的一个Demo
        https://github.com/tuanngda/spring-boot-oauth2-demo
    5、API 调用次数限制实现(令牌桶、redis)
        https://zhuanlan.zhihu.com/p/20872901

    6、Spring Cloud构建微服务架构(一)服务注册与发现
        http://blog.didispace.com/springcloud1/
    7、Spring Cloud构建微服务架构(五)服务网关(zuul路由、eureka服务发现)
        http://blog.didispace.com/springcloud5/

用户相关
    DaoAuthenticationProvider


疑问:
    resourceId?
    token_Type?
    mysql里设置token过期时间无效?





About

微服务的网关,包含oauth2授权、调用次数限制和服务路由

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%