Git Product home page Git Product logo

Comments (3)

yangxiufeng666 avatar yangxiufeng666 commented on July 26, 2024

@Terrency 是的,这样可以细粒度的控制每个用户能够访问的接口,而不是单纯菜单显示与否的问题。

from micro-service-skeleton.

Terrency avatar Terrency commented on July 26, 2024

@Terrency 是的,这样可以细粒度的控制每个用户能够访问的接口,而不是单纯菜单显示与否的问题。

谢谢回复。
明白了,我描述一下我理解的结果,您帮我看下是不是跟您的想法有出入,微服务的权限控制应该包括两种实现方式:
第一种是gateway上筛选控制每个业务微服务的的权限,在业务微服务中不做权限限制,通讯仅仅是gateway和oauth通讯,(或者是oauth直接集成到gateway中)这样带来的问题是oauth获取的用户鉴权列表需要跟业务微服务同步,微服务之间的调用越权应该无法控制;
第二种是gateway中做授权控制,在单独的微服务中做鉴权控制,每个微服务作为client端登录到oauth实现单点登录,可以在接口、服务上对用户请求的接口数据做鉴权操作,从配置上应该比第一种颗粒度细致,带来的问题我暂时还没想到。
不知道我的描述是不是清晰,期待您的答复

from micro-service-skeleton.

yangxiufeng666 avatar yangxiufeng666 commented on July 26, 2024

@Terrency 是这样的!目前采用的是你的第一种表述,第二种稍微改造一下也就能够实现

from micro-service-skeleton.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.