You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Stephan, and thank you for the effort in this project.
How and what do I need to do to use Basic Authentication instead of the raw JSON username and password to request a token? I am unable to find any spring boot project/example that uses both Basic authentication and JWT to maximize security.
Thank you
The text was updated successfully, but these errors were encountered:
I would prefer to use formLogin over basic auth, since sending username&password in every request's header is not something we want to do in real world.
Here is a good guide on how to use formLogin: https://spring.io/guides/gs/securing-web/ in your app.
I wrote a small demo app (springboot-jwt-starter) that uses formLogin with JWT to help me understand springboot and JWT more, the front-end of the app is written in AngularJS.
Angular login post request:
$http({url: 'login',method: 'POST',data: $httpParamSerializerJQLike(self.credentials),headers: {'Content-Type': 'application/x-www-form-urlencoded'}}).then(function(res){// do something with the response object});
Hi Stephan, and thank you for the effort in this project.
How and what do I need to do to use Basic Authentication instead of the raw JSON username and password to request a token? I am unable to find any spring boot project/example that uses both Basic authentication and JWT to maximize security.
Thank you
The text was updated successfully, but these errors were encountered: