Comments (2)
I can do this. Need more info.
from rpcx-ui.
这个目标是做一个通用的授权中心。
在大型的公司/大型的微服务应用中, 处于安全和控制的考虑, 微服务并不是任何消费者都可以调用的,必须经过授权才能访问,这就需要一个授权服务器进行微服务的授权。
系统应该包括:
- 用户管理: 用户可以发布微服务,授权微服务以及申请微服务
- 服务
用户有三种角色:
- 超级管理员: 负责创建其他用户,管理授权服务器
- 服务发布者: 负责发布服务,下架自己的服务, 制定服务的授权策略, 批准授权,撤销授权等
- 服务消费者:申请服务的授权,申请撤销自己的授权
服务的授权策略:
- 基于IP 白名单的授权
- 基于token的授权(需要refresh)
流程
服务发布者 A
发布一个服务 ServiceA
--> 设定授权策略为 Token
-> A
在自己的微服务中需要验证客户端是否携带了 Token
--> 服务消费者 B
申请授权 --> A
给B
分配了一个 Token
--> B
在微服务客户端设置这个Token
from rpcx-ui.
Related Issues (11)
- can't fetch the metadata if another service has been added HOT 1
- suggest to support etcdV3 HOT 1
- 为什么一个地址出现了两次? HOT 7
- win10下编译不了,好多错误 HOT 1
- 操作 Service 时自动刷新后,筛选条件重置了
- 额,这玩意怎么用呢 HOT 1
- rpcx 不支持 etcd v3,注册的service显示不出来 HOT 3
- filename error HOT 1
- 使用etcd的问题 HOT 4
- roadmap discussion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpcx-ui.