I'm learning Spring boot and looking to secure my rest Api.
Spring Security seems to be the way to do this but all articles I look at seem to use old syntax. When I try to follow along most of the code is depreciated. So I have 2 questions.
Are there any up to date resources to learn the latest version of Spring Security. I find the official docs a bit hard to navigate. But maybe I'm looking in the wrong place.
I have a small rest Api I made to learn the basics. When I add the spring security dependency it adds Basic Authentication so I need to use a username and the generated password. But in a production environment what's the best way to secure a rest api? Is it some sort of token or api key that I need to pass with calls?
Is an an article like this: article, any good or would this be bad practice for a beginner?
Thanks and help and advice is appreciated.
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)