This the key manager host name you configure under APIKeyValidator section
in api-manager.xml of Gateway.

On Thu, Jul 20, 2017 at 8:58 PM Júnior <fjunio...@gmail.com> wrote:

> Hi Rajkumar,
>
> In the code you sent, it tries to take the property from the
> SystemProperty:  -DkeyManagerHostname=myhost.
>
> But it always take localhost.
>
> Where do I need to set this value?
>
> Thanks,
>
> 2017-07-20 18:19 GMT-03:00 Rajkumar Rajaratnam <rajkum...@wso2.com>:
>
>> You don't need to set this manually.
>>
>> Gateway will read key manager configuration from api-manager.xml and
>> automatically set these values.
>>
>> See -
>> https://github.com/wso2/carbon-apimgt/blob/5.0.x/components/apimgt/org.wso2.carbon.apimgt.gateway/src/main/java/org/wso2/carbon/apimgt/gateway/handlers/common/SynapsePropertiesHandler.java
>>
>> On Thu, Jul 20, 2017 at 5:13 PM, Júnior <fjunio...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Where do I set the value for those variables:
>>>
>>>  <property name="uri.var.portnum" 
>>> expression="get-property('keyManager.port')"/>
>>>         <property name="uri.var.hostname" 
>>> expression="get-property('keyManager.hostname')"/>
>>>
>>>
>>>
>>>
>>> Used in the Token API in API Manager.
>>>
>>> I didn't find in the docs where to set those values.
>>>
>>> Any tips are very welcome.
>>>
>>> Thanks,
>>> --
>>> Francisco Ribeiro
>>> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rajkumar Rajaratnam
>> Committer & PMC Member, Apache Stratos
>> Senior Software Engineer, WSO2
>>
>
>
>
> --
> Francisco Ribeiro
> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>
-- 
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Senior Software Engineer, WSO2
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to