From 93a9f9027793b1cc2f038f5a4f32123e1280181b Mon Sep 17 00:00:00 2001 From: GPrathap Date: Thu, 9 Jun 2016 13:05:35 +0530 Subject: [PATCH] overriding default designer.json which is coming from portal app --- modules/distribution/src/assembly/bin.xml | 7 ++ .../jaggeryapps/portal/configs/designer.json | 66 +++++++++++++++++++ .../jaggeryapps/ues/configs/designer.json | 42 ------------ 3 files changed, 73 insertions(+), 42 deletions(-) create mode 100644 modules/distribution/src/repository/jaggeryapps/portal/configs/designer.json delete mode 100644 modules/distribution/src/repository/jaggeryapps/ues/configs/designer.json diff --git a/modules/distribution/src/assembly/bin.xml b/modules/distribution/src/assembly/bin.xml index 79ba06ab..4ce80ac7 100644 --- a/modules/distribution/src/assembly/bin.xml +++ b/modules/distribution/src/assembly/bin.xml @@ -730,6 +730,13 @@ 755 + + src/repository/jaggeryapps/portal/configs/designer.json + + ${pom.artifactId}-${pom.version}/repository/deployment/server/jaggeryapps/portal/configs + + 755 + diff --git a/modules/distribution/src/repository/jaggeryapps/portal/configs/designer.json b/modules/distribution/src/repository/jaggeryapps/portal/configs/designer.json new file mode 100644 index 00000000..9667a236 --- /dev/null +++ b/modules/distribution/src/repository/jaggeryapps/portal/configs/designer.json @@ -0,0 +1,66 @@ +{ + "store": { + "types": ["fs"] + }, + "gadgetGeneration" :{ + "isCreateGadgetEnable": false, + "ignoreProviders": ["rt"] + }, + "authentication": { + "activeMethod": "basic", + "methods": { + "sso": { + "attributes": { + "issuer": "portal", + "identityProviderURL": "https://localhost:9443/samlsso", + "responseSigningEnabled": "false", + "acs": "https://localhost:9444/portal/acs", + "identityAlias": "wso2carbon", + "useTenantKey": false + } + }, + "basic": { + "attributes": {} + } + } + }, + "authorization": { + "activeMethod": "oauth", + "methods": { + "oauth": { + "attributes": { + "idPServer": "https://localhost:9443/oauth2/token", + "dynamicClientProperties": { + "callbackUrl": "https://localhost:9443/portal", + "clientName": "portal", + "owner": "admin", + "applicationType": "JaggeryApp", + "grantType": "password refresh_token urn:ietf:params:oauth:grant-type:saml2-bearer", + "saasApp": false, + "dynamicClientRegistrationEndPoint": "https://localhost:9443/dynamic-client-web/register/", + "tokenScope": "Production" + } + } + } + } + }, + "designers": [ + "Internal/everyone" + ], + "tenantPrefix": "/t", + "shareStore": false, + "theme": "basic", + "cacheTimeoutSeconds": "5", + "cacheSizeBytes": "1073741824", + "defaultDashboardRedirect": false, + "isCreateGadgetEnable": true, + "oauth": { + "username": "admin", + "password": "admin" + }, + "host": { + "hostname": "localhost", + "port": "", + "protocol": "" + } +} \ No newline at end of file diff --git a/modules/distribution/src/repository/jaggeryapps/ues/configs/designer.json b/modules/distribution/src/repository/jaggeryapps/ues/configs/designer.json deleted file mode 100644 index a35c8441..00000000 --- a/modules/distribution/src/repository/jaggeryapps/ues/configs/designer.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "store": { - "type": "fs" - }, - "authentication": { - "activeMethod": "basic", - "methods": { - "sso": { - "attributes": { - "issuer": "portal", - "identityProviderURL": "https://localhost:9443/samlsso", - "responseSigningEnabled": "false", - "acs": "https://localhost:9444/portal/acs", - "identityAlias": "wso2carbon", - "useTenantKey": false - } - }, - "basic": { - "attributes": {} - } - } - }, - "designers": [ - "Internal/everyone" - ], - "tenantPrefix": "/t", - "shareStore": false, - "theme": "analytics", - "cacheTimeoutSeconds": "5", - "cacheSizeBytes": "1073741824", - "defaultDashboardRedirect": false, - "isCreateGadgetEnable": false, - "oauth": { - "username": "admin", - "password": "admin" - }, - "host": { - "hostname": "localhost", - "port": "", - "protocol": "" - } -}