Changes to namespace reinstating authentication-provider element in preference to "repository" to wrap convey that a user-service will be used as to authenticate against. Also introduced separate password-encoder element for use within authentication-provider.
This commit is contained in:
+2
-2
@@ -10,11 +10,11 @@ http://www.springframework.org/schema/security http://www.springframework.org/sc
|
||||
|
||||
<annotation-driven/>
|
||||
|
||||
<repository>
|
||||
<authentication-provider>
|
||||
<user-service>
|
||||
<user name="bob" password="bobspassword" authorities="ROLE_A,ROLE_B" />
|
||||
<user name="bill" password="billspassword" authorities="ROLE_A,ROLE_B,AUTH_OTHER" />
|
||||
</user-service>
|
||||
</repository>
|
||||
</authentication-provider>
|
||||
|
||||
</b:beans>
|
||||
Reference in New Issue
Block a user