Open atereshkov opened 7 years ago
HI, I saw your project and its pretty impressing. I am new at Spring framework, and I am going to use it on my school project. But, i can't get the access token for admin via this command.
curl -X POST -vu clientapp:123456 http://localhost:8080/oauth/token -H "Accept: application/json" -d "password=spring&username=admin&grant_type=password&scope=read%20write&client_secret=123456&client_id=clientapp"
Can you tell me how at get the token and access as a user.
Thank you
@hitman3r44 what kind of error did you get? And have you checked this article?
Thanks for the reply, i read that article, after getting the token i can't retrieve the user info, it get null pointer error in userDto. I tried to login via webclient, in controller user model object as get as null. Can't understand is there any problem with authentication
http://www.baeldung.com/intro-to-project-lombok https://programmingmitra.blogspot.com.by/2017/01/Project-Lombok-The-Boilerplate-Code-Extractor.html