[英]Can we use springboot to authenticate for a nodejs application?
Our application is built on NodeJS and I want to Authenticate/Authorize using Spring. 我们的应用程序基于NodeJS构建,我想使用Spring进行身份验证/授权。
Is it possible to add spring service at start and redirect the authenticated users to NodeJs service? 是否可以在启动时添加spring服务并将经过身份验证的用户重定向到NodeJs服务?
SpringAuthentication <--> nodeJs <--> DB SpringAuthentication <-> nodeJs <->数据库
Yes it is very much possible. 是的,这很有可能。
You should expose an API of the Spring Application as the entry point for the NodeJs application and upon being authenticated the request is directed downstream(here NodeJs). 您应该公开Spring Application的API作为NodeJs应用程序的入口点,并且在通过身份验证后,请求将定向到下游(这里是NodeJs)。 This means the client is aware of the spring application API and not the NodeJs API application.
这意味着客户端知道Spring应用程序API,而不是NodeJs API应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.