atereshkov / Diber-backend

Delivery Service - Spring Boot / Spring Data Jpa / Hibernate / PostgreSQL / OAuth2 Application
Apache License 2.0
25 stars 11 forks source link

Lombok annotations #30

Open atereshkov opened 7 years ago

atereshkov commented 7 years ago

http://www.baeldung.com/intro-to-project-lombok https://programmingmitra.blogspot.com.by/2017/01/Project-Lombok-The-Boilerplate-Code-Extractor.html

hitman3r44 commented 5 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

atereshkov commented 5 years ago

@hitman3r44 what kind of error did you get? And have you checked this article?

hitman3r44 commented 5 years ago

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