Merge pull request #663 from janakamarasena/master
Add synapse configs to handle mutual ssl auth for androidrevert-dabc3590
commit
ddc1e8bef4
@ -0,0 +1,40 @@
|
|||||||
|
<?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.handlers.AuthenticationHandler"/>
|
||||||
|
</handlers>
|
||||||
|
</api>
|
@ -0,0 +1,87 @@
|
|||||||
|
<?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.handlers.AuthenticationHandler"/>
|
||||||
|
</handlers>
|
||||||
|
</api>
|
@ -0,0 +1,39 @@
|
|||||||
|
<?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.handlers.AuthenticationHandler"/>
|
||||||
|
</handlers>
|
||||||
|
</api>
|
Loading…
Reference in new issue