java


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.

Related Links

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?

Categories

HOME
cloud
debugging
omnet++
zeromq
react-router
alfresco
sqlite3
callback
baqend
azure-media-services
directx
vifm
izpack
n-gram
leiningen
ups
serverless-framework
clearcase-ucm
reactive-cocoa
pythonanywhere
sms-gateway
autocad-plugin
dxf
react-css-modules
minitab
elasticsearch-net
ejabberd-module
saas
atlassian-crucible
objectanimator
google-cloud-endpoints-v2
uisplitview
typed.js
gesture
abstract-class
jna
ansible-playbook
trim
quadratic-programming
sencha-touch-2.3
pnotify
clean-architecture
integrity
aurelia-validation
colorama
magma
memory-alignment
dwscript
crosswalk-runtime
time-and-attendance
heidisql
libpng
phishing
fputcsv
qcustomplot
master-slave
itextpdf
natvis
endeca-workbench
iis-arr
muse
emailrelay
event-bubbling
unity5.2.3
codeigniter-url
gadt
rdtsc
googlemock
comexception
ember-charts
app42
srs
prettify
inbox
soundtouch
ftps
seed
html-editor
unc
coderush
ohm
spring-portlet-mvc
coercion
table-footer
file-comparison
disclosure
celltable
oncheckedchanged
web-application-design
xsdobjectgen
rescale
procedural-music
zune

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App