Spring Security authentication from custom tables
I was looking into spring security, it has good features, but my requirement is bit different. I have one table: 1. Employee (fields ename, epassword) I want to authenticate user from this table but using spring security. I know spring security has kinda feature of enable and ROLE but didn't able to get how I can get authentication from my table. I have seen some examples and google certain link but some good links will be more helpful.
You can have cutom UserDetaialsService and give an implementation for loadUserByUsername(String username) to load user info from database. After that you can have custom implementation of AuthenticationProvider which uses your custom UserDetailsService to authenticate the user. Spring security is also having same kind of implementation to authenticate the user from table but have some limitation on table structure etc. you can have a look on DaoAuthenticationProvider to implement your own AuthenticationProvider and JdbcDaoImpl to have your custom UserDetailsService.
JAVA：test if the number is prime(I have code)
Java install - Doesn't run the classes
What is the difference between Java Non Heap Memory and Stack Memory? Are they Same if not what is the difference between them?
How to avoid re-running an actor in Akka?
How to wait for a specified time between parts of code in Java?
LinkedHashMap or two separate arrays in java
Gradle: How to run Sonar on a separate process/JVM
How big is the chance to get a Java UUID.randomUUID collision? [duplicate]
Calling a non-static messaging function in java
Create a joined string of the field-values of an object-list using streams and java8
Why TableRows with TextViews are not being displayed inside TableLayout if the number of TableRows exceeds a certain number?
Get adapter info via an external button on Android
An error occurred while trying to connect with the sphero
Spring + ExtJS File Upload Required MultipartFile parameter 'file' is not present
Passing constructor parameter to method JAVA
Jersey POJOMappingFeature to convert null to empty string?