Benjamin Renard commited on 2014-12-11 14:03:59
Showing 1 changed files, with 3 additions and 16 deletions.
... | ... |
@@ -58,7 +58,9 @@ |
58 | 58 |
class="org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver" /> |
59 | 59 |
--> |
60 | 60 |
<bean |
61 |
- class="org.esupportail.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver" /> |
|
61 |
+ class="org.esupportail.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver"> |
|
62 |
+ <property name="attributeRepository" ref="attributeRepository" /> |
|
63 |
+ </bean> |
|
62 | 64 |
|
63 | 65 |
<!-- |
64 | 66 |
| HttpBasedServiceCredentialsToPrincipalResolver supports HttpBasedCredentials. It supports the CAS 2.0 approach of |
... | ... |
@@ -114,21 +116,6 @@ |
114 | 116 |
<sec:user name="${security.useradmin}" password="notused" authorities="ROLE_ADMIN" /> |
115 | 117 |
</sec:user-service> |
116 | 118 |
|
117 |
- <!-- |
|
118 |
- Bean that defines the attributes that a service may return. This example uses the Stub/Mock version. A real implementation |
|
119 |
- may go against a database or LDAP server. The id should remain "attributeRepository" though. |
|
120 |
- --> |
|
121 |
- <bean id="attributeRepository" |
|
122 |
- class="org.jasig.services.persondir.support.StubPersonAttributeDao"> |
|
123 |
- <property name="backingMap"> |
|
124 |
- <map> |
|
125 |
- <entry key="uid" value="uid" /> |
|
126 |
- <entry key="eduPersonAffiliation" value="eduPersonAffiliation" /> |
|
127 |
- <entry key="groupMembership" value="groupMembership" /> |
|
128 |
- </map> |
|
129 |
- </property> |
|
130 |
- </bean> |
|
131 |
- |
|
132 | 119 |
<!-- |
133 | 120 |
Sample, in-memory data store for the ServiceRegistry. A real implementation |
134 | 121 |
would probably want to replace this with the JPA-backed ServiceRegistry DAO |
135 | 122 |