ServiceComb认证与鉴权(二)

2020-06-12  本文已影响0人  JW费心思

上一遍文章介绍了servicecomb中简单的一种接口认证方法,他是基于RSA证书来实现认证,如果需要个性化的认证,还需要尝试其他方案。


ServiceComb-fence

根据官网介绍,就是来处理接口的认证和鉴权

关于认证和鉴权时序图

authentication.png authorization.png

关于项目结构如下:

.
├── api
│   ├── authentication-server
│   │   ├── endpoint
│   │   │   ├── pom.xml
│   │   │   └── src
│   │   ├── pom.xml
│   │   └── service
│   │       ├── pom.xml
│   │       └── src
│   ├── common
│   │   ├── endpoint
│   │   │   ├── pom.xml
│   │   │   └── src
│   │   ├── pom.xml
│   │   └── service
│   │       ├── pom.xml
│   │       └── src
│   ├── edge-service
│   │   ├── endpoint
│   │   │   ├── pom.xml
│   │   │   └── src
│   │   ├── pom.xml
│   │   └── service
│   │       ├── pom.xml
│   │       └── src
│   ├── pom.xml
│   └── resource-server
│       ├── endpoint
│       │   ├── pom.xml
│       │   └── src
│       ├── pom.xml
│       └── service
│           └── pom.xml
├── authentication-server
│   ├── pom.xml
│   └── src
│       └── main
│           ├── java

启动的

上一篇 下一篇

猜你喜欢

热点阅读