-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathClaim_UserInputTypes_All.xml
167 lines (151 loc) · 7.16 KB
/
Claim_UserInputTypes_All.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TrustFrameworkPolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/online/cpim/schemas/2013/06" PolicySchemaVersion="0.3.0.0"
TenantId="yourtenant.onmicrosoft.com"
PolicyId="B2C_1A_Claim_UserInputTypes_All"
PublicPolicyUri="http://yourtenant.onmicrosoft.com/B2C_1A_Claim_UserInputTypes_All">
<BasePolicy>
<TenantId>yourtenant.onmicrosoft.com</TenantId>
<PolicyId>B2C_1A_TrustFrameworkExtensions</PolicyId>
</BasePolicy>
<BuildingBlocks>
<ClaimsSchema>
<ClaimType Id="PasswordType">
<DisplayName>Password type</DisplayName>
<DataType>string</DataType>
<UserInputType>Password</UserInputType>
</ClaimType>
<ClaimType Id="TextBoxType">
<DisplayName>TextBox type</DisplayName>
<DataType>string</DataType>
<UserInputType>TextBox</UserInputType>
</ClaimType>
<ClaimType Id="ParagraphType">
<DisplayName>Paragraph type</DisplayName>
<DataType>string</DataType>
<UserInputType>Paragraph</UserInputType>
</ClaimType>
<ClaimType Id="EmailBoxType">
<DisplayName>EmailBox type</DisplayName>
<DataType>string</DataType>
<UserInputType>EmailBox</UserInputType>
<!-- <Restriction>
<Pattern RegularExpression="^[a-zA-Z0-9!#$%&'+^_`{}~-]+(?:\.[a-zA-Z0-9!#$%&'+^_`{}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$" HelpText="Please enter a valid email address."/>
</Restriction> -->
</ClaimType>
<ClaimType Id="DropdownSingleSelectType">
<DisplayName>DropdownSingleSelect type</DisplayName>
<DataType>string</DataType>
<UserInputType>DropdownSingleSelect</UserInputType>
<Restriction>
<Enumeration Text="Bellevue" Value="bellevue" SelectByDefault="false"/>
<Enumeration Text="Redmond" Value="redmond" SelectByDefault="false"/>
<Enumeration Text="New York" Value="new-york" SelectByDefault="true"/>
</Restriction>
</ClaimType>
<ClaimType Id="RadioSingleSelectType">
<DisplayName>RadioSingleSelect type</DisplayName>
<DataType>string</DataType>
<UserInputType>RadioSingleSelect</UserInputType>
<Restriction>
<Enumeration Text="Blue" Value="Blue" SelectByDefault="false"/>
<Enumeration Text="Green " Value="Green" SelectByDefault="false"/>
<Enumeration Text="Orange" Value="Orange" SelectByDefault="true"/>
</Restriction>
</ClaimType>
<ClaimType Id="CheckboxMultiSelectType">
<DisplayName>CheckboxMultiSelect type</DisplayName>
<DataType>string</DataType>
<UserInputType>CheckboxMultiSelect</UserInputType>
<Restriction>
<Enumeration Text="English" Value="English" SelectByDefault="true"/>
<Enumeration Text="France " Value="France" SelectByDefault="false"/>
<Enumeration Text="Spanish" Value="Spanish" SelectByDefault="false"/>
</Restriction>
</ClaimType>
<ClaimType Id="DateTimeDropdownType">
<DisplayName>DateTimeDropdown type</DisplayName>
<DataType>date</DataType>
<UserInputType>DateTimeDropdown</UserInputType>
</ClaimType>
<ClaimType Id="ReadonlyType">
<DisplayName>Readonly type</DisplayName>
<DataType>string</DataType>
<UserInputType>Readonly</UserInputType>
</ClaimType>
</ClaimsSchema>
</BuildingBlocks>
<ClaimsProviders>
<ClaimsProvider>
<DisplayName>Unit tests</DisplayName>
<TechnicalProfiles>
<!--Self-asserted technical profile-->
<TechnicalProfile Id="ExperimentalTechnicalProfile">
<DisplayName>User ID signup</DisplayName>
<Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.SelfAssertedAttributeProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
<Metadata>
<Item Key="ContentDefinitionReferenceId">api.selfasserted</Item>
</Metadata>
<InputClaims>
<InputClaim ClaimTypeReferenceId="ParagraphType" DefaultValue="The cat is a domestic species of a small carnivorous mammal." />
<InputClaim ClaimTypeReferenceId="ReadonlyType" DefaultValue="46726293" />
</InputClaims>
<OutputClaims>
<!--Password-->
<OutputClaim ClaimTypeReferenceId="PasswordType" />
<!--EmailBox-->
<OutputClaim ClaimTypeReferenceId="EmailBoxType" />
<!--Textbox-->
<OutputClaim ClaimTypeReferenceId="TextBoxType" />
<!--DropdownSingleSelect-->
<OutputClaim ClaimTypeReferenceId="DropdownSingleSelectType" />
<!--CheckboxMultiSelect-->
<OutputClaim ClaimTypeReferenceId="CheckboxMultiSelectType" />
<!--RadioSingleSelect-->
<OutputClaim ClaimTypeReferenceId="RadioSingleSelectType" />
<!--DateTimeDropdown-->
<OutputClaim ClaimTypeReferenceId="DateTimeDropdownType" />
<!--Paragraph-->
<OutputClaim ClaimTypeReferenceId="ParagraphType" />
<!--Readonly-->
<OutputClaim ClaimTypeReferenceId="ReadonlyType" />
</OutputClaims>
<UseTechnicalProfileForSessionManagement ReferenceId="SM-Noop" />
</TechnicalProfile>
</TechnicalProfiles>
</ClaimsProvider>
</ClaimsProviders>
<UserJourneys>
<UserJourney Id="UnitTestJourney">
<OrchestrationSteps>
<OrchestrationStep Order="1" Type="ClaimsExchange">
<ClaimsExchanges>
<ClaimsExchange Id="ExperimentalTechnicalProfile" TechnicalProfileReferenceId="ExperimentalTechnicalProfile" />
</ClaimsExchanges>
</OrchestrationStep>
<OrchestrationStep Order="2" Type="SendClaims" CpimIssuerTechnicalProfileReferenceId="JwtIssuer" />
</OrchestrationSteps>
</UserJourney>
</UserJourneys>
<RelyingParty>
<DefaultUserJourney ReferenceId="UnitTestJourney" />
<TechnicalProfile Id="PolicyProfile">
<DisplayName>PolicyProfile</DisplayName>
<Protocol Name="OpenIdConnect" />
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="objectId" PartnerClaimType="sub" DefaultValue="1234" />
<OutputClaim ClaimTypeReferenceId="tenantId" AlwaysUseDefaultValue="true" DefaultValue="{Policy:TenantObjectId}" />
<!-- Unit test claims-->
<OutputClaim ClaimTypeReferenceId="PasswordType" />
<OutputClaim ClaimTypeReferenceId="EmailBoxType" />
<OutputClaim ClaimTypeReferenceId="TextBoxType" />
<OutputClaim ClaimTypeReferenceId="DropdownSingleSelectType" />
<OutputClaim ClaimTypeReferenceId="CheckboxMultiSelectType" />
<OutputClaim ClaimTypeReferenceId="RadioSingleSelectType" />
<OutputClaim ClaimTypeReferenceId="DateTimeDropdownType" />
<OutputClaim ClaimTypeReferenceId="ParagraphType" />
<OutputClaim ClaimTypeReferenceId="ReadonlyType" DefaultValue="46726293" />
</OutputClaims>
<SubjectNamingInfo ClaimType="sub" />
</TechnicalProfile>
</RelyingParty>
</TrustFrameworkPolicy>