简体   繁体   中英

Can we use springboot to authenticate for a nodejs application?

Our application is built on NodeJS and I want to Authenticate/Authorize using Spring.

Is it possible to add spring service at start and redirect the authenticated users to NodeJs service?

SpringAuthentication <--> nodeJs <--> DB

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). This means the client is aware of the spring application API and not the NodeJs API application.

Here is a good place to start.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM