mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Add synapse configs to handle mutual ssl auth for android
This commit is contained in:
parent
c3fb32f3bc
commit
7db99295f5
@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<api xmlns="http://ws.apache.org/ns/synapse"
|
||||
name="admin--Android-Mutual-SSL-Configuration-Management"
|
||||
context="/api/device-mgt/android/mssl/v1.0/configuration">
|
||||
<resource methods="GET" url-mapping="/license" faultSequence="fault">
|
||||
<inSequence>
|
||||
<property name="api.ut.backendRequestTime" expression="get-property('SYSTEM_TIME')"/>
|
||||
<send>
|
||||
<endpoint name="admin--Android Mutual SSL Configuration Management_APIproductionEndpoint_0">
|
||||
<http uri-template="https://localhost:9443/api/device-mgt/android/v1.0/configuration"/>
|
||||
<property name="ENDPOINT_ADDRESS"
|
||||
value="https://localhost:9443/api/device-mgt/android/v1.0/configuration"/>
|
||||
</endpoint>
|
||||
</send>
|
||||
</inSequence>
|
||||
<outSequence>
|
||||
<class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
|
||||
<send/>
|
||||
</outSequence>
|
||||
</resource>
|
||||
<resource methods="PUT GET" url-mapping="/*" faultSequence="fault">
|
||||
<inSequence>
|
||||
<property name="api.ut.backendRequestTime" expression="get-property('SYSTEM_TIME')"/>
|
||||
<send>
|
||||
<endpoint name="admin--Android Mutual SSL Configuration Management_APIproductionEndpoint_1">
|
||||
<http uri-template="https://localhost:9443/api/device-mgt/android/v1.0/configuration"/>
|
||||
<property name="ENDPOINT_ADDRESS"
|
||||
value="https://localhost:9443/api/device-mgt/android/v1.0/configuration"/>
|
||||
</endpoint>
|
||||
</send>
|
||||
</inSequence>
|
||||
<outSequence>
|
||||
<class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
|
||||
<send/>
|
||||
</outSequence>
|
||||
</resource>
|
||||
<handlers>
|
||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.common.APIMgtLatencyStatsHandler"/>
|
||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.security.CORSRequestHandler">
|
||||
<property name="apiImplementationType" value="ENDPOINT"/>
|
||||
</handler>
|
||||
<handler class="org.wso2.carbon.apimgt.handlers.AuthenticationHandler"/>
|
||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtUsageHandler"/>
|
||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtGoogleAnalyticsTrackingHandler">
|
||||
<property name="configKey" value="gov:/apimgt/statistics/ga-config.xml"/>
|
||||
</handler>
|
||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.ext.APIManagerExtensionHandler"/>
|
||||
</handlers>
|
||||
</api>
|
||||
@ -0,0 +1,96 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<api xmlns="http://ws.apache.org/ns/synapse" name="admin--Android-Mutual-SSL-Device-Management"
|
||||
context="/api/device-mgt/android/mssl/v1.0/devices">
|
||||
<resource methods="GET" uri-template="/{id}/status" faultSequence="fault">
|
||||
<inSequence>
|
||||
<property name="api.ut.backendRequestTime" expression="get-property('SYSTEM_TIME')"/>
|
||||
<send>
|
||||
<endpoint name="admin--Android Mutual SSL Device Management_APIproductionEndpoint_0">
|
||||
<http uri-template="https://localhost:9443/api/device-mgt/android/v1.0/devices"/>
|
||||
<property name="ENDPOINT_ADDRESS"
|
||||
value="https://localhost:9443/api/device-mgt/android/v1.0/devices"/>
|
||||
</endpoint>
|
||||
</send>
|
||||
</inSequence>
|
||||
<outSequence>
|
||||
<class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
|
||||
<send/>
|
||||
</outSequence>
|
||||
</resource>
|
||||
<resource methods="DELETE PUT" uri-template="/{id}" faultSequence="fault">
|
||||
<inSequence>
|
||||
<property name="api.ut.backendRequestTime" expression="get-property('SYSTEM_TIME')"/>
|
||||
<send>
|
||||
<endpoint name="admin--Android Mutual SSL Device Management_APIproductionEndpoint_1">
|
||||
<http uri-template="https://localhost:9443/api/device-mgt/android/v1.0/devices"/>
|
||||
<property name="ENDPOINT_ADDRESS"
|
||||
value="https://localhost:9443/api/device-mgt/android/v1.0/devices"/>
|
||||
</endpoint>
|
||||
</send>
|
||||
</inSequence>
|
||||
<outSequence>
|
||||
<class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
|
||||
<send/>
|
||||
</outSequence>
|
||||
</resource>
|
||||
<resource methods="PUT" uri-template="/{id}/applications" faultSequence="fault">
|
||||
<inSequence>
|
||||
<property name="api.ut.backendRequestTime" expression="get-property('SYSTEM_TIME')"/>
|
||||
<send>
|
||||
<endpoint name="admin--Android Mutual SSL Device Management_APIproductionEndpoint_2">
|
||||
<http uri-template="https://localhost:9443/api/device-mgt/android/v1.0/devices"/>
|
||||
<property name="ENDPOINT_ADDRESS"
|
||||
value="https://localhost:9443/api/device-mgt/android/v1.0/devices"/>
|
||||
</endpoint>
|
||||
</send>
|
||||
</inSequence>
|
||||
<outSequence>
|
||||
<class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
|
||||
<send/>
|
||||
</outSequence>
|
||||
</resource>
|
||||
<resource methods="POST" url-mapping="/*" faultSequence="fault">
|
||||
<inSequence>
|
||||
<property name="api.ut.backendRequestTime" expression="get-property('SYSTEM_TIME')"/>
|
||||
<send>
|
||||
<endpoint name="admin--Android Mutual SSL Device Management_APIproductionEndpoint_3">
|
||||
<http uri-template="https://localhost:9443/api/device-mgt/android/v1.0/devices"/>
|
||||
<property name="ENDPOINT_ADDRESS"
|
||||
value="https://localhost:9443/api/device-mgt/android/v1.0/devices"/>
|
||||
</endpoint>
|
||||
</send>
|
||||
</inSequence>
|
||||
<outSequence>
|
||||
<class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
|
||||
<send/>
|
||||
</outSequence>
|
||||
</resource>
|
||||
<resource methods="PUT" uri-template="/{id}/pending-operations" faultSequence="fault">
|
||||
<inSequence>
|
||||
<property name="api.ut.backendRequestTime" expression="get-property('SYSTEM_TIME')"/>
|
||||
<send>
|
||||
<endpoint name="admin--Android Mutual SSL Device Management_APIproductionEndpoint_4">
|
||||
<http uri-template="https://localhost:9443/api/device-mgt/android/v1.0/devices"/>
|
||||
<property name="ENDPOINT_ADDRESS"
|
||||
value="https://localhost:9443/api/device-mgt/android/v1.0/devices"/>
|
||||
</endpoint>
|
||||
</send>
|
||||
</inSequence>
|
||||
<outSequence>
|
||||
<class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
|
||||
<send/>
|
||||
</outSequence>
|
||||
</resource>
|
||||
<handlers>
|
||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.common.APIMgtLatencyStatsHandler"/>
|
||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.security.CORSRequestHandler">
|
||||
<property name="apiImplementationType" value="ENDPOINT"/>
|
||||
</handler>
|
||||
<handler class="org.wso2.carbon.apimgt.handlers.AuthenticationHandler"/>
|
||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtUsageHandler"/>
|
||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtGoogleAnalyticsTrackingHandler">
|
||||
<property name="configKey" value="gov:/apimgt/statistics/ga-config.xml"/>
|
||||
</handler>
|
||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.ext.APIManagerExtensionHandler"/>
|
||||
</handlers>
|
||||
</api>
|
||||
@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<api xmlns="http://ws.apache.org/ns/synapse" name="admin--Android-Mutual-SSL-Event-Receiver"
|
||||
context="/api/device-mgt/android/mssl/v1.0/events">
|
||||
<resource methods="GET" url-mapping="/*" faultSequence="fault">
|
||||
<inSequence>
|
||||
<property name="api.ut.backendRequestTime" expression="get-property('SYSTEM_TIME')"/>
|
||||
<send>
|
||||
<endpoint name="admin--Android Mutual SSL Event Receiver_APIproductionEndpoint_0">
|
||||
<http uri-template="https://localhost:9443/api/device-mgt/android/v1.0/events"/>
|
||||
<property name="ENDPOINT_ADDRESS"
|
||||
value="https://localhost:9443/api/device-mgt/android/v1.0/events"/>
|
||||
</endpoint>
|
||||
</send>
|
||||
</inSequence>
|
||||
<outSequence>
|
||||
<class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
|
||||
<send/>
|
||||
</outSequence>
|
||||
</resource>
|
||||
<resource methods="POST" url-mapping="/publish" faultSequence="fault">
|
||||
<inSequence>
|
||||
<property name="api.ut.backendRequestTime" expression="get-property('SYSTEM_TIME')"/>
|
||||
<send>
|
||||
<endpoint name="admin--Android Event Receiver_APIproductionEndpoint_1">
|
||||
<http uri-template="https://localhost:9443/api/device-mgt/android/v1.0/events"/>
|
||||
<property name="ENDPOINT_ADDRESS"
|
||||
value="https://localhost:9443/api/device-mgt/android/v1.0/events"/>
|
||||
</endpoint>
|
||||
</send>
|
||||
</inSequence>
|
||||
<outSequence>
|
||||
<class name="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtResponseHandler"/>
|
||||
<send/>
|
||||
</outSequence>
|
||||
</resource>
|
||||
<handlers>
|
||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.common.APIMgtLatencyStatsHandler"/>
|
||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.security.CORSRequestHandler">
|
||||
<property name="apiImplementationType" value="ENDPOINT"/>
|
||||
</handler>
|
||||
<handler class="org.wso2.carbon.apimgt.handlers.AuthenticationHandler"/>
|
||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtUsageHandler"/>
|
||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.analytics.APIMgtGoogleAnalyticsTrackingHandler">
|
||||
<property name="configKey" value="gov:/apimgt/statistics/ga-config.xml"/>
|
||||
</handler>
|
||||
<handler class="org.wso2.carbon.apimgt.gateway.handlers.ext.APIManagerExtensionHandler"/>
|
||||
</handlers>
|
||||
</api>
|
||||
@ -13,6 +13,9 @@ org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../featur
|
||||
org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../deployment/server/devicetypes/);\
|
||||
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.mobile.android_${feature.version}/devicetypes/,target:${installFolder}/../../deployment/server/devicetypes/,overwrite:true);\
|
||||
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.mobile.android_${feature.version}/email/templates,target:${installFolder}/../../../repository/resources/email-templates,overwrite:true);\
|
||||
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.mobile.android_${feature.version}/apis/admin--Android-Mutual-SSL-Configuration-Management.xml,target:${installFolder}/../../deployment/server/synapse-configs/default/api/admin--Android-Mutual-SSL-Configuration-Management.xml,overwrite:true);\
|
||||
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.mobile.android_${feature.version}/apis/admin--Android-Mutual-SSL-Device-Management.xml,target:${installFolder}/../../deployment/server/synapse-configs/default/api/admin--Android-Mutual-SSL-Device-Management.xml,overwrite:true);\
|
||||
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.device.mgt.mobile.android_${feature.version}/apis/admin--Android-Mutual-SSL-Event-Receiver.xml,target:${installFolder}/../../deployment/server/synapse-configs/default/api/admin--Android-Mutual-SSL-Event-Receiver.xml,overwrite:true);\
|
||||
|
||||
instructions.unconfigure = \
|
||||
org.eclipse.equinox.p2.touchpoint.natives.remove(path:${installFolder}/../../deployment/server/webapps/mdm-android-agent.war);\
|
||||
|
||||
Loading…
Reference in New Issue
Block a user