forked from community/device-mgt-core
Merge pull request 'Fix dcr and token endpoint related issues' (#9) from vigneshan/device-mgt-core:fix/key-mgt-api into master
Reviewed-on: community/device-mgt-core#9self-register
commit
bd9aa0ea5c
@ -1,3 +1,4 @@
|
|||||||
instructions.configure = \
|
instructions.configure = \
|
||||||
org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../deployment/server/webapps/);\
|
org.eclipse.equinox.p2.touchpoint.natives.mkdir(path:${installFolder}/../../deployment/server/webapps/);\
|
||||||
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.apimgt.keymgt.extension_${feature.version}/webapps/api-key-management.war,target:${installFolder}/../../deployment/server/webapps/api-key-management.war,overwrite:true);\
|
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.apimgt.keymgt.extension_${feature.version}/webapps/api-key-management.war,target:${installFolder}/../../deployment/server/webapps/api-key-management.war,overwrite:true);\
|
||||||
|
org.eclipse.equinox.p2.touchpoint.natives.copy(source:${installFolder}/../features/org.wso2.carbon.apimgt.keymgt.extension_${feature.version}/synapse-configs/default/api/_API_Key_Management_.xml,target:${installFolder}/../../deployment/server/synapse-configs/default/api/_API_Key_Management_.xml,overwrite:true);\
|
||||||
|
@ -0,0 +1,46 @@
|
|||||||
|
<!--
|
||||||
|
~ /*
|
||||||
|
~ * Copyright (c) 2022, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||||
|
~ *
|
||||||
|
~ * Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||||
|
~ * Version 2.0 (the "License"); you may not use this file except
|
||||||
|
~ * in compliance with the License.
|
||||||
|
~ * You may obtain a copy of the License at
|
||||||
|
~ *
|
||||||
|
~ * http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
~ *
|
||||||
|
~ * Unless required by applicable law or agreed to in writing,
|
||||||
|
~ * software distributed under the License is distributed on an
|
||||||
|
~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
~ * KIND, either express or implied. See the License for the
|
||||||
|
~ * specific language governing permissions and limitations
|
||||||
|
~ * under the License.
|
||||||
|
~ */
|
||||||
|
~
|
||||||
|
-->
|
||||||
|
|
||||||
|
<api xmlns="http://ws.apache.org/ns/synapse" name="_API_Key_Management_" context="/api-application-registration/register">
|
||||||
|
<resource methods="POST" url-mapping="" faultSequence="_api_registration_fault_">
|
||||||
|
<inSequence>
|
||||||
|
<property name="uri.var.portnum" expression="get-property('system','iot.core.https.port')"/>
|
||||||
|
<property name="uri.var.hostname" expression="get-property('system','iot.core.host')"/>
|
||||||
|
<send>
|
||||||
|
<endpoint>
|
||||||
|
<http uri-template="https://{uri.var.hostname}:{uri.var.portnum}/api-key-management/dynamic-client-registration">
|
||||||
|
<timeout>
|
||||||
|
<duration>60000</duration>
|
||||||
|
<responseAction>fault</responseAction>
|
||||||
|
</timeout>
|
||||||
|
</http>
|
||||||
|
</endpoint>
|
||||||
|
</send>
|
||||||
|
</inSequence>
|
||||||
|
<outSequence>
|
||||||
|
<send/>
|
||||||
|
</outSequence>
|
||||||
|
</resource>
|
||||||
|
<handlers>
|
||||||
|
<handler class="org.wso2.carbon.apimgt.gateway.handlers.ext.APIManagerCacheExtensionHandler"/>
|
||||||
|
<handler class="org.wso2.carbon.apimgt.gateway.handlers.common.SynapsePropertiesHandler"/>
|
||||||
|
</handlers>
|
||||||
|
</api>
|
Loading…
Reference in new issue