[英]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)的项目,请执行以下操作:
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.