Questions tagged [userdetailsservice]
60 questions
0
votes
3 answers
Spring Security Authentication with different type of users
i am new to spring security and i am building an web application in which i have 4 different roles i understand that spring use different roles to authorized user but how can i implement it when there are 4 different type of sign up and after sign…

ashutosh
- 81
- 1
- 1
- 9
0
votes
1 answer
Spring Security (Java Configuration) problems
Hello everybody,
I have a task where I have to create 3 pages:
/login- where we have email and password inputs,
/result - where we have to tell user does he authificated or not, and in case of successful we can show 3rd page -
/dataEntry where…

Vadzim Kavalkou
- 5
- 8
0
votes
1 answer
Customizing UserDetails using a service without LoadTimeWeaving
I need to use a list of objects for access control. The query to get that list is quite complex and lengthy, so I would like to cache it in the user object when a user authenticates with the server.
I decided to try and solve this with a customised…

Torsten N.
- 2,051
- 1
- 12
- 17
0
votes
1 answer
How to Customize UserDetailsService in spring security?
I'm using Java Configuration to configure spring security, and also use UserDetailsService Interface, the problem that I get access denied when trying to go to specific request.
here is the…

Ibrahim
- 77
- 3
- 10
0
votes
2 answers
Custom UserDetailsService Not Being Called - Grails & Spring Security Core
I'm using Grails v2.4.2 with spring-security-rest, spring-security-core, and spring-security-ui plugins.
I've written a custom UserDetailsService to make the username case-insensitive. All I am doing is simply trying to override
UserDetails…

Jeremy Wagner
- 485
- 4
- 9
- 19
0
votes
0 answers
Cannot convert value of type to required type for property 'userDetailsService': no matching editors or conversion strategy found
I am getting below exception while loading spring security context.
2015-01-23 10:10:22,008 INFO [STDOUT] (main) 10:10:22,008 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from ServletContext resource…

Chintan
- 906
- 4
- 14
- 30
0
votes
1 answer
Spring + Struts + Spring Security gets NoSuchBeanDefinitionException
So what I wanted to do is make an Struts2 Application and secure it with Spring Security. For that I have made an struts blank project and added the Spring dependency and made every configuration for the Spring Securtiy (Annotation-based). But when…

jollyjoyce1995
- 322
- 4
- 15
0
votes
1 answer
How to modify existing Spring MVC app to bypass spring security?
I have done web developments using servlets few years ago without any frameworks, so I'm familiar with web services. Now my job requires me to modify 3 existing Spring MVC apps to combine 3 login screens into one. One app runs on Tomcat 5, two run…

Frank
- 30,590
- 58
- 161
- 244
-1
votes
1 answer
SpringSecurity UserDetailsService REST Client
I'm using SpringBoot 2.4.7 and I'm trying to implement jdbc Authentication. The problem is that I can't reach the backend via http. I have read that with following configuration:
@Override
protected void configure(final HttpSecurity http) throws…

CoderJammer
- 599
- 3
- 8
- 27
-1
votes
2 answers
UserRepository is null in UserDetailsService
I'm using Spring 3.0.7 and I created bean via UserDetailsService in spring-secrutiy.xml to use it as a provider of users in

miksz1
- 31
- 1
- 11
-1
votes
2 answers
How to correctly implement the UserDetailsService without having an username?
I am creating an oauth service in spring-boot and want to use user information from a MariaDB for authentication.
When implementing UserDetailsService I have to override the function loadUserByUsername. The problem is that my user model does not…

pascalre
- 305
- 1
- 4
- 20
-1
votes
1 answer
Custom UserDetailsService Impl not being Called in SpringSecurity
My Custom UserDetailsService
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import…

Felipe
- 75
- 1
- 11
-1
votes
1 answer
Is it OK to use a domain class to implement UserDetails interface in a Spring Boot project
Is it OK to use a domain class like the one below to implement UserDetails interface in a Spring Boot with Hibernate? Or is it preferable to use a wrapper class that has a private User instance?
@Entity
@Table(name = "users")
public class User
…

Cybex
- 481
- 1
- 6
- 29
-1
votes
1 answer
how to do Authentication in Spring security using custom user detail service and angular js 2 as front end
this is my security configuration file
package com.data.topic;
@EnableWebSecurity
@ComponentScan(basePackageClasses = CustomUserDetailService.class)
public class Security extends WebSecurityConfigurerAdapter {
@Autowired
private…

ashutosh
- 81
- 1
- 1
- 9
-2
votes
0 answers
Exception badCredentials spring boot JWT
I am using JWT with spring boot to secure my API The Users are in database and ihave an exception when i call this API
type here
List professionnels = Stream.of(
new Professionnel("email1@gmail.com", "111", "06497555555",…

lamine MEHIDI
- 1
- 1