0

I have a react JS frontend and I would like to authenticate my users using the Spring Authorization Server, specifically via the authorization code flow where the react app gets an authorization code from the authorization server and then uses that code to get an access token, which can then be used to access various other resource servers.

The problem I'm having is that from all the examples I've seen so far, the authorization code flow requires a redirection to a spring boot form for users to enter their credentials.

I was wondering if there was a way to handle this mechanism behind the scenes whereby the user provides their username and password on the react app and the react app forwards this to a middleware backend that handles the back-and-forth with the authorization server. Or any other way, as long as it doesn't involve taking the user away from the react app.

Thanks.

Akin_Glen
  • 697
  • 1
  • 9
  • 31

0 Answers0