ios-cert-enrollment 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/ios-cert-enrollment/profile.rb +22 -14
- data/lib/ios-cert-enrollment/version.rb +1 -1
- metadata +1 -1
@@ -61,26 +61,34 @@ module IOSCertEnrollment
|
|
61
61
|
def webclip
|
62
62
|
|
63
63
|
webclip_payload = general_payload()
|
64
|
-
|
65
|
-
|
66
|
-
|
64
|
+
|
65
|
+
content_payload = general_payload()
|
66
|
+
content_payload['PayloadIdentifier'] = self.identifier+".webclip.WebClip"
|
67
|
+
content_payload['PayloadType'] = "com.apple.webClip.managed" # do not modify
|
67
68
|
|
68
69
|
# strings that show up in UI, customisable
|
69
|
-
|
70
|
-
|
70
|
+
content_payload['PayloadDisplayName'] = self.display_name
|
71
|
+
content_payload['PayloadDescription'] = self.description
|
71
72
|
|
72
73
|
# allow user to remove webclip
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
74
|
+
content_payload['IsRemovable'] = true
|
75
|
+
content_payload['FullScreen'] = true
|
76
|
+
content_payload['Icon'] = self.icon
|
77
|
+
content_payload['Precomposed'] = true
|
77
78
|
# the link
|
78
|
-
|
79
|
-
|
80
|
-
|
79
|
+
content_payload['Label'] = self.display_name
|
80
|
+
content_payload['URL'] = self.url
|
81
|
+
|
82
|
+
webclip_payload['PayloadContent'] = content_payload
|
83
|
+
webclip_payload['PayloadType'] = "Configuration"
|
81
84
|
#client_cert_payload = scep_cert_payload(request, "Client Authentication", "foo");
|
82
|
-
|
83
|
-
|
85
|
+
webclip_payload['PayloadRemovalDisallowed'] = false
|
86
|
+
webclip_payload['PayloadOrganization'] = self.display_name
|
87
|
+
webclip_payload['PayloadDisplayName'] = self.display_name
|
88
|
+
webclip_payload['PayloadDescription'] = self.description
|
89
|
+
|
90
|
+
webclip_payload['PayloadIdentifier'] = self.identifier+".webclip"
|
91
|
+
self.payload = Plist::Emit.dump(webclip_payload)
|
84
92
|
return self
|
85
93
|
|
86
94
|
end
|