Nginx单点登录- auth_request模块



我希望实现的流程

         Requests with                                                      
Client +------------------------>Nginx                                      
         Access token set          +                                        
                                   |                                        
                                   +------>auth_request to microservice     
                                           which **somehow** returns user id
                                             +                              
                                             |                              
                                             |                              
                                             |                              
         Request forwarded to       <--------+                              
         main microservice which                                            
         can access user id                                                 
         and has nothing to do with                                         
         access token                                                       

我该如何执行这样一个微服务架构?主要的是我想把数据从一个微服务传递到另一个微服务,而不允许访问第二个微服务,如果

几天前我对一个集群有同样的需求。我解决了这个问题,创建了一个与nginx auth_request模块兼容的认证服务器。它对我的LDAP进行身份验证,并通过TOTP和Google Authenticator应用程序实现双因素验证,例如,

最新更新