policyInit.js revision 12e09ecfffd292f3162b1e444922761f62c167d8
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2014-2015 ForgeRock AS. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*/
/*global require, define*/
define([
"text!templates/policy/BaseTemplate.html",
"text!templates/policy/common/ActionsTemplate.html",
"text!templates/policy/common/HelpLinkTemplate.html",
"text!templates/policy/login/LoginDialog.html",
"text!templates/policy/policies/conditions/ListItem.html",
"text!configuration.json"
], function () {
/* an unfortunate need to duplicate the file names here, but I haven't
yet found a way to fool requirejs into doing dynamic dependencies */
var staticFiles = [
"configuration.json"
],
return function (server) {
"GET",
[
200,
{ },
deps[i]
]
);
});
"GET",
/\/json\/serverinfo\/\*/,
[
200,
{
"Date": "Mon, 10 Nov 2014 10:13:34 GMT",
"Cache-Control": "no-cache",
"Server": "Apache-Coyote/1.1",
"ETag": ""-1510027421"",
"Content-Length": "350",
"Content-API-Version": "protocol=1.0,resource=1.1",
"Content-Type": "application/json;charset=UTF-8"
},
"{\"domains\":[\".esergueeva.com\"],\"protectedUserAttributes\":[],\"cookieName\":\"iPlanetDirectoryPro\",\"forgotPassword\":\"false\",\"selfRegistration\":\"false\",\"lang\":\"en\",\"successfulUserRegistrationDestination\":\"default\",\"socialImplementations\":[],\"referralsEnabled\":\"false\",\"zeroPageLogin\":{\"enabled\":false,\"refererWhitelist\":[\"\"],\"allowedWithoutReferer\":true}}"
]
);
"GET",
[
200,
{
"Date": "Tue, 17 Feb 2015 14:38:47 GMT",
"Cache-Control": "no-cache",
"Server": "Apache-Coyote/1.1",
"Content-Length": "1034",
"Content-API-Version": "protocol=1.0,resource=1.0",
"Content-Type": "application/json;charset=UTF-8"
},
"{\"result\":[{\"name\":\"iPlanetAMWebAgentService\",\"resources\":[\"*://*:*/*?*\",\"*://*:*/*\"],\"actions\":{\"POST\":true,\"PATCH\":true,\"GET\":true,\"DELETE\":true,\"OPTIONS\":true,\"HEAD\":true,\"PUT\":true},\"attributeNames\":[],\"conditions\":[\"AuthenticateToService\",\"AuthScheme\",\"IPv6\",\"SimpleTime\",\"OAuth2Scope\",\"IPv4\",\"AuthenticateToRealm\",\"OR\",\"AMIdentityMembership\",\"LDAPFilter\",\"SessionProperty\",\"AuthLevel\",\"LEAuthLevel\",\"Session\",\"NOT\",\"AND\",\"ResourceEnvIP\"],\"resourceComparator\":null,\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"iPlanetAMWebAgentService\",\"creationDate\":1423749236772,\"lastModifiedDate\":1423749236772,\"realm\":\"/\",\"description\":\"The built-in Application used by OpenAM Policy Agents.\",\"subjects\":[\"JwtClaim\",\"AuthenticatedUsers\",\"Identity\",\"NOT\",\"AND\",\"NONE\",\"OR\"],\"saveIndex\":null,\"searchIndex\":null,\"entitlementCombiner\":\"DenyOverride\",\"editable\":true}],\"resultCount\":1,\"pagedResultsCookie\":null,\"remainingPagedResults\":0}"
]
);
"GET",
[
200,
{
"Date": "Tue, 24 Feb 2015 10:05:38 GMT",
"Cache-Control": "no-cache",
"Server": "Apache-Coyote/1.1",
"ETag": ""1424769879321"",
"Content-Length": "874",
"Content-API-Version": "protocol=1.0,resource=1.0",
"Content-Type": "application/json;charset=UTF-8"
},
"{\"name\":\"iPlanetAMWebAgentService\",\"description\":\"The built-in Application used by OpenAM Policy Agents.\",\"attributeNames\":[],\"resourceComparator\":null,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"subjects\":[\"JwtClaim\",\"AuthenticatedUsers\",\"Identity\",\"NOT\",\"AND\",\"NONE\",\"OR\"],\"realm\":\"/\",\"creationDate\":1424769879321,\"lastModifiedDate\":1424769879321,\"conditions\":[\"AuthenticateToService\",\"AuthScheme\",\"IPv6\",\"SimpleTime\",\"OAuth2Scope\",\"IPv4\",\"AuthenticateToRealm\",\"OR\",\"AMIdentityMembership\",\"LDAPFilter\",\"SessionProperty\",\"AuthLevel\",\"LEAuthLevel\",\"Session\",\"NOT\",\"AND\",\"ResourceEnvIP\"],\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"applicationType\":\"iPlanetAMWebAgentService\",\"resourceTypeUuids\":[\"76656a38-5f8e-401b-83aa-4ccb74ce88d2\"],\"saveIndex\":null,\"searchIndex\":null,\"entitlementCombiner\":\"DenyOverride\",\"editable\":true}"
]
);
"GET",
[
200,
{
"Date": "Thu, 18 Sep 2014 18:39:20 GMT",
"Cache-Control": "no-cache",
"Server": "Apache-Coyote/1.1",
"ETag": ""1411065560848"",
"Content-Length": "415",
"Content-API-Version": "protocol=1.0,resource=1.0",
"Content-Type": "application/json;charset=UTF-8"
},
"{\"name\":\"iPlanetAMWebAgentService\",\"actions\":{\"POST\":true,\"PATCH\":true,\"GET\":true,\"DELETE\":true,\"OPTIONS\":true,\"PUT\":true,\"HEAD\":true},\"saveIndex\":\"org.forgerock.openam.entitlement.indextree.TreeSaveIndex\",\"searchIndex\":\"org.forgerock.openam.entitlement.indextree.TreeSearchIndex\",\"applicationClassName\":\"com.sun.identity.entitlement.Application\",\"resourceComparator\":\"com.sun.identity.entitlement.URLResourceName\"}"
]
);
"GET",
[
200,
{
"Date": "Tue, 17 Feb 2015 14:38:53 GMT",
"Cache-Control": "no-cache",
"Server": "Apache-Coyote/1.1",
"Content-Length": "1072",
"Content-API-Version": "protocol=1.0,resource=1.0",
"Content-Type": "application/json;charset=UTF-8"
},
"{\"result\":[{\"title\":\"AND\",\"logical\":true,\"config\":{\"type\":\"object\",\"properties\":{\"subjects\":{\"type\":\"array\",\"items\":{\"type\":\"any\"}}}}},{\"title\":\"AuthenticatedUsers\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{}}},{\"title\":\"Identity\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"subjectValues\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}}}},{\"title\":\"JwtClaim\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"claimName\":{\"type\":\"string\"},\"claimValue\":{\"type\":\"string\"}}}},{\"title\":\"NONE\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{}}},{\"title\":\"NOT\",\"logical\":true,\"config\":{\"type\":\"object\",\"properties\":{\"subject\":{\"type\":\"object\",\"properties\":{}}}}},{\"title\":\"OR\",\"logical\":true,\"config\":{\"type\":\"object\",\"properties\":{\"subjects\":{\"type\":\"array\",\"items\":{\"type\":\"any\"}}}}},{\"title\":\"Policy\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"name\":{\"type\":\"string\"},\"className\":{\"type\":\"string\"},\"values\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}}}}],\"resultCount\":8,\"pagedResultsCookie\":null,\"remainingPagedResults\":0}"
]
);
"GET",
[
200,
{
"Date": "Tue, 17 Feb 2015 14:38:53 GMT",
"Cache-Control": "no-cache",
"Server": "Apache-Coyote/1.1",
"Content-Length": "2850",
"Content-API-Version": "protocol=1.0,resource=1.0",
"Content-Type": "application/json;charset=UTF-8"
},
"{\"result\":[{\"title\":\"AMIdentityMembership\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"amIdentityName\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}}}},{\"title\":\"AND\",\"logical\":true,\"config\":{\"type\":\"object\",\"properties\":{\"conditions\":{\"type\":\"array\",\"items\":{\"type\":\"any\"}}}}},{\"title\":\"AuthLevel\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"authLevel\":{\"type\":\"integer\"}}}},{\"title\":\"AuthScheme\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"authScheme\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"applicationIdleTimeout\":{\"type\":\"integer\"},\"applicationName\":{\"type\":\"string\"}}}},{\"title\":\"AuthenticateToRealm\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"authenticateToRealm\":{\"type\":\"string\"}}}},{\"title\":\"AuthenticateToService\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"authenticateToService\":{\"type\":\"string\"}}}},{\"title\":\"IPv4\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"startIp\":{\"type\":\"string\"},\"endIp\":{\"type\":\"string\"},\"dnsName\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}}}},{\"title\":\"IPv6\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"startIp\":{\"type\":\"string\"},\"endIp\":{\"type\":\"string\"},\"dnsName\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}}}},{\"title\":\"LDAPFilter\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"ldapFilter\":{\"type\":\"string\"}}}},{\"title\":\"LEAuthLevel\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"authLevel\":{\"type\":\"integer\"}}}},{\"title\":\"NOT\",\"logical\":true,\"config\":{\"type\":\"object\",\"properties\":{\"condition\":{\"type\":\"object\",\"properties\":{}}}}},{\"title\":\"OAuth2Scope\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"requiredScopes\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}}}},{\"title\":\"OR\",\"logical\":true,\"config\":{\"type\":\"object\",\"properties\":{\"conditions\":{\"type\":\"array\",\"items\":{\"type\":\"any\"}}}}},{\"title\":\"Policy\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"className\":{\"type\":\"string\"},\"properties\":{\"type\":\"object\"}}}},{\"title\":\"ResourceEnvIP\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"resourceEnvIPConditionValue\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}}}},{\"title\":\"Session\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"maxSessionTime\":{\"type\":\"number\"},\"terminateSession\":{\"type\":\"boolean\",\"required\":true}}}},{\"title\":\"SessionProperty\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"ignoreValueCase\":{\"type\":\"boolean\",\"required\":true},\"properties\":{\"type\":\"object\"}}}},{\"title\":\"SimpleTime\",\"logical\":false,\"config\":{\"type\":\"object\",\"properties\":{\"startTime\":{\"type\":\"string\"},\"endTime\":{\"type\":\"string\"},\"startDay\":{\"type\":\"string\"},\"endDay\":{\"type\":\"string\"},\"startDate\":{\"type\":\"string\"},\"endDate\":{\"type\":\"string\"},\"enforcementTimeZone\":{\"type\":\"string\"}}}}],\"resultCount\":18,\"pagedResultsCookie\":null,\"remainingPagedResults\":0}"
]
);
"GET",
[
200,
{
"Date": "Thu, 19 Feb 2015 08:30:40 GMT",
"Cache-Control": "no-cache",
"Server": "Apache-Coyote/1.1",
"Content-Length": "105",
"Content-API-Version": "protocol=1.0,resource=1.0",
"Content-Type": "application/json;charset=UTF-8"
},
"{\"result\":[{\"title\":\"DenyOverride\"}],\"resultCount\":1,\"pagedResultsCookie\":null,\"remainingPagedResults\":0}"
]
);
"GET",
[
200,
{
"Date": "Tue, 17 Feb 2015 14:38:53 GMT",
"Cache-Control": "no-cache",
"Server": "Apache-Coyote/1.1",
"Content-Length": "2722",
"Content-API-Version": "protocol=1.0,resource=1.0",
"Content-Type": "application/json;charset=UTF-8"
},
"{\"result\":[\"sunIdentityServerPPInformalName\",\"sunIdentityServerPPFacadeGreetSound\",\"uid\",\"manager\",\"sunIdentityServerPPCommonNameMN\",\"sunIdentityServerPPLegalIdentityGender\",\"preferredLocale\",\"iplanet-am-session-get-valid-sessions\",\"sunIdentityServerPPFacadegreetmesound\",\"iplanet-am-user-password-reset-question-answer\",\"telephoneNumber\",\"employeeNumber\",\"iplanet-am-user-admin-start-dn\",\"iplanet-am-user-success-url\",\"sunIdentityServerPPDemographicsDisplayLanguage\",\"iplanet-am-user-federation-info\",\"objectClass\",\"sunIdentityServerPPDemographicsLanguage\",\"authorityRevocationList\",\"sunIdentityServerPPLegalIdentityDOB\",\"sunIdentityServerPPSignKey\",\"sunIdentityServerPPEmploymentIdentityOrg\",\"createTimestamp\",\"iplanet-am-session-max-caching-time\",\"sn\",\"iplanet-am-session-quota-limit\",\"sunIdentityServerPPEncryPTKey\",\"iplanet-am-session-max-session-time\",\"sunIdentityServerPPCommonNamePT\",\"sun-fm-saml2-nameid-info\",\"sunIdentityServerDiscoEntries\",\"iplanet-am-user-login-status\",\"sunIdentityServerPPCommonNameCN\",\"distinguishedName\",\"iplanet-am-session-max-idle-time\",\"cn\",\"sunIdentityServerPPLegalIdentityVATIdType\",\"iplanet-am-user-password-reset-options\",\"preferredlanguage\",\"iplanet-am-user-federation-info-key\",\"sunIdentityServerPPDemographicsAge\",\"inetUserHttpURL\",\"iplanet-am-user-alias-list\",\"sunIdentityServerPPFacadeNamePronounced\",\"sunIdentityServerPPEmploymentIdentityJobTitle\",\"sunIdentityMSISDNNumber\",\"sunIdentityServerPPMsgContact\",\"givenName\",\"sunIdentityServerPPLegalIdentityMaritalStatus\",\"devicePrintProfiles\",\"memberOf\",\"sun-fm-saml2-nameid-infokey\",\"iplanet-am-session-service-status\",\"sunIdentityServerPPLegalIdentityVATIdValue\",\"userPassword\",\"sunIdentityServerPPFacadeMugShot\",\"sunIdentityServerPPEmploymentIdentityAltO\",\"iplanet-am-user-auth-config\",\"assignedDashboard\",\"iplanet-am-user-failure-url\",\"sunAMAuthInvalidAttemptsData\",\"sunIdentityServerPPLegalIdentityLegalName\",\"adminRole\",\"sunIdentityServerPPCommonNameAltCN\",\"dn\",\"iplanet-am-session-add-session-listener-on-all-sessions\",\"userCertificate\",\"mail\",\"sunIdentityServerPPLegalIdentityAltIdValue\",\"iplanet-am-user-password-reset-force-reset\",\"caCertificate\",\"sunIdentityServerPPEmergencyContact\",\"sunIdentityServerPPDemographicsBirthDay\",\"sunIdentityServerPPFacadeWebSite\",\"preferredtimezone\",\"sunIdentityServerPPLegalIdentityAltIdType\",\"sunIdentityServerPPCommonNameSN\",\"sunIdentityServerPPAddressCard\",\"postalAddress\",\"iplanet-am-session-destroy-sessions\",\"modifyTimestamp\",\"inetUserStatus\",\"iplanet-am-auth-configuration\",\"iplanet-am-user-auth-modules\",\"iplanet-am-user-account-life\",\"sunIdentityServerPPDemographicsTimeZone\",\"sunIdentityServerPPCommonNameFN\"],\"resultCount\":87,\"pagedResultsCookie\":null,\"remainingPagedResults\":0}"
]
);
"GET",
[
200,
{
"Date": "Tue, 24 Feb 2015 12:36:16 GMT",
"Cache-Control": "no-cache",
"Server": "Apache-Coyote/1.1",
"ETag": ""1424781371280"",
"Content-Length": "470",
"Content-API-Version": "protocol=1.0,resource=1.0",
"Content-Type": "application/json;charset=UTF-8"
},
"{\"name\":\"test_pol\",\"active\":true,\"description\":\"\",\"resources\":[\"*://*:*/*\"],\"applicationName\":\"iPlanetAMWebAgentService\",\"actionValues\":{\"DELETE\":true,\"OPTIONS\":true},\"subject\":{\"type\":\"NONE\"},\"resourceTypeUuid\":\"76656a38-5f8e-401b-83aa-4ccb74ce88d2\",\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":\"2015-02-24T12:36:11.280Z\",\"createdBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":\"2015-02-24T12:36:11.280Z\"}"
]
);
"GET",
[
200,
{
"Date": "Tue, 17 Feb 2015 11:32:58 GMT",
"Cache-Control": "no-cache",
"Server": "Apache-Coyote/1.1",
"Content-Length": "912",
"Content-API-Version": "protocol=1.0,resource=1.0",
"Content-Type": "application/json;charset=UTF-8"
},
"{\"result\":[{\"name\":\"test_pol\",\"active\":true,\"description\":\"\",\"resources\":[\"*://*:*/*?*\"],\"applicationName\":\"iPlanetAMWebAgentService\",\"actionValues\":{\"PATCH\":true,\"OPTIONS\":true},\"subject\":{\"type\":\"NOT\",\"subject\":{\"type\":\"NONE\"}},\"condition\":{\"type\":\"IPv4\",\"startIp\":\"1.1.1.1\",\"endIp\":\"2.2.2.2\",\"ipRange\":[],\"dnsName\":[]},\"resourceAttributes\":[{\"type\":\"User\",\"propertyName\":\"caCertificate\",\"propertyValues\":[]},{\"type\":\"Static\",\"propertyName\":\"rrr\",\"propertyValues\":[\"ii\"]},{\"type\":\"User\",\"propertyName\":\"authorityRevocationList\",\"propertyValues\":[]},{\"type\":\"User\",\"propertyName\":\"assignedDashboard\",\"propertyValues\":[]}],\"lastModifiedBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":\"2015-02-17T11:32:48.985Z\",\"createdBy\":\"id=amadmin,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":\"2015-02-17T11:32:48.985Z\"}],\"resultCount\":1,\"pagedResultsCookie\":null,\"remainingPagedResults\":0}"
]
);
"GET",
[
200,
{
"Date": "Tue, 24 Feb 2015 09:54:44 GMT",
"Cache-Control": "no-cache",
"Server": "Apache-Coyote/1.1",
"Content-Length": "5210",
"Content-API-Version": "protocol=1.0,resource=1.0",
"Content-Type": "application/json;charset=UTF-8"
},
"{\"result\":[{\"uuid\":\"398207e2-a643-4f8c-b46b-42da0f7dc63f\",\"name\":\"Bank\",\"realm\":\"/\",\"description\":\"The built-in bank Resource Type available to OpenAM Policies.\",\"patterns\":[\"*://*:*/*?*\",\"*://*:*/*\"],\"actions\":{\"TRANSFER\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848},{\"uuid\":\"93a563eb-1f43-4cca-89f3-9a85e83401b9\",\"name\":\"Button\",\"realm\":\"/\",\"description\":\"The built-in Button Resource Type available to OpenAM Policies.\",\"patterns\":[\"btn://*:*/*\",\"btn://*:*/*?*\"],\"actions\":{\"VISIBLE\":true,\"SELECTED\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848},{\"uuid\":\"6a90eabe-9638-4333-b688-3223aec7f58a\",\"name\":\"CREST\",\"realm\":\"/\",\"description\":\"The built-in CREST Resource Type available to OpenAM Policies.\",\"patterns\":[\"http://*:*/*\",\"http://*:*/*?*\",\"https://*:*/*?*\",\"https://*:*/*\"],\"actions\":{\"UPDATE\":true,\"QUERY\":true,\"PATCH\":true,\"CREATE\":true,\"DELETE\":true,\"READ\":true,\"ACTION\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848},{\"uuid\":\"74e62178-ab00-45cb-94e5-29dedbd617a5\",\"name\":\"Calendar\",\"realm\":\"/\",\"description\":\"The built-in calendar Resource Type available to OpenAM Policies.\",\"patterns\":[\"http://calendar.sun.com/my/*\",\"http://calendar.sun.com/*/calendars?calId=*\",\"http://calendar.sun.com/*\",\"http://calendar.sun.com/admin\"],\"actions\":{\"POST\":true,\"PATCH\":true,\"GET\":true,\"DELETE\":true,\"OPTIONS\":true,\"HEAD\":true,\"PUT\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848},{\"uuid\":\"20a13582-1f32-4f83-905f-f71ff4e2e00d\",\"name\":\"Delegation Service\",\"realm\":\"/\",\"description\":\"The built-in delegation Resource Type available to OpenAM Policies.\",\"patterns\":[\"sms://*:*/*?*\",\"sms://*:*/*\"],\"actions\":{\"MODIFY\":true,\"READ\":true,\"DELEGATE\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848},{\"uuid\":\"1491322b-5c50-4133-8c40-1646e1170cbb\",\"name\":\"Discovery Service\",\"realm\":\"/\",\"description\":\"The built-in discovery Resource Type available to OpenAM Policies.\",\"patterns\":[\"http://*:*/*\",\"http://*:*/*?*\",\"https://*:*/*?*\",\"https://*:*/*\"],\"actions\":{\"LOOKUP\":true,\"UPDATE\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848},{\"uuid\":\"504fe694-f1e3-4fdf-8d69-fcf2a4fce06b\",\"name\":\"IM\",\"realm\":\"/\",\"description\":\"The built-in IM Resource Type available to OpenAM Policies.\",\"patterns\":[\"http://im.sun.com/register\",\"http://im.sun.com/im.jnlp\"],\"actions\":{\"POST\":true,\"PATCH\":true,\"GET\":true,\"DELETE\":true,\"OPTIONS\":true,\"HEAD\":true,\"PUT\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848},{\"uuid\":\"09496ad8-26e3-4002-b90e-24facc2e78c1\",\"name\":\"Liberty Service\",\"realm\":\"/\",\"description\":\"The built-in liberty Resource Type available to OpenAM Policies.\",\"patterns\":[\"*://*:*/*?*\",\"*://*:*/*\"],\"actions\":{\"QUERY_interactForConsent\":false,\"QUERY_interactForValue\":false,\"MODIFY_interactForValue\":false,\"QUERY_deny\":false,\"MODIFY_deny\":false,\"MODIFY_interactForConsent\":false,\"MODIFY_allow\":true,\"QUERY_allow\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848},{\"uuid\":\"13b27ffe-0415-4751-821c-b81675c7acc8\",\"name\":\"Paycheck\",\"realm\":\"/\",\"description\":\"The built-in paycheck Resource Type available to OpenAM Policies.\",\"patterns\":[\"http://paycheck.sun.com:8081/*/private\",\"http://paycheck.sun.com:8081/*\",\"http://paycheck.sun.com:8081/*/users/*\"],\"actions\":{\"POST\":true,\"PATCH\":true,\"GET\":true,\"DELETE\":true,\"OPTIONS\":true,\"HEAD\":true,\"PUT\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848},{\"uuid\":\"b5ceba86-4346-4cf5-a5f2-1d2884d1a025\",\"name\":\"Provisioning Service\",\"realm\":\"/\",\"description\":\"The built-in provisioning Resource Type available to OpenAM Policies.\",\"patterns\":[\"/*\"],\"actions\":{\"UPDATE\":true,\"CREATE\":true,\"DELETE\":true,\"READ\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848}],\"resultCount\":10,\"pagedResultsCookie\":null,\"remainingPagedResults\":1}"
]
);
"GET",
[
200,
{
"Date": "Tue, 24 Feb 2015 09:54:55 GMT",
"Cache-Control": "no-cache",
"Server": "Apache-Coyote/1.1",
"ETag": ""1424771695944"",
"Content-Length": "535",
"Content-API-Version": "protocol=1.0,resource=1.0",
"Content-Type": "application/json;charset=UTF-8"
},
"{\"uuid\":\"6a90eabe-9638-4333-b688-3223aec7f58a\",\"name\":\"CREST\",\"realm\":\"/\",\"description\":\"The built-in CREST Resource Type available to OpenAM Policies.\",\"patterns\":[\"http://*:*/*\",\"http://*:*/*?*\",\"https://*:*/*?*\",\"https://*:*/*\"],\"actions\":{\"UPDATE\":true,\"QUERY\":true,\"PATCH\":true,\"CREATE\":true,\"DELETE\":true,\"READ\":true,\"ACTION\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848}"
]
);
"GET",
[
200,
{
"Date": "Tue, 24 Feb 2015 10:05:38 GMT",
"Cache-Control": "no-cache",
"Server": "Apache-Coyote/1.1",
"Content-Length": "5696",
"Content-API-Version": "protocol=1.0,resource=1.0",
"Content-Type": "application/json;charset=UTF-8"
},
"{\"result\":[{\"uuid\":\"b5ceba86-4346-4cf5-a5f2-1d2884d1a025\",\"name\":\"Provisioning Service\",\"realm\":\"/\",\"description\":\"The built-in provisioning Resource Type available to OpenAM Policies.\",\"patterns\":[\"/*\"],\"actions\":{\"UPDATE\":true,\"CREATE\":true,\"DELETE\":true,\"READ\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848},{\"uuid\":\"76656a38-5f8e-401b-83aa-4ccb74ce88d2\",\"name\":\"URL\",\"realm\":\"/\",\"description\":\"The built-in URL Resource Type available to OpenAM Policies.\",\"patterns\":[\"*://*:*/*?*\",\"*://*:*/*\"],\"actions\":{\"POST\":true,\"PATCH\":true,\"GET\":true,\"DELETE\":true,\"OPTIONS\":true,\"HEAD\":true,\"PUT\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848},{\"uuid\":\"13b27ffe-0415-4751-821c-b81675c7acc8\",\"name\":\"Paycheck\",\"realm\":\"/\",\"description\":\"The built-in paycheck Resource Type available to OpenAM Policies.\",\"patterns\":[\"http://paycheck.sun.com:8081/*/private\",\"http://paycheck.sun.com:8081/*\",\"http://paycheck.sun.com:8081/*/users/*\"],\"actions\":{\"POST\":true,\"PATCH\":true,\"GET\":true,\"DELETE\":true,\"OPTIONS\":true,\"HEAD\":true,\"PUT\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848},{\"uuid\":\"6a90eabe-9638-4333-b688-3223aec7f58a\",\"name\":\"CREST\",\"realm\":\"/\",\"description\":\"The built-in CREST Resource Type available to OpenAM Policies.\",\"patterns\":[\"http://*:*/*\",\"http://*:*/*?*\",\"https://*:*/*?*\",\"https://*:*/*\"],\"actions\":{\"UPDATE\":true,\"QUERY\":true,\"PATCH\":true,\"CREATE\":true,\"DELETE\":true,\"READ\":true,\"ACTION\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848},{\"uuid\":\"93a563eb-1f43-4cca-89f3-9a85e83401b9\",\"name\":\"Button\",\"realm\":\"/\",\"description\":\"The built-in Button Resource Type available to OpenAM Policies.\",\"patterns\":[\"btn://*:*/*\",\"btn://*:*/*?*\"],\"actions\":{\"VISIBLE\":true,\"SELECTED\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848},{\"uuid\":\"1491322b-5c50-4133-8c40-1646e1170cbb\",\"name\":\"Discovery Service\",\"realm\":\"/\",\"description\":\"The built-in discovery Resource Type available to OpenAM Policies.\",\"patterns\":[\"http://*:*/*\",\"http://*:*/*?*\",\"https://*:*/*?*\",\"https://*:*/*\"],\"actions\":{\"LOOKUP\":true,\"UPDATE\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848},{\"uuid\":\"504fe694-f1e3-4fdf-8d69-fcf2a4fce06b\",\"name\":\"IM\",\"realm\":\"/\",\"description\":\"The built-in IM Resource Type available to OpenAM Policies.\",\"patterns\":[\"http://im.sun.com/register\",\"http://im.sun.com/im.jnlp\"],\"actions\":{\"POST\":true,\"PATCH\":true,\"GET\":true,\"DELETE\":true,\"OPTIONS\":true,\"HEAD\":true,\"PUT\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848},{\"uuid\":\"398207e2-a643-4f8c-b46b-42da0f7dc63f\",\"name\":\"Bank\",\"realm\":\"/\",\"description\":\"The built-in bank Resource Type available to OpenAM Policies.\",\"patterns\":[\"*://*:*/*?*\",\"*://*:*/*\"],\"actions\":{\"TRANSFER\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848},{\"uuid\":\"74e62178-ab00-45cb-94e5-29dedbd617a5\",\"name\":\"Calendar\",\"realm\":\"/\",\"description\":\"The built-in calendar Resource Type available to OpenAM Policies.\",\"patterns\":[\"http://calendar.sun.com/my/*\",\"http://calendar.sun.com/*/calendars?calId=*\",\"http://calendar.sun.com/*\",\"http://calendar.sun.com/admin\"],\"actions\":{\"POST\":true,\"PATCH\":true,\"GET\":true,\"DELETE\":true,\"OPTIONS\":true,\"HEAD\":true,\"PUT\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848},{\"uuid\":\"09496ad8-26e3-4002-b90e-24facc2e78c1\",\"name\":\"Liberty Service\",\"realm\":\"/\",\"description\":\"The built-in liberty Resource Type available to OpenAM Policies.\",\"patterns\":[\"*://*:*/*?*\",\"*://*:*/*\"],\"actions\":{\"QUERY_interactForConsent\":false,\"QUERY_interactForValue\":false,\"MODIFY_interactForValue\":false,\"QUERY_deny\":false,\"MODIFY_deny\":false,\"MODIFY_interactForConsent\":false,\"MODIFY_allow\":true,\"QUERY_allow\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848},{\"uuid\":\"20a13582-1f32-4f83-905f-f71ff4e2e00d\",\"name\":\"Delegation Service\",\"realm\":\"/\",\"description\":\"The built-in delegation Resource Type available to OpenAM Policies.\",\"patterns\":[\"sms://*:*/*?*\",\"sms://*:*/*\"],\"actions\":{\"MODIFY\":true,\"READ\":true,\"DELEGATE\":true},\"createdBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"creationDate\":1422892465848,\"lastModifiedBy\":\"id=dsameuser,ou=user,dc=openam,dc=forgerock,dc=org\",\"lastModifiedDate\":1422892465848}],\"resultCount\":11,\"pagedResultsCookie\":null,\"remainingPagedResults\":0}"
]
);
};
});