简体   繁体   English

在带有jhipster的微服务中,当我使用UAA服务器时,用户实体位于UAA服务器或网关的数据库中吗?

[英]In microservices with jhipster, when i use UAA Server, the user entity is in the database of UAA server or Gateway?

I'm reading about of UAA server, and have one doubt... If i have a project with microservices (MS), with: 我正在阅读有关UAA服务器的信息,并且有一个疑问...如果我有一个带有微服务(MS)的项目,请执行以下操作:

  • UAA server UAA服务器
  • MS type gateway (using UAA authentication) MS类型网关(使用UAA身份验证)
  • MS type application (using UAA authentication) MS类型的应用程序(使用UAA身份验证)

I understand that the UAA server , creates User entity in your own database (for example db_uaa), but my doubt is born when i think about the MS gateway . 我了解UAA服务器会在您自己的数据库(例如db_uaa)中创建用户实体 ,但是当我想到MS网关时,我的疑问就产生了。

The MS gateway too creates another User entity in your own database (db_gateway) or the MS gateway no creates User entity in your database (db_gateway), because it uses the UAA authentication. MS网关也会在您自己的数据库(db_gateway)中创建另一个用户实体 ,或者MS网关也不会在您的数据库(db_gateway)中创建用户实体 ,因为它使用UAA身份验证。

I hope you can help me to clarify this doubt, thanks. 希望您能帮助我澄清这个疑问,谢谢。

Users are stored on UAA side only. 用户仅存储在UAA端。

The Gateway which supports the client side (ie, authentication and user-management) will access to users through some exposed UAA services. 支持客户端(即身份验证和用户管理)的网关将通过一些公开的UAA服务访问用户。

If you need to access to the user entity from another microservice, look at the @Feign concept. 如果需要从另一个微服务访问用户实体,请查看@Feign概念。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将“MicroService Gateway”与“UAA Server”连接到Jhipster 3.5.0 - Connect “MicroService Gateway” with “UAA Server” Jhipster 3.5.0 JHipster:如何使用未经身份验证的用户从UAA服务器对微服务进行安全调用 - JHipster: How to make secure calls to microservices from UAA server with unauthenticated user 我可以在远程服务器 (Docker) 中使用共享的 jhipster-registry 和 uaa 并且开发人员将其作为服务连接到它吗? - Can I use a shared jhipster-registry and uaa in a remote server (Docker) and developers connect to it as a service? 无法使用 Curl 连接到 JHipster UAA 服务器 - Can't connect to JHipster UAA server using Curl jhipster微服务在docker和本地混合运行。 网关无法访问UAA - jhipster microservices running mixed in docker and locally. Gateway cannot access UAA JHipster UAA是否已启用以建立用户联盟 - Is JHipster UAA enable to make user federation 网关和JHipster UAA应该与Jhipster注册连接吗? - Gateway and JHipster UAA should connect with Jhipster-register? Jhipster UAA外部客户 - Jhipster UAA External Client Jhipster 注册管理 + UAA - Jhipster registry adminstration + UAA 通过网关从 JHipster UAA 微服务获取错误详细信息 - Getting error details from JHipster UAA microservice through gateway
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM