<?xml version="1.0" encoding="UTF-8"?>
<carml:ClientAttrReq AppName="" Description="" xmlns:carml="urn:igf:client:0.6:carml" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:igf:client:0.6:carml ../../schemas/igf-carml-06.xsd ">
  <Schema>
    <Attributes>
      <Attribute Cardinality="single" DataType="string" DisplayName="Surname" Modifiable="false" Name="sn" Optional="true"/>
      <Attribute Cardinality="single" DataType="string" Description="One or more names that are considered given names. The first name should be the preferred name."
      	DisplayName="Given names" Modifiable="false" Name="givenname" Optional="true"/>
      <Attribute Cardinality="single" DataType="urn:oasis:names:tc:xacml:1.0:data-type:rfc822Name" DisplayName="E-Mail" Modifiable="false" Name="mail" Optional="true"/>
      <Attribute Cardinality="single" DataType="string" DisplayName="Surname" Modifiable="false" Name="sn" Optional="true"/>
    </Attributes>
    <Predicates>
      <Predicate Description="For the jurisdiction of the user, a determination that the subject can travel alone." DisplayName="Adult" Name="IsAdult" Optional="true"/>
      <Predicate Description="A resident of the EU" DisplayName="EU Resident" Name="IsEUResident" Optional="true"/>
    </Predicates>
    <Roles>
      <Role Description="Able to book business class tickets" DisplayName="" Name="BusinessClassFlyer" />
      <Role Description="The passenger's account is active." DisplayName="Account active" Name="IsActive" Optional="false"/>
    </Roles>
    <Filters>
      <Filter Description="Search by email address" Name="mail" Optional="false"/>
    </Filters>
    <UsagePolicies>
      <wsp:Policy Name="http://tempuri.org"/>
    </UsagePolicies>
  </Schema>
  <Interaction Description="" Name="ReadProfile" Operation="read">
    <Attributes>
      <AttributeRef Ref="#mail"/>
      <AttributeRef Ref="#sn"/>
      <AttributeRef Ref="#givenname"/>
    </Attributes>
    <Predicates>
      <PredicateRef Ref="#IsAdult"/>
      <PredicateRef Ref="#IsEUResident"/>
    </Predicates>
    <Roles>
      <RoleRef Ref="BusinessClassFlyer"/>
    </Roles>
    <wsp:Policy Name="http://tempuri.org"/>
  </Interaction>
  <Interaction Description="" Name="AuthenticateUser" Operation="authenticate">
	<SearchIndexes>
		<FilterRef Ref="#mail" />
	</SearchIndexes>
	<Roles>
		<RoleRef Ref="IsActive" />
	</Roles>
    <wsp:Policy Name="http://tempuri.org"/>
  </Interaction>
</carml:ClientAttrReq>
