3c7461b73bd854692ff5c3a20f2f8566db05fc18
[java-idp.git] / tests / data / conf1 / attribute-resolver.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <AttributeResolver xmlns="urn:mace:shibboleth:2.0:resolver"
4                    xmlns:resolver="urn:mace:shibboleth:2.0:resolver"
5                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6                    xmlns:pc="urn:mace:shibboleth:2.0:resolver:pc"
7                    xmlns:simple="urn:mace:shibboleth:2.0:resolver:ad:simple"
8                        xmlns:static="urn:mace:shibboleth:2.0:resolver:dc:static"
9                    xmlns:enc="urn:mace:shibboleth:2.0:attribute:encoder"
10                        xsi:schemaLocation="urn:mace:shibboleth:2.0:resolver classpath:/schema/shibboleth-2.0-attribute-resolver.xsd
11                                        urn:mace:shibboleth:2.0:resolver:pc classpath:/schema/shibboleth-2.0-attribute-resolver-pc.xsd
12                                        urn:mace:shibboleth:2.0:resolver:ad:simple classpath:/schema/shibboleth-2.0-attribute-resolver-ad-simple.xsd
13                                        urn:mace:shibboleth:2.0:resolver:dc:static classpath:/schema/shibboleth-2.0-attribute-resolver-dc-static.xsd
14                                        urn:mace:shibboleth:2.0:attribute:encoder classpath:/schema/shibboleth-2.0-attribute-encoder.xsd">
15                                        
16     <resolver:AttributeDefinition xsi:type="simple:Simple" id="uid">
17         <resolver:DataConnectorDependency ref="static" />
18         <resolver:AttributeEncoder xsi:type="enc:SAML2StringNameID" />
19     </resolver:AttributeDefinition>
20     
21     <resolver:AttributeDefinition xsi:type="simple:Simple" id="cn">
22         <resolver:DataConnectorDependency ref="static" />
23     </resolver:AttributeDefinition>
24     
25     <resolver:AttributeDefinition xsi:type="simple:Simple" id="email">
26         <resolver:DataConnectorDependency ref="static" />
27     </resolver:AttributeDefinition>
28                                        
29     <resolver:DataConnector xsi:type="static:Static" id="static">
30         <static:Attribute id="uid">
31             <static:Value>testUser</static:Value>
32         </static:Attribute>
33         <static:Attribute id="cn">
34             <static:Value>Test User</static:Value>
35         </static:Attribute>
36         <static:Attribute id="email">
37             <static:Value>t.user@example.org</static:Value>
38         </static:Attribute>
39     </resolver:DataConnector>
40     
41     <resolver:PrincipalConnector xsi:type="pc:Direct" 
42                                  id="directPC"
43                                  nameIDFormat="urn:oasis:names:tc:SAML:1.0:nameid-format:unspecified" />
44
45 </AttributeResolver>