updated APIM version

merge-requests/1/head
ayyoob 9 years ago
parent 7a9b5547bd
commit 69740cc2f2

@ -0,0 +1,119 @@
<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
xmlns:throttle="http://www.wso2.org/products/wso2commons/throttle">
<throttle:MediatorThrottleAssertion>
<wsp:Policy>
<!--It's possible to define a display name for a tier to show in UIs by adding the attribute of throttle:displayName="xxxx" for <throttle:ID>
element.
For ex: <throttle:ID throttle:type="ROLE" throttle:displayName="xxxx">Gold</throttle:ID>
......
-->
<throttle:ID throttle:type="ROLE">Large</throttle:ID>
<wsp:Policy>
<throttle:Control>
<wsp:Policy>
<throttle:MaximumCount>20</throttle:MaximumCount>
<throttle:UnitTime>60000</throttle:UnitTime>
<!--It's possible to define tier level attributes as below for each tier level.For eg:Payment Plan for a tier
<wsp:Policy>
<throttle:Attributes>
<throttle:Attribute1>xxxx</throttle:Attribute1>
<throttle:Attribute2>xxxx</throttle:Attribute2>
</throttle:Attributes>
</wsp:Policy>
-->
<wsp:Policy>
<throttle:Attributes>
<throttle:x-wso2-BillingPlan>FREE</throttle:x-wso2-BillingPlan>
<throttle:x-wso2-StopOnQuotaReach>true</throttle:x-wso2-StopOnQuotaReach>
</throttle:Attributes>
</wsp:Policy>
</wsp:Policy>
</throttle:Control>
</wsp:Policy>
</wsp:Policy>
<wsp:Policy>
<!--It's possible to define a display name for a tier to show in UIs by adding the attribute of throttle:displayName="xxxx" for <throttle:ID>
element.
For ex: <throttle:ID throttle:type="ROLE" throttle:displayName="xxxx">Gold</throttle:ID>
......
-->
<throttle:ID throttle:type="ROLE">Medium</throttle:ID>
<wsp:Policy>
<throttle:Control>
<wsp:Policy>
<throttle:MaximumCount>5</throttle:MaximumCount>
<throttle:UnitTime>60000</throttle:UnitTime>
<!--It's possible to define tier level attributes as below for each tier level.For eg:Payment Plan for a tier
<wsp:Policy>
<throttle:Attributes>
<throttle:Attribute1>xxxx</throttle:Attribute1>
<throttle:Attribute2>xxxx</throttle:Attribute2>
</throttle:Attributes>
</wsp:Policy>
-->
<wsp:Policy>
<throttle:Attributes>
<throttle:x-wso2-BillingPlan>FREE</throttle:x-wso2-BillingPlan>
<throttle:x-wso2-StopOnQuotaReach>true</throttle:x-wso2-StopOnQuotaReach>
</throttle:Attributes>
</wsp:Policy>
</wsp:Policy>
</throttle:Control>
</wsp:Policy>
</wsp:Policy>
<wsp:Policy>
<!--It's possible to define a display name for a tier to show in UIs by adding the attribute of throttle:displayName="xxxx" for <throttle:ID>
element.
For ex: <throttle:ID throttle:type="ROLE" throttle:displayName="xxxx">Gold</throttle:ID>
......
-->
<throttle:ID throttle:type="ROLE">Small</throttle:ID>
<wsp:Policy>
<throttle:Control>
<wsp:Policy>
<throttle:MaximumCount>1</throttle:MaximumCount>
<throttle:UnitTime>60000</throttle:UnitTime>
<!--It's possible to define tier level attributes as below for each tier level.For eg:Payment Plan for a tier
<wsp:Policy>
<throttle:Attributes>
<throttle:Attribute1>xxxx</throttle:Attribute1>
<throttle:Attribute2>xxxx</throttle:Attribute2>
</throttle:Attributes>
</wsp:Policy>
-->
<wsp:Policy>
<throttle:Attributes>
<throttle:x-wso2-BillingPlan>FREE</throttle:x-wso2-BillingPlan>
<throttle:x-wso2-StopOnQuotaReach>true</throttle:x-wso2-StopOnQuotaReach>
</throttle:Attributes>
</wsp:Policy>
</wsp:Policy>
</throttle:Control>
</wsp:Policy>
</wsp:Policy>
<wsp:Policy>
<!--It's possible to define a display name for a tier to show in UIs by adding the attribute of throttle:displayName="xxxx" for <throttle:ID>
element.
For ex: <throttle:ID throttle:type="ROLE" throttle:displayName="xxxx">Gold</throttle:ID>
......
-->
<throttle:ID throttle:type="ROLE">Unauthenticated</throttle:ID>
<wsp:Policy>
<throttle:Control>
<wsp:Policy>
<throttle:MaximumCount>60</throttle:MaximumCount>
<throttle:UnitTime>60000</throttle:UnitTime>
<!--It's possible to define tier level attributes as below for each tier level.For eg:Payment Plan for a tier
<wsp:Policy>
<throttle:Attributes>
<throttle:Attribute1>xxxx</throttle:Attribute1>
<throttle:Attribute2>xxxx</throttle:Attribute2>
</throttle:Attributes>
</wsp:Policy>
-->
</wsp:Policy>
</throttle:Control>
</wsp:Policy>
</wsp:Policy>
</throttle:MediatorThrottleAssertion>
</wsp:Policy>

@ -0,0 +1,119 @@
<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
xmlns:throttle="http://www.wso2.org/products/wso2commons/throttle">
<throttle:MediatorThrottleAssertion>
<wsp:Policy>
<!--It's possible to define a display name for a tier to show in UIs by adding the attribute of throttle:displayName="xxxx" for <throttle:ID>
element.
For ex: <throttle:ID throttle:type="ROLE" throttle:displayName="xxxx">Gold</throttle:ID>
......
-->
<throttle:ID throttle:type="ROLE">Ultimate</throttle:ID>
<wsp:Policy>
<throttle:Control>
<wsp:Policy>
<throttle:MaximumCount>20</throttle:MaximumCount>
<throttle:UnitTime>60000</throttle:UnitTime>
<!--It's possible to define tier level attributes as below for each tier level.For eg:Payment Plan for a tier
<wsp:Policy>
<throttle:Attributes>
<throttle:Attribute1>xxxx</throttle:Attribute1>
<throttle:Attribute2>xxxx</throttle:Attribute2>
</throttle:Attributes>
</wsp:Policy>
-->
<wsp:Policy>
<throttle:Attributes>
<throttle:x-wso2-BillingPlan>FREE</throttle:x-wso2-BillingPlan>
<throttle:x-wso2-StopOnQuotaReach>true</throttle:x-wso2-StopOnQuotaReach>
</throttle:Attributes>
</wsp:Policy>
</wsp:Policy>
</throttle:Control>
</wsp:Policy>
</wsp:Policy>
<wsp:Policy>
<!--It's possible to define a display name for a tier to show in UIs by adding the attribute of throttle:displayName="xxxx" for <throttle:ID>
element.
For ex: <throttle:ID throttle:type="ROLE" throttle:displayName="xxxx">Gold</throttle:ID>
......
-->
<throttle:ID throttle:type="ROLE">Plus</throttle:ID>
<wsp:Policy>
<throttle:Control>
<wsp:Policy>
<throttle:MaximumCount>5</throttle:MaximumCount>
<throttle:UnitTime>60000</throttle:UnitTime>
<!--It's possible to define tier level attributes as below for each tier level.For eg:Payment Plan for a tier
<wsp:Policy>
<throttle:Attributes>
<throttle:Attribute1>xxxx</throttle:Attribute1>
<throttle:Attribute2>xxxx</throttle:Attribute2>
</throttle:Attributes>
</wsp:Policy>
-->
<wsp:Policy>
<throttle:Attributes>
<throttle:x-wso2-BillingPlan>FREE</throttle:x-wso2-BillingPlan>
<throttle:x-wso2-StopOnQuotaReach>true</throttle:x-wso2-StopOnQuotaReach>
</throttle:Attributes>
</wsp:Policy>
</wsp:Policy>
</throttle:Control>
</wsp:Policy>
</wsp:Policy>
<wsp:Policy>
<!--It's possible to define a display name for a tier to show in UIs by adding the attribute of throttle:displayName="xxxx" for <throttle:ID>
element.
For ex: <throttle:ID throttle:type="ROLE" throttle:displayName="xxxx">Gold</throttle:ID>
......
-->
<throttle:ID throttle:type="ROLE">Basic</throttle:ID>
<wsp:Policy>
<throttle:Control>
<wsp:Policy>
<throttle:MaximumCount>1</throttle:MaximumCount>
<throttle:UnitTime>60000</throttle:UnitTime>
<!--It's possible to define tier level attributes as below for each tier level.For eg:Payment Plan for a tier
<wsp:Policy>
<throttle:Attributes>
<throttle:Attribute1>xxxx</throttle:Attribute1>
<throttle:Attribute2>xxxx</throttle:Attribute2>
</throttle:Attributes>
</wsp:Policy>
-->
<wsp:Policy>
<throttle:Attributes>
<throttle:x-wso2-BillingPlan>FREE</throttle:x-wso2-BillingPlan>
<throttle:x-wso2-StopOnQuotaReach>true</throttle:x-wso2-StopOnQuotaReach>
</throttle:Attributes>
</wsp:Policy>
</wsp:Policy>
</throttle:Control>
</wsp:Policy>
</wsp:Policy>
<wsp:Policy>
<!--It's possible to define a display name for a tier to show in UIs by adding the attribute of throttle:displayName="xxxx" for <throttle:ID>
element.
For ex: <throttle:ID throttle:type="ROLE" throttle:displayName="xxxx">Gold</throttle:ID>
......
-->
<throttle:ID throttle:type="ROLE">Unauthenticated</throttle:ID>
<wsp:Policy>
<throttle:Control>
<wsp:Policy>
<throttle:MaximumCount>60</throttle:MaximumCount>
<throttle:UnitTime>60000</throttle:UnitTime>
<!--It's possible to define tier level attributes as below for each tier level.For eg:Payment Plan for a tier
<wsp:Policy>
<throttle:Attributes>
<throttle:Attribute1>xxxx</throttle:Attribute1>
<throttle:Attribute2>xxxx</throttle:Attribute2>
</throttle:Attributes>
</wsp:Policy>
-->
</wsp:Policy>
</throttle:Control>
</wsp:Policy>
</wsp:Policy>
</throttle:MediatorThrottleAssertion>
</wsp:Policy>

@ -0,0 +1,122 @@
<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
xmlns:throttle="http://www.wso2.org/products/wso2commons/throttle">
<throttle:MediatorThrottleAssertion>
<wsp:Policy>
<!--It's possible to define a display name for a tier to show in UIs by adding the attribute of throttle:displayName="xxxx" for <throttle:ID>
element.
For ex: <throttle:ID throttle:type="ROLE" throttle:displayName="xxxx">Gold</throttle:ID>
......
-->
<throttle:ID throttle:type="ROLE">Gold</throttle:ID>
<wsp:Policy>
<throttle:Control>
<wsp:Policy>
<throttle:MaximumCount>20</throttle:MaximumCount>
<throttle:UnitTime>60000</throttle:UnitTime>
<!--It's possible to define tier level attributes as below for each tier level.For eg:Payment Plan for a tier
<wsp:Policy>
<throttle:Attributes>
<throttle:Attribute1>xxxx</throttle:Attribute1>
<throttle:Attribute2>xxxx</throttle:Attribute2>
</throttle:Attributes>
</wsp:Policy>
-->
<wsp:Policy>
<throttle:Attributes>
<throttle:x-wso2-BillingPlan>FREE</throttle:x-wso2-BillingPlan>
<throttle:x-wso2-StopOnQuotaReach>true</throttle:x-wso2-StopOnQuotaReach>
</throttle:Attributes>
</wsp:Policy>
</wsp:Policy>
</throttle:Control>
</wsp:Policy>
</wsp:Policy>
<wsp:Policy>
<!--It's possible to define a display name for a tier to show in UIs by adding the attribute of throttle:displayName="xxxx" for <throttle:ID>
element.
For ex: <throttle:ID throttle:type="ROLE" throttle:displayName="xxxx">Gold</throttle:ID>
......
-->
<throttle:ID throttle:type="ROLE">Silver</throttle:ID>
<wsp:Policy>
<throttle:Control>
<wsp:Policy>
<throttle:MaximumCount>5</throttle:MaximumCount>
<throttle:UnitTime>60000</throttle:UnitTime>
<!--It's possible to define tier level attributes as below for each tier level.For eg:Payment Plan for a tier
<wsp:Policy>
<throttle:Attributes>
<throttle:Attribute1>xxxx</throttle:Attribute1>
<throttle:Attribute2>xxxx</throttle:Attribute2>
</throttle:Attributes>
</wsp:Policy>
-->
<wsp:Policy>
<throttle:Attributes>
<throttle:x-wso2-BillingPlan>FREE</throttle:x-wso2-BillingPlan>
<throttle:x-wso2-StopOnQuotaReach>true</throttle:x-wso2-StopOnQuotaReach>
</throttle:Attributes>
</wsp:Policy>
</wsp:Policy>
</throttle:Control>
</wsp:Policy>
</wsp:Policy>
<wsp:Policy>
<!--It's possible to define a display name for a tier to show in UIs by adding the attribute of throttle:displayName="xxxx" for <throttle:ID>
element.
For ex: <throttle:ID throttle:type="ROLE" throttle:displayName="xxxx">Gold</throttle:ID>
......
-->
<throttle:ID throttle:type="ROLE">Bronze</throttle:ID>
<wsp:Policy>
<throttle:Control>
<wsp:Policy>
<throttle:MaximumCount>1</throttle:MaximumCount>
<throttle:UnitTime>60000</throttle:UnitTime>
<!--It's possible to define tier level attributes as below for each tier level.For eg:Payment Plan for a tier
<wsp:Policy>
<throttle:Attributes>
<throttle:Attribute1>xxxx</throttle:Attribute1>
<throttle:Attribute2>xxxx</throttle:Attribute2>
</throttle:Attributes>
</wsp:Policy>
-->
<wsp:Policy>
<throttle:Attributes>
<throttle:x-wso2-BillingPlan>FREE</throttle:x-wso2-BillingPlan>
<throttle:x-wso2-StopOnQuotaReach>true</throttle:x-wso2-StopOnQuotaReach>
</throttle:Attributes>
</wsp:Policy>
</wsp:Policy>
</throttle:Control>
</wsp:Policy>
</wsp:Policy>
<wsp:Policy>
<!--It's possible to define a display name for a tier to show in UIs by adding the attribute of throttle:displayName="xxxx" for <throttle:ID>
element.
For ex: <throttle:ID throttle:type="ROLE" throttle:displayName="xxxx">Gold</throttle:ID>
......
-->
<throttle:ID throttle:type="ROLE">Unauthenticated</throttle:ID>
<wsp:Policy>
<throttle:Control>
<wsp:Policy>
<throttle:MaximumCount>60</throttle:MaximumCount>
<throttle:UnitTime>60000</throttle:UnitTime>
<!--It's possible to define tier level attributes as below for each tier level.For eg:Payment Plan for a tier
<wsp:Policy>
<throttle:Attributes>
<throttle:Attribute1>xxxx</throttle:Attribute1>
<throttle:Attribute2>xxxx</throttle:Attribute2>
</throttle:Attributes>
</wsp:Policy>
-->
</wsp:Policy>
</throttle:Control>
</wsp:Policy>
</wsp:Policy>
</throttle:MediatorThrottleAssertion>
</wsp:Policy>

@ -0,0 +1,24 @@
<api xmlns="http://ws.apache.org/ns/synapse" name="_WSO2AMAuthorizeAPI_" context="/authorize">
<resource methods="GET" url-mapping="/*" faultSequence="_token_fault_">
<inSequence>
<property name="uri.var.portnum" expression="get-property('keyManager.port')"/>
<property name="uri.var.hostname" expression="get-property('keyManager.hostname')"/>
<send>
<endpoint>
<http uri-template="https://{uri.var.hostname}:{uri.var.portnum}/oauth2/authorize">
<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.common.SynapsePropertiesHandler"/>
</handlers>
</api>

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?><api xmlns="http://ws.apache.org/ns/synapse" name="_WSO2AMRevokeAPI_" context="/revoke">
<resource methods="POST" url-mapping="/*" faultSequence="_token_fault_">
<inSequence>
<property name="uri.var.portnum" expression="get-property('keyManager.port')"/>
<property name="uri.var.hostname" expression="get-property('keyManager.hostname')"/>
<send>
<endpoint>
<http uri-template="https://{uri.var.hostname}:{uri.var.portnum}/oauth2/revoke">
<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>

@ -0,0 +1,25 @@
<api xmlns="http://ws.apache.org/ns/synapse" name="_WSO2AMTokenAPI_" context="/token">
<resource methods="POST" url-mapping="/*" faultSequence="_token_fault_">
<inSequence>
<property name="uri.var.portnum" expression="get-property('keyManager.port')"/>
<property name="uri.var.hostname" expression="get-property('keyManager.hostname')"/>
<send>
<endpoint>
<http uri-template="https://{uri.var.hostname}:{uri.var.portnum}/oauth2/token">
<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>

@ -0,0 +1,24 @@
<api xmlns="http://ws.apache.org/ns/synapse" name="_WSO2AMUserInfoAPI_" context="/userinfo">
<resource methods="GET" url-mapping="/*" faultSequence="_token_fault_">
<inSequence>
<property name="uri.var.portnum" expression="get-property('keyManager.port')"/>
<property name="uri.var.hostname" expression="get-property('keyManager.hostname')"/>
<send>
<endpoint>
<http uri-template="https://{uri.var.hostname}:{uri.var.portnum}/oauth2/userinfo">
<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.common.SynapsePropertiesHandler"/>
</handlers>
</api>

@ -0,0 +1,145 @@
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="WorkflowCallbackService"
transports="https http"
startOnLoad="true"
trace="disable">
<description/>
<target>
<inSequence>
<property name="messageType"
value="application/x-www-form-urlencoded"
scope="axis2"
type="STRING"/>
<send>
<endpoint>
<address uri="https://localhost:9443/store/site/blocks/workflow/workflow-listener/ajax/workflow-listener.jag"
format="rest"/>
</endpoint>
</send>
</inSequence>
<outSequence>
<property name="messageType" value="text/xml" scope="axis2" type="STRING"/>
<send/>
</outSequence>
</target>
<publishWSDL>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:ns1="http://org.apache.axis2/xsd"
xmlns:ns="http://callback.workflow.apimgt.carbon.wso2.org"
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
targetNamespace="http://callback.workflow.apimgt.carbon.wso2.org">
<wsdl:documentation>WorkflowCallbackService</wsdl:documentation>
<wsdl:types>
<xs:schema attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="http://callback.workflow.apimgt.carbon.wso2.org">
<xs:element name="resumeEvent">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0"
name="workflowReference"
nillable="true"
type="xs:string"/>
<xs:element minOccurs="0" name="status" nillable="true" type="xs:string"/>
<xs:element minOccurs="0"
name="description"
nillable="true"
type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="resumeEventResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
<wsdl:message name="resumeEventRequest">
<wsdl:part name="parameters" element="ns:resumeEvent"/>
</wsdl:message>
<wsdl:message name="resumeEventResponse">
<wsdl:part name="parameters" element="ns:resumeEventResponse"/>
</wsdl:message>
<wsdl:portType name="WorkflowCallbackServicePortType">
<wsdl:operation name="resumeEvent">
<wsdl:input message="ns:resumeEventRequest" wsaw:Action="urn:resumeEvent"/>
<wsdl:output message="ns:resumeEventResponse" wsaw:Action="urn:resumeEventResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="WorkflowCallbackServiceSoap11Binding"
type="ns:WorkflowCallbackServicePortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="resumeEvent">
<soap:operation soapAction="urn:resumeEvent" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="WorkflowCallbackServiceSoap12Binding"
type="ns:WorkflowCallbackServicePortType">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="resumeEvent">
<soap12:operation soapAction="urn:resumeEvent" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="WorkflowCallbackServiceHttpBinding"
type="ns:WorkflowCallbackServicePortType">
<http:binding verb="POST"/>
<wsdl:operation name="resumeEvent">
<http:operation location="resumeEvent"/>
<wsdl:input>
<mime:content type="text/xml" part="parameters"/>
</wsdl:input>
<wsdl:output>
<mime:content type="text/xml" part="parameters"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="WorkflowCallbackService">
<wsdl:port name="WorkflowCallbackServiceHttpsSoap11Endpoint"
binding="ns:WorkflowCallbackServiceSoap11Binding">
<soap:address location="https://localhost:8243/services/WorkflowCallbackService.WorkflowCallbackServiceHttpsSoap11Endpoint/"/>
</wsdl:port>
<wsdl:port name="WorkflowCallbackServiceHttpSoap11Endpoint"
binding="ns:WorkflowCallbackServiceSoap11Binding">
<soap:address location="http://localhost:8280/services/WorkflowCallbackService.WorkflowCallbackServiceHttpSoap11Endpoint/"/>
</wsdl:port>
<wsdl:port name="WorkflowCallbackServiceHttpsSoap12Endpoint"
binding="ns:WorkflowCallbackServiceSoap12Binding">
<soap12:address location="https://localhost:8243/services/WorkflowCallbackService.WorkflowCallbackServiceHttpsSoap12Endpoint/"/>
</wsdl:port>
<wsdl:port name="WorkflowCallbackServiceHttpSoap12Endpoint"
binding="ns:WorkflowCallbackServiceSoap12Binding">
<soap12:address location="http://localhost:8280/services/WorkflowCallbackService.WorkflowCallbackServiceHttpSoap12Endpoint/"/>
</wsdl:port>
<wsdl:port name="WorkflowCallbackServiceHttpsEndpoint"
binding="ns:WorkflowCallbackServiceHttpBinding">
<http:address location="https://localhost:8243/services/WorkflowCallbackService.WorkflowCallbackServiceHttpsEndpoint/"/>
</wsdl:port>
<wsdl:port name="WorkflowCallbackServiceHttpEndpoint"
binding="ns:WorkflowCallbackServiceHttpBinding">
<http:address location="http://localhost:8280/services/WorkflowCallbackService.WorkflowCallbackServiceHttpEndpoint/"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
</publishWSDL>
</proxy>

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
~ Copyright (c) 2005-2010, WSO2 Inc. (http://wso2.com) All Rights Reserved.
~
~ WSO2 Inc. 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.
-->
<!-- Registry declaration of the WSO2 ESB -->
<registry xmlns="http://ws.apache.org/ns/synapse" provider="org.wso2.carbon.mediation.registry.WSO2Registry">
<!--all resources loaded from the URL registry would be
cached for this number of milliseconds -->
<parameter name="cachableDuration">15000</parameter>
</registry>

@ -0,0 +1,4 @@
<sequence name="_auth_failure_handler_" xmlns="http://ws.apache.org/ns/synapse">
<property name="error_message_type" value="application/xml"/>
<sequence key="_cors_request_handler_"/>
</sequence>

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
~ Copyright (c) 2005-2010, WSO2 Inc. (http://wso2.com) All Rights Reserved.
~
~ WSO2 Inc. 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.
-->
<sequence xmlns="http://ws.apache.org/ns/synapse" name="_build_">
<builder>
<messageBuilder contentType="application/json" class="org.apache.axis2.json.JSONBuilder"
formatterClass="org.apache.axis2.json.JSONMessageFormatter"/>
<messageBuilder contentType="application/xml" class="org.apache.axis2.builder.ApplicationXMLBuilder"
formatterClass="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
</builder>
</sequence>

@ -0,0 +1,30 @@
<sequence xmlns="http://ws.apache.org/ns/synapse" name="_cors_request_handler_">
<filter source="$ctx:CORSConfiguration.Enabled" regex="true">
<then>
<filter source="boolean($trp:Access-Control-Allow-Origin)" regex="false">
<then>
<property name="Access-Control-Allow-Origin" expression="$ctx:Access-Control-Allow-Origin" scope="transport" type="STRING"/>
</then>
</filter>
<filter source="boolean($trp:Access-Control-Allow-Methods)" regex="false">
<then>
<property name="Access-Control-Allow-Methods" expression="$ctx:Access-Control-Allow-Methods" scope="transport" type="STRING"/>
</then>
</filter>
<filter source="boolean($trp:Access-Control-Allow-Headers)" regex="false">
<then>
<property name="Access-Control-Allow-Headers" expression="$ctx:Access-Control-Allow-Headers" scope="transport" type="STRING"/>
</then>
</filter>
<filter source="boolean($trp:Access-Control-Allow-Credentials)" regex="false">
<then>
<filter source="boolean($ctx:Access-Control-Allow-Credentials)" regex="true">
<then>
<property name="Access-Control-Allow-Credentials" expression="$ctx:Access-Control-Allow-Credentials" scope="transport" type="STRING"/>
</then>
</filter>
</then>
</filter>
</then>
</filter>
</sequence>

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
~ Copyright (c) 2005-2010, WSO2 Inc. (http://wso2.com) All Rights Reserved.
~
~ WSO2 Inc. 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.
-->
<sequence xmlns="http://ws.apache.org/ns/synapse" name="_production_key_error_">
<property name="ERROR_CODE" value="900901"/>
<property name="ERROR_MESSAGE" value="Production key offered to the API with no production endpoint"/>
<property name="CUSTOM_HTTP_SC" value="403"/>
<sequence key="fault"/>
</sequence>

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
~ Copyright (c) 2005-2010, WSO2 Inc. (http://wso2.com) All Rights Reserved.
~
~ WSO2 Inc. 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.
-->
<sequence xmlns="http://ws.apache.org/ns/synapse" name="_resource_mismatch_handler_">
<sequence key="fault"/>
</sequence>

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
~ Copyright (c) 2005-2010, WSO2 Inc. (http://wso2.com) All Rights Reserved.
~
~ WSO2 Inc. 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.
-->
<sequence xmlns="http://ws.apache.org/ns/synapse" name="_sandbox_key_error_">
<property name="ERROR_CODE" value="900901"/>
<property name="ERROR_MESSAGE" value="Sandbox key offered to the API with no sandbox endpoint"/>
<property name="CUSTOM_HTTP_SC" value="403"/>
<sequence key="fault"/>
</sequence>

@ -0,0 +1,5 @@
<sequence name="_throttle_out_handler_" xmlns="http://ws.apache.org/ns/synapse">
<property name="X-JWT-Assertion" scope="transport" action="remove"/>
<class name="org.wso2.carbon.apimgt.usage.publisher.APIMgtThrottleUsageHandler"/>
<sequence key="_cors_request_handler_"/>
</sequence>

@ -0,0 +1,40 @@
<sequence xmlns="http://ws.apache.org/ns/synapse" name="_token_fault_">
<log level="custom">
<property name="STATUS" value="Executing token 'fault' sequence"/>
<property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/>
<property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/>
</log>
<payloadFactory>
<format>
<am:fault xmlns:am="http://wso2.org/apimanager">
<am:code>$1</am:code>
<am:type>Status report</am:type>
<am:message>Runtime Error</am:message>
<am:description>$2</am:description>
</am:fault>
</format>
<args>
<arg expression="$ctx:ERROR_CODE"/>
<arg expression="$ctx:ERROR_MESSAGE"/>
</args>
</payloadFactory>
<filter xpath="$ctx:CUSTOM_HTTP_SC">
<then>
<property name="HTTP_SC" expression="$ctx:CUSTOM_HTTP_SC" scope="axis2"/>
</then>
<else>
<property name="HTTP_SC" value="500" scope="axis2"/>
</else>
</filter>
<property name="RESPONSE" value="true"/>
<header name="To" action="remove"/>
<property name="NO_ENTITY_BODY" scope="axis2" action="remove"/>
<property name="ContentType" scope="axis2" action="remove"/>
<property name="Authorization" scope="transport" action="remove"/>
<property name="Host" scope="transport" action="remove"/>
<property name="Accept" scope="transport" action="remove"/>
<property name="messageType" value="application/xml" scope="axis2"/>
<sequence key="_cors_request_handler_"/>
<send/>
<drop/>
</sequence>

@ -0,0 +1,72 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
~ Copyright (c) 2005-2010, WSO2 Inc. (http://wso2.com) All Rights Reserved.
~
~ WSO2 Inc. 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.
-->
<sequence xmlns="http://ws.apache.org/ns/synapse" name="fault">
<log level="custom">
<property name="STATUS" value="Executing default 'fault' sequence"/>
<property name="ERROR_CODE" expression="get-property('ERROR_CODE')"/>
<property name="ERROR_MESSAGE" expression="get-property('ERROR_MESSAGE')"/>
</log>
<filter source="get-property('MESSAGE_FORMAT')" regex="soap1[1-2]">
<then>
<property name="SOAP_FAULT_CODE" value="Server"/>
<makefault>
<code expression="$ctx:SOAP_FAULT_CODE"/>
<reason expression="$ctx:ERROR_MESSAGE"/>
</makefault>
</then>
<else>
<payloadFactory>
<format>
<am:fault xmlns:am="http://wso2.org/apimanager">
<am:code>$1</am:code>
<am:type>Status report</am:type>
<am:message>Runtime Error</am:message>
<am:description>$2</am:description>
</am:fault>
</format>
<args>
<arg expression="$ctx:ERROR_CODE"/>
<arg expression="$ctx:ERROR_MESSAGE"/>
</args>
</payloadFactory>
<filter source="$axis2:HTTP_METHOD" regex="^(?!.*(POST|PUT|PATCH)).*$">
<property name="messageType" value="application/xml" scope="axis2"/>
</filter>
</else>
</filter>
<filter xpath="$ctx:CUSTOM_HTTP_SC">
<then>
<property name="HTTP_SC" expression="$ctx:CUSTOM_HTTP_SC" scope="axis2"/>
</then>
<else>
<property name="HTTP_SC" value="500" scope="axis2"/>
</else>
</filter>
<class name="org.wso2.carbon.apimgt.usage.publisher.APIMgtFaultHandler"/>
<property name="RESPONSE" value="true"/>
<header name="To" action="remove"/>
<property name="NO_ENTITY_BODY" scope="axis2" action="remove"/>
<property name="ContentType" scope="axis2" action="remove"/>
<property name="Authorization" scope="transport" action="remove"/>
<property name="Host" scope="transport" action="remove"/>
<property name="Accept" scope="transport" action="remove"/>
<property name="X-JWT-Assertion" scope="transport" action="remove"/>
<sequence key="_cors_request_handler_"/>
<send/>
</sequence>

@ -0,0 +1,99 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
~ Copyright (c) 2005-2010, WSO2 Inc. (http://wso2.com) All Rights Reserved.
~
~ WSO2 Inc. 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.
-->
<!-- Default main sequence shipped with the WSO2 ESB -->
<sequence xmlns="http://ws.apache.org/ns/synapse" name="main">
<description>The default main sequence for API manager - Returns 404 Not Found</description>
<in>
<log level="custom">
<property name="STATUS" value="Message dispatched to the main sequence. Invalid URL."/>
<property name="RESOURCE" expression="fn:concat('/', $axis2:REST_URL_POSTFIX)"/>
</log>
<filter source="$ctx:TRANSPORT_DENIED" regex="true">
<payloadFactory>
<format>
<am:fault xmlns:am="http://wso2.org/apimanager">
<am:code>403</am:code>
<am:type>Status report</am:type>
<am:message>Forbidden</am:message>
<am:description>Unsupported Transport [ $2 ]. The requested resource (/$1) is not available.</am:description>
</am:fault>
</format>
<args>
<arg expression="$axis2:REST_URL_POSTFIX"/>
<arg expression="$ctx:IN_TRANSPORT"/>
</args>
</payloadFactory>
<property name="HTTP_SC" value="403" scope="axis2"/>
<property name="RESPONSE" value="true"/>
<header name="To" action="remove"/>
<property name="NO_ENTITY_BODY" scope="axis2" action="remove"/>
<property name="ContentType" scope="axis2" action="remove"/>
<property name="Authorization" scope="transport" action="remove"/>
<property name="Host" scope="transport" action="remove"/>
<property name="Accept" scope="transport" action="remove"/>
<send/>
<drop/>
</filter>
<filter source="get-property('MESSAGE_FORMAT')" regex="soap1[1-2]">
<then>
<property name="SOAP_FAULT_CODE" value="Server"/>
<makefault>
<code expression="$ctx:SOAP_FAULT_CODE"/>
<reason value="The requested endpoint is not available."/>
</makefault>
</then>
<else>
<payloadFactory>
<format>
<am:fault xmlns:am="http://wso2.org/apimanager">
<am:code>404</am:code>
<am:type>Status report</am:type>
<am:message>Not Found</am:message>
<am:description>The requested resource (/$1) is not available.</am:description>
</am:fault>
</format>
<args>
<arg expression="$axis2:REST_URL_POSTFIX"/>
</args>
</payloadFactory>
</else>
</filter>
<filter source="$axis2:HTTP_METHOD" regex="^(?!.*(POST|PUT|PATCH)).*$">
<property name="messageType" value="application/xml" scope="axis2"/>
</filter>
<property name="HTTP_SC" value="404" scope="axis2"/>
<property name="RESPONSE" value="true"/>
<header name="To" action="remove"/>
<property name="NO_ENTITY_BODY" scope="axis2" action="remove"/>
<property name="ContentType" scope="axis2" action="remove"/>
<property name="Authorization" scope="transport" action="remove"/>
<property name="Host" scope="transport" action="remove"/>
<property name="Accept" scope="transport" action="remove"/>
<property name="X-JWT-Assertion" scope="transport" action="remove"/>
<send/>
<drop/>
</in>
<out>
<log level="full">
<property name="STATUS" value="Unexpected response message in out flow"/>
</log>
<drop/>
</out>
</sequence>

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
~ Copyright (c) 2005-2010, WSO2 Inc. (http://wso2.com) All Rights Reserved.
~
~ WSO2 Inc. 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.
-->
<!-- An empty flat synapse configuration shipped with the WSO2 ESB -->
<definitions xmlns="http://ws.apache.org/ns/synapse">
<!-- You can add any flat sequences, endpoints, etc.. to this synapse.xml file if you do
*not* want to keep the artifacts in several files -->
</definitions>

@ -108,6 +108,9 @@
<exclude>**/json_2.0.0.wso2v1.jar</exclude> <exclude>**/json_2.0.0.wso2v1.jar</exclude>
<exclude>**/bcprov-jdk15on_1.49.0.wso2v1.jar</exclude> <exclude>**/bcprov-jdk15on_1.49.0.wso2v1.jar</exclude>
<exclude>**/xmlbeans_2.3.0.wso2v1.jar</exclude> <exclude>**/xmlbeans_2.3.0.wso2v1.jar</exclude>
<exclude>**/nimbus-jose-jwt_2.26.1.wso2v2.jar</exclude>
<exclude>**/org.wso2.carbon.hostobjects.sso_4.4.3.jar</exclude>
<exclude>**/org.wso2.carbon.hostobjects.sso_4.3.2.jar</exclude>
</excludes> </excludes>
</fileSet> </fileSet>
@ -210,7 +213,6 @@
<directory>src/repository/conf</directory> <directory>src/repository/conf</directory>
<outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory> <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
<includes> <includes>
<include>**/identity.xml</include>
<include>**/api-manager.xml</include> <include>**/api-manager.xml</include>
<include>**/sso-idp-config.xml</include> <include>**/sso-idp-config.xml</include>
<include>**/application-authentication.xml</include> <include>**/application-authentication.xml</include>
@ -330,24 +332,8 @@
</includes> </includes>
</fileSet> </fileSet>
<fileSet> <fileSet>
<directory>src/repository/modules/encode</directory> <directory>src/repository/modules</directory>
<outputDirectory>${pom.artifactId}-${pom.version}/modules/encode</outputDirectory> <outputDirectory>${pom.artifactId}-${pom.version}/modules</outputDirectory>
<includes>
<include>*/**</include>
</includes>
</fileSet>
<fileSet>
<directory>src/repository/modules/sso</directory>
<outputDirectory>${pom.artifactId}-${pom.version}/modules/sso</outputDirectory>
<includes>
<include>*/**</include>
</includes>
</fileSet>
<!-- Copying the "api-store" app specific jaggery modules -->
<fileSet>
<directory>src/repository/modules/apimstore</directory>
<outputDirectory>${pom.artifactId}-${pom.version}/modules/apimstore</outputDirectory>
<includes> <includes>
<include>*/**</include> <include>*/**</include>
</includes> </includes>
@ -521,6 +507,18 @@
<include>**/**.xml</include> <include>**/**.xml</include>
</includes> </includes>
</fileSet> </fileSet>
<fileSet>
<directory>src/api-resources/default-tiers</directory>
<outputDirectory>${pom.artifactId}-${pom.version}/repository/resources/default-tiers</outputDirectory>
<includes>
<include>**/**.xml</include>
</includes>
</fileSet>
<fileSet>
<directory>src/api-resources/synapse-configs/default/sequences</directory>
<outputDirectory>${pom.artifactId}-${pom.version}/repository/resources/apim-synapse-config/</outputDirectory>
</fileSet>
<!-- Copying synapse-config directory --> <!-- Copying synapse-config directory -->
<fileSet> <fileSet>
@ -904,7 +902,7 @@
<fileMode>644</fileMode> <fileMode>644</fileMode>
</file> </file>
<file> <file>
<source>src/repository/conf/identity.xml</source> <source>src/repository/conf/identity/identity.xml</source>
<outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/identity <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/identity
</outputDirectory> </outputDirectory>
<fileMode>644</fileMode> <fileMode>644</fileMode>
@ -1349,17 +1347,17 @@
</file> </file>
<file> <file>
<source> <source>
../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/iot/devicetype-config.xml ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/jwt.properties
</source> </source>
<outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/iot</outputDirectory> <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
<filtered>true</filtered> <filtered>true</filtered>
<fileMode>644</fileMode> <fileMode>644</fileMode>
</file> </file>
<file> <file>
<source> <source>
../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/iot/devicetype-config.xsd ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/identity/identity-providers/CDMF_DEFAULT_IDP.xml
</source> </source>
<outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/iot</outputDirectory> <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/identity/identity-providers</outputDirectory>
<filtered>true</filtered> <filtered>true</filtered>
<fileMode>644</fileMode> <fileMode>644</fileMode>
</file> </file>

@ -149,9 +149,9 @@
<GrantTypeHandlerImplClass>org.wso2.carbon.identity.oauth2.token.handlers.grant.iwa.ntlm.NTLMAuthenticationGrantHandler</GrantTypeHandlerImplClass> <GrantTypeHandlerImplClass>org.wso2.carbon.identity.oauth2.token.handlers.grant.iwa.ntlm.NTLMAuthenticationGrantHandler</GrantTypeHandlerImplClass>
</SupportedGrantType> </SupportedGrantType>
<SupportedGrantType> <SupportedGrantType>
<GrantTypeName>devicecloud</GrantTypeName> <GrantTypeName>urn:ietf:params:oauth:grant-type:jwt-bearer</GrantTypeName>
<GrantTypeHandlerImplClass>org.wso2.carbon.devicemgt.grant.DeviceGrant</GrantTypeHandlerImplClass> <GrantTypeHandlerImplClass>org.wso2.carbon.identity.oauth2.grant.jwt.JWTBearerGrantHandler</GrantTypeHandlerImplClass>
<GrantTypeValidatorImplClass>org.wso2.carbon.devicemgt.grant.DeviceGrantValidator</GrantTypeValidatorImplClass> <GrantTypeValidatorImplClass>org.wso2.carbon.identity.oauth2.grant.jwt.JWTGrantValidator</GrantTypeValidatorImplClass>
</SupportedGrantType> </SupportedGrantType>
</SupportedGrantTypes> </SupportedGrantTypes>
<OAuthCallbackHandlers> <OAuthCallbackHandlers>

@ -19,19 +19,19 @@ var getAPIPublisherURL = function() {
var result,log=new Log(); var result,log=new Log();
var store = getAPIStoreObj(); var store = getAPIStoreObj();
try { try {
result = store.getAPIPublisherURL(); result = store.getAPIPublisherURL();
if (log.isDebugEnabled()) { if (log.isDebugEnabled()) {
log.debug("getAPIPublisherURL : "); log.debug("getAPIPublisherURL : ");
} }
return { return {
error:false, error:false,
url:result url:result
}; };
} catch (e) { } catch (e) {
return { return {
error:true, error:true,
message:e.message.split(":")[1] message:e.message.split(":")[1]
}; };
} }
}; };
@ -44,7 +44,7 @@ var getServer = function() {
}; };
var isSelfSignupEnabled = function(){ var isSelfSignupEnabled = function(){
return getAPIStoreObj().isSelfSignupEnabled(); return getAPIStoreObj().isSelfSignupEnabled();
}; };
var isSelfSignupEnabledForTenantUser = function(tenantDomain){ var isSelfSignupEnabledForTenantUser = function(tenantDomain){
@ -52,9 +52,9 @@ var isSelfSignupEnabledForTenantUser = function(tenantDomain){
try { try {
if (tenantDomain == null) { if (tenantDomain == null) {
return getAPIStoreObj().isSelfSignupEnabledForTenant("carbon.super"); return getAPIStoreObj().isSelfSignupEnabledForTenant("carbon.super");
} else { } else {
return getAPIStoreObj().isSelfSignupEnabledForTenant(tenantDomain); return getAPIStoreObj().isSelfSignupEnabledForTenant(tenantDomain);
} }
} catch (e) { } catch (e) {
log.error(e.message); log.error(e.message);
@ -118,7 +118,7 @@ var loadTenantAxisConfiguration = function (tenantDomain) {
try { try {
if (tenantDomain != null && tenantDomain != "") { if (tenantDomain != null && tenantDomain != "") {
getAPIStoreObj().loadAxisConfigOfTenant(String(tenantDomain)); getAPIStoreObj().loadAxisConfigOfTenant(String(tenantDomain));
return return
{ {
error:false error:false
@ -135,11 +135,11 @@ var loadTenantAxisConfiguration = function (tenantDomain) {
var getActiveTenantDomains=function(){ var getActiveTenantDomains=function(){
var tenantDomains, var tenantDomains,
log = new Log(), log = new Log(),
store = jagg.module("manager").getAPIStoreObj(); store = jagg.module("manager").getAPIStoreObj();
try { try {
tenantDomains = store.getActiveTenantDomains(); tenantDomains = store.getActiveTenantDomains();
tenantDomains = parse(stringify(tenantDomains)); tenantDomains = parse(stringify(tenantDomains));
if (log.isDebugEnabled()) { if (log.isDebugEnabled()) {
log.debug("isTenantMode : " + stringify(api)); log.debug("isTenantMode : " + stringify(api));

@ -1,6 +1,10 @@
<module name="sso" xmlns="http://wso2.org/projects/jaggery/module.xml"> <module name="sso" expose="false" xmlns="http://wso2.org/projects/jaggery/module.xml">
<script> <script>
<name>client</name> <name>client</name>
<path>scripts/sso.client.js</path> <path>scripts/sso.client.js</path>
</script> </script>
<hostObject>
<className>org.wso2.carbon.hostobjects.sso.SAMLSSORelyingPartyObject</className>
<name>SSORelyingParty</name>
</hostObject>
</module> </module>

@ -0,0 +1,7 @@
<module name="tenantmanager" namespace="ns" expose="true" xmlns="http://wso2.org/projects/jaggery/module.xml">
<hostObject>
<className>org.wso2.carbon.apimgt.hostobjects.TenantManagerHostObject</className>
<name>TenantManager</name>
</hostObject>
</module>

@ -144,9 +144,9 @@
<featureArtifactDef> <featureArtifactDef>
org.wso2.carbon.devicemgt:org.wso2.carbon.device.mgt.analytics.server.feature:${carbon.device.mgt.version} org.wso2.carbon.devicemgt:org.wso2.carbon.device.mgt.analytics.server.feature:${carbon.device.mgt.version}
</featureArtifactDef> </featureArtifactDef>
<!--<featureArtifactDef>--> <featureArtifactDef>
<!--org.wso2.carbon.devicemgt:org.wso2.carbon.device.mgt.common.api.feature:${carbon.device.mgt.version}--> org.wso2.carbon.devicemgt:org.wso2.carbon.device.mgt.jwt.client.extension.feature:${carbon.device.mgt.version}
<!--</featureArtifactDef>--> </featureArtifactDef>
<!-- End of Device Management Features --> <!-- End of Device Management Features -->
<!-- Mobile Device Management Features --> <!-- Mobile Device Management Features -->
@ -671,7 +671,7 @@
<featureArtifactDef> <featureArtifactDef>
org.wso2.carbon.analytics:org.wso2.carbon.analytics.datasource.feature:${carbon.analytics.version} org.wso2.carbon.analytics:org.wso2.carbon.analytics.datasource.feature:${carbon.analytics.version}
</featureArtifactDef> </featureArtifactDef>
<featureArtifactDef> <featureArtifactDef>
org.wso2.carbon.analytics:org.wso2.carbon.analytics.datasource.hbase.server.feature:${carbon.analytics.version} org.wso2.carbon.analytics:org.wso2.carbon.analytics.datasource.hbase.server.feature:${carbon.analytics.version}
</featureArtifactDef> </featureArtifactDef>
<featureArtifactDef> <featureArtifactDef>
@ -792,7 +792,7 @@
org.wso2.carbon.dashboards:org.wso2.carbon.dashboards.portal.feature:${carbon.dashboard.version} org.wso2.carbon.dashboards:org.wso2.carbon.dashboards.portal.feature:${carbon.dashboard.version}
</featureArtifactDef> </featureArtifactDef>
<!-- MB Features --> <!-- MB Features -->
<featureArtifactDef> <featureArtifactDef>
org.wso2.carbon.messaging:org.wso2.carbon.andes.feature:${carbon.messaging.version} org.wso2.carbon.messaging:org.wso2.carbon.andes.feature:${carbon.messaging.version}
</featureArtifactDef> </featureArtifactDef>
@ -805,6 +805,9 @@
<featureArtifactDef> <featureArtifactDef>
org.wso2.carbon.metrics:org.wso2.carbon.metrics.feature:${carbon.metrics.version} org.wso2.carbon.metrics:org.wso2.carbon.metrics.feature:${carbon.metrics.version}
</featureArtifactDef> </featureArtifactDef>
<featureArtifactDef>
org.wso2.carbon.identity:org.wso2.carbon.identity.oauth2.grant.jwt.feature:${identity.jwt.extension.version}
</featureArtifactDef>
</featureArtifacts> </featureArtifacts>
</configuration> </configuration>
</execution> </execution>
@ -872,6 +875,10 @@
<id>org.wso2.carbon.device.mgt.oauth.extensions.feature.group</id> <id>org.wso2.carbon.device.mgt.oauth.extensions.feature.group</id>
<version>${carbon.device.mgt.version}</version> <version>${carbon.device.mgt.version}</version>
</feature> </feature>
<feature>
<id>org.wso2.carbon.device.mgt.jwt.client.extension.feature.group</id>
<version>${carbon.device.mgt.version}</version>
</feature>
<feature> <feature>
<id>org.wso2.carbon.devicemgt.ui.feature.group</id> <id>org.wso2.carbon.devicemgt.ui.feature.group</id>
<version>${carbon.device.mgt.version}</version> <version>${carbon.device.mgt.version}</version>
@ -1525,7 +1532,7 @@
<id>org.wso2.carbon.analytics.datasource.feature.group</id> <id>org.wso2.carbon.analytics.datasource.feature.group</id>
<version>${carbon.analytics.version}</version> <version>${carbon.analytics.version}</version>
</feature> </feature>
<feature> <feature>
<id>org.wso2.carbon.analytics.datasource.hbase.server.feature.group</id> <id>org.wso2.carbon.analytics.datasource.hbase.server.feature.group</id>
<version>${carbon.analytics.version}</version> <version>${carbon.analytics.version}</version>
</feature> </feature>
@ -1700,6 +1707,10 @@
<id>org.wso2.carbon.metrics.feature.group</id> <id>org.wso2.carbon.metrics.feature.group</id>
<version>${carbon.metrics.version}</version> <version>${carbon.metrics.version}</version>
</feature> </feature>
<feature>
<id>org.wso2.carbon.identity.oauth2.grant.jwt.feature.group</id>
<version>${identity.jwt.extension.version}</version>
</feature>
</features> </features>
</configuration> </configuration>
</execution> </execution>

@ -1054,10 +1054,10 @@
<mdm.version>2.0.0-SNAPSHOT</mdm.version> <mdm.version>2.0.0-SNAPSHOT</mdm.version>
<!-- API Management --> <!-- API Management -->
<carbon.api.mgt.version>4.3.2-SNAPSHOT</carbon.api.mgt.version> <carbon.api.mgt.version>5.0.3</carbon.api.mgt.version>
<!-- Carbon Mediation --> <!-- Carbon Mediation -->
<carbon.mediation.version>4.4.11</carbon.mediation.version> <carbon.mediation.version>4.5.1</carbon.mediation.version>
<!-- Carbon Analytics Common (DAS) --> <!-- Carbon Analytics Common (DAS) -->
<carbon.analytics.common.version>5.0.11-SNAPSHOT</carbon.analytics.common.version> <carbon.analytics.common.version>5.0.11-SNAPSHOT</carbon.analytics.common.version>
@ -1123,6 +1123,9 @@
<carbon.messaging.version>3.1.0</carbon.messaging.version> <carbon.messaging.version>3.1.0</carbon.messaging.version>
<product.mb.version>3.1.0</product.mb.version> <product.mb.version>3.1.0</product.mb.version>
<carbon.metrics.version>1.2.0</carbon.metrics.version> <carbon.metrics.version>1.2.0</carbon.metrics.version>
<!--JWT grant type extension feature-->
<identity.jwt.extension.version>1.0.0</identity.jwt.extension.version>
</properties> </properties>
<scm> <scm>

Loading…
Cancel
Save