-
Notifications
You must be signed in to change notification settings - Fork 129
Expand file tree
/
Copy pathSampleMultivaluedAttributes.cs
More file actions
128 lines (116 loc) · 4.25 KB
/
SampleMultivaluedAttributes.cs
File metadata and controls
128 lines (116 loc) · 4.25 KB
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
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace Microsoft.SCIM.WebHostSample.Resources
{
public static class SampleMultivaluedAttributes
{
public static AttributeScheme ValueSubAttributeScheme
{
get
{
AttributeScheme valueScheme = new AttributeScheme("value", AttributeDataType.@string, false)
{
Description = SampleConstants.DescriptionValue,
};
return valueScheme;
}
}
public static AttributeScheme TypeSubAttributeScheme
{
get
{
AttributeScheme typeScheme = new AttributeScheme("type", AttributeDataType.@string, false)
{
Description = SampleConstants.DescriptionType,
Mutability = Mutability.immutable
};
typeScheme.AddCanonicalValues(Types.Group);
typeScheme.AddCanonicalValues(Types.User);
return typeScheme;
}
}
public static AttributeScheme DisplaySubAttributeScheme
{
get
{
AttributeScheme typeScheme = new AttributeScheme("display", AttributeDataType.@string, false)
{
Description = SampleConstants.DescriptionDisplay
};
return typeScheme;
}
}
public static AttributeScheme Type2SubAttributeScheme
{
get
{
AttributeScheme typeScheme = new AttributeScheme("type", AttributeDataType.@string, false)
{
Description = SampleConstants.DescriptionType
};
typeScheme.AddCanonicalValues("work");
typeScheme.AddCanonicalValues("home");
typeScheme.AddCanonicalValues("other");
return typeScheme;
}
}
public static AttributeScheme TypeAuthenticationSchemesAttributeScheme
{
get
{
AttributeScheme typeScheme = new AttributeScheme("type", AttributeDataType.@string, false)
{
Description = SampleConstants.DescriptionType,
Required = true
};
typeScheme.AddCanonicalValues("oauth");
typeScheme.AddCanonicalValues("oauth2");
typeScheme.AddCanonicalValues("oauthbearertoken");
typeScheme.AddCanonicalValues("httpbasic");
typeScheme.AddCanonicalValues("httpdigest");
return typeScheme;
}
}
public static AttributeScheme TypeImsSubAttributeScheme
{
get
{
AttributeScheme typeScheme = new AttributeScheme("type", AttributeDataType.@string, false)
{
Description = SampleConstants.DescriptionType
};
typeScheme.AddCanonicalValues("aim");
typeScheme.AddCanonicalValues("gtalk");
typeScheme.AddCanonicalValues("icq");
typeScheme.AddCanonicalValues("xmpp");
typeScheme.AddCanonicalValues("msn");
typeScheme.AddCanonicalValues("skype");
typeScheme.AddCanonicalValues("qq");
typeScheme.AddCanonicalValues("yahoo");
return typeScheme;
}
}
public static AttributeScheme TypeDefaultSubAttributeScheme
{
get
{
AttributeScheme typeScheme = new AttributeScheme("type", AttributeDataType.@string, false)
{
Description = SampleConstants.DescriptionType,
};
return typeScheme;
}
}
public static AttributeScheme PrimarySubAttributeScheme
{
get
{
AttributeScheme typeScheme = new AttributeScheme("primary", AttributeDataType.boolean, false)
{
Description = SampleConstants.DescriptionPrimary
};
return typeScheme;
}
}
}
}