st.bolli
Sep 29th, 2010, 03:07 AM
Hi all,
I have a custom DB schema which doesn't fit the USER/ROLES standard domain object that grails require. I cannot edit the underlying schema, this is the constraint, but I am interesting to use the Spring Security Core plugin features.
I need the plugin only for user autentication, not for their registration beacuse this last one is managed by another piece of software.
My idea is to create some view on DB side in particular:
USER_VIEW with fields (username, password)
ROLE_VIEW with fields (id_role, name)
USER_ROLE_VIEW with fields (id_role, username)
and connect the security plugin to use this view to check user authentication.
Is it possible? ...and how can be done?
Thanks!
I have a custom DB schema which doesn't fit the USER/ROLES standard domain object that grails require. I cannot edit the underlying schema, this is the constraint, but I am interesting to use the Spring Security Core plugin features.
I need the plugin only for user autentication, not for their registration beacuse this last one is managed by another piece of software.
My idea is to create some view on DB side in particular:
USER_VIEW with fields (username, password)
ROLE_VIEW with fields (id_role, name)
USER_ROLE_VIEW with fields (id_role, username)
and connect the security plugin to use this view to check user authentication.
Is it possible? ...and how can be done?
Thanks!