Authentication Provider is configured in my Weblogic Application Server. I followed http://docs.oracle.com/cd/E23943_01/...t.htm#i1033473 tutorial to develop FORM based authentication Web Application.
Now, I want to use Spring Security instead.
Earlier, I have used Spring security and configured authentication-manager as shown below:
But, now, I have to fetch user role from Weblogic Security provider instead of database. Please someone help me on this.Code:<authentication-manager alias="authenticationManager"> <authentication-provider> <jdbc-user-service data-source-ref="dataSource" users-by-username-query="select NAME, PASSWORD, true from PERSON where NAME = ? and STATUS = 'Active'" authorities-by-username-query="select p.NAME, pr.AUTHORITY from PERSON p, PERSON_ROLE pr where p.PERSON_ID = pr.PERSON_ID and p.NAME = ? " /> </authentication-provider> </authentication-manager>


Reply With Quote