Use Spring Security with Oracle & Grails -
i ask plugin should use achievie following functionality:
- user send http post contains json username & password data (to grails web service)
- ask oracle db these data , receive true or false
- if true generate token , keep somewhere information user&token (could domain class)
- check every other request if contains valid token , allow user custom webservice.
so far, tried 2 plugins: spring-security-rest & spring-security-core. both worked fine (spring security rest alvaro sanchez offer functionality listed above), both force on me 2 domain classes : user , role (currently dont want store kind of data there).
do have solutions? or should functionality myself?
thanks in advance!
the spring security plugin not force store user , role data in user
, role
domain classes. doesn't force store them in database @ all. can data anywhere (a web service, memory, text file, etc.) if you're not storing in domain classes you'll need provide custom userdetailsservice
bean. pretty simple exercise, explained in plugin's docs.
Comments
Post a Comment