简体   繁体   English

我们可以使用springboot对nodejs应用程序进行身份验证吗?

[英]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应用程序。

Here is a good place to start. 这里是一个很好的地方开始。

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

相关问题 弹簧启动; 我们可以在 Java 枚举中使用 @Value - SpringBoot; Can we use @Value in Java Enums 无法从 springboot 应用程序验证 mongodb - Unable to authenticate mongodb from springboot application 我们可以在 Springboot optaplanner 中使用多个 @PlanningSolution 类和多个 SolverManager - can we use multiple @PlanningSolution classes and multiple SolverManager in Springboot optaplanner 使用基本身份验证针对另一个应用程序对Springboot应用程序进行身份验证 - Authenticate a Springboot Application against another application using Basic Auth 无法在 SpringBoot 应用程序上使用 log4j - Can't use log4j on SpringBoot application 如何使用Wordpress在Spring Web应用程序中对用户进行身份验证? - How can I use Wordpress to authenticate a user in a spring web application? 如何在我们使用 springboot 的 Rest API 应用程序中将域或 IP 地址列入白名单? - How can I whitelist Domain or IP address in a Rest API application in which we are using springboot? 使用springboot optaplanner-spring-boot-starter时如何使用多个ConstraintProvider - How can we use multiple ConstraintProviders, when using the springboot optaplanner-spring-boot-starter 无法运行SpringBoot应用程序 - Can't run SpringBoot Application SpringBoot和Spring Security无法验证 - SpringBoot and Spring Security not authenticate
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM