Use Spring Security with Oracle & Grails -


i ask plugin should use achievie following functionality:

  1. user send http post contains json username & password data (to grails web service)
  2. ask oracle db these data , receive true or false
  3. if true generate token , keep somewhere information user&token (could domain class)
  4. 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

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -