peweet / demo_app_pglynn_v.01

my first sample app
0 stars 0 forks source link

Create sign up controller #38

Open peweet opened 4 years ago

peweet commented 4 years ago

https://auth0.com/blog/implementing-jwt-authentication-on-spring-boot/

I used this article to create by sign up logic.

peweet commented 4 years ago

https://github.com/nydiarra/springboot-jwt/blob/master/src/main/java/com/nouhoun/springboot/jwt/integration/service/impl/GenericServiceImpl.java

Use as reference for jwt

peweet commented 4 years ago

https://dev.to/keysh/spring-security-with-jwt-3j76

peweet commented 3 years ago

https://www.freecodecamp.org/news/how-to-setup-jwt-authorization-and-authentication-in-spring/

peweet commented 3 years ago

build failure:

https://stackoverflow.com/questions/48192406/method-in-class-authenticationmanagerbuildier-cannot-be-applied-to-given-type

Error:(49, 12) java: method userDetailsService in class org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder cannot be applied to given types; required: T found: com.app.project_pglynn.v01.demo.services.implementation.UserServiceImplementation reason: inference variable T has incompatible bounds lower bounds: org.springframework.security.core.userdetails.UserDetailsService lower bounds: com.app.project_pglynn.v01.demo.services.implementation.UserServiceImplementation

peweet commented 3 years ago

Issue was I had to use UserDetailsService as defined in Spring: org.springframework.security.core.userdetails.UserDetailsService;

I will need to refactor a lot of my interfaces..