Hi bro, do you think you can do some tutorials explaining how to work with Spring boot and react, specifically authentication and authorisation, the routing in react etc. It makes me all confused because both front and back end are served on different ports so how do you do that
@javadevjournal3 жыл бұрын
That is in the pipeline :)
@pt_trainer92443 жыл бұрын
@@javadevjournal Thanks, I'm trying to build my first Web app with this stack but there's very little tutorials that cover what I need
@bluex2172 жыл бұрын
@@pt_trainer9244 Did you ever get it? From a high level if you're using basic authentication you will need to send from node/JS -> Spring Boot an HTTP request with "Basic username:password" For example, in NODE/JS frontend, if using AXIOS library for HTTP calls, do: const resp = await axios.post("authenticated/endpoint", { auth: { username: 'username_here', password: 'password_here' }}); From here, Spring boot app will be able to authenticate identically to how it authenticates when sending a postman request. For JWT would be similar
@pt_trainer92442 жыл бұрын
@@bluex217 Hey, yes i managed to get it working with JWT, thanks btw.
@chrispure74612 жыл бұрын
How to secure with multiple Oauth2 auth servers/ providers? example keycloak and some other Oauth2 provider , any example app or refrence?
@javadevjournal2 жыл бұрын
Still not very clear about your question but if you are looking for using multiple OAuth provider based on the URL, I think all you need is "separate authentication filter"
@ah_ay_ Жыл бұрын
@@javadevjournal What do you mean by based on the URL ? From my side, I need to use Google, Facebook and JWT authentication for example
@vudumshiva41622 жыл бұрын
i have two userdetailservices employees and students, i configured two userdetails with DaoAuthenticationProvider. when i try to login with /employee/signIn or /student/singin it is checking in both userdetailservices. But i need to use respective userdetails. How to configure that bro?
@vudumshiva41622 жыл бұрын
In this case should maintain customerAuthenticationproviders like EmployyeAuthPrvder,StudentAuthPvd and apply provider on authrequest path
@javadevjournal2 жыл бұрын
I think what you are looking for is the multiple user details services for different endpoints. You can configure different user details services using this option.
@vudumshiva41622 жыл бұрын
this is how i did , two providers supports UsernamePasswordAuthenticationToken, catalogprovider has configured with cataloguserdetails and storeprovider has configured with storeuserdetails, how to choose authprovider based on endpoint?
@unmeshkadam48762 жыл бұрын
Sir can you please share your code, I am implementing same in my college project, but not able to go ahead? If not code can you please share some useful resources for same
@sush21422 жыл бұрын
What if I have only username? My password (OTP) is getting verified by third party.
@javadevjournal2 жыл бұрын
In this case, you need authorization and not authentication. Are you referring to something as SAML or something similar?