Tomás
JCHJava Community | Help. Code. Learn.
•Created by Tomás on 1/26/2025 in #java-help
authenticationManager threw StackOverFlow
44 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomás on 1/26/2025 in #java-help
authenticationManager threw StackOverFlow
i dont have any erros anymore when i try to login
44 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomás on 1/26/2025 in #java-help
authenticationManager threw StackOverFlow
User details service class is provided by spring
44 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomás on 1/26/2025 in #java-help
authenticationManager threw StackOverFlow
**
APPLICATION FAILED TO START
**
Description:
Field userDetailsService in ecomerce.api.infra.security.SecurityConfigurations required a bean of type 'org.springframework.security.core.userdetails.UserDetailsService' that could not be found.
Action:
Consider defining a bean of type 'org.springframework.security.core.userdetails.UserDetailsService' in your configuration.
44 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomás on 1/26/2025 in #java-help
authenticationManager threw StackOverFlow
no
44 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomás on 1/26/2025 in #java-help
authenticationManager threw StackOverFlow
the register end point works
44 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomás on 1/26/2025 in #java-help
authenticationManager threw StackOverFlow
44 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomás on 1/26/2025 in #java-help
authenticationManager threw StackOverFlow
yes
44 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomás on 1/26/2025 in #java-help
authenticationManager threw StackOverFlow
yeah, same
44 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomás on 1/26/2025 in #java-help
authenticationManager threw StackOverFlow
private static AuthenticationManager authenticationManager;
44 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomás on 1/26/2025 in #java-help
authenticationManager threw StackOverFlow
same error
44 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomás on 1/26/2025 in #java-help
authenticationManager threw StackOverFlow
ok
44 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomás on 1/26/2025 in #java-help
authenticationManager threw StackOverFlow
44 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomás on 1/26/2025 in #java-help
authenticationManager threw StackOverFlow
It's from import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
44 replies
JCHJava Community | Help. Code. Learn.
•Created by Tomás on 1/26/2025 in #java-help
authenticationManager threw StackOverFlow
the imports package ecomerce.api.controllers;
import ecomerce.api.domain.DTOs.AuthDTO;
import ecomerce.api.domain.DTOs.LoginResponseDTO;
import ecomerce.api.domain.DTOs.RegisterDTO;
import ecomerce.api.domain.User;
import ecomerce.api.infra.security.TokenService;
import ecomerce.api.repositories.UserRepository;
import jakarta.validation.Valid;
import org.springframework.http.ResponseEntity;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
44 replies