Re: [Dev] [GSoC 2017][ESB]Native inbound and connector for IBM MQ 8.0

2017-06-18 Thread Riyafa Abdul Hameed
Hi,

I am just curious if you would be writing a connector or a mediator.

Regards,
Riyafa

On Mon, Jun 19, 2017 at 6:47 AM, Hasitha Jayasundara <
hasithajayasunda...@gmail.com> wrote:

> Hi all,
>
> Please find updated milestone plan here.
>
> https://docs.google.com/spreadsheets/d/19ijxAVHttxhLVuSJ0nfuMUZ4x4lAD
> 6ueYL5C3FNaFpg/edit?usp=sharing
>
> Thanks
>
> On Thu, Jun 15, 2017 at 9:30 AM, Hasitha Jayasundara <
> hasithajayasunda...@gmail.com> wrote:
>
>> Sure I'll be there around 1.pm.
>>
>> On Thu, Jun 15, 2017 at 9:29 AM, Malaka Silva  wrote:
>>
>>> Can you come around 1pm?
>>>
>>> On Thu, Jun 15, 2017 at 9:27 AM, Hasitha Jayasundara <
>>> hasithajayasunda...@gmail.com> wrote:
>>>
 Hi Malaka,

 Sorry for the late reply.I'll come by office tomorrow.What time do you
 prefer?morning or evening?

 Thanks

 On Thu, Jun 15, 2017 at 8:09 AM, Malaka Silva  wrote:

> Hi Hasitha,
>
> When will you be arranging the meeting?
>
> On Tue, Jun 13, 2017 at 9:41 AM, Malaka Silva  wrote:
>
>> +1
>>
>> On Tue, Jun 13, 2017 at 9:08 AM, Kevin Ratnasekera 
>> wrote:
>>
>>> Hi Hasitha,
>>>
>>> I am fine with either of days if it works for Malaka as weill,
>>>
>>> @malaka can you please check?
>>>
>>> Regards
>>> Kevin
>>>
>>> On Mon, Jun 12, 2017 at 8:53 AM, Hasitha Jayasundara <
>>> hasithajayasunda...@gmail.com> wrote:
>>>
 Hi all,

 Will it possible to arrange a meeting on Thursday or Friday this
 week?

 Thanks

 On Wed, Jun 7, 2017 at 9:22 AM, Malaka Silva 
 wrote:

> Sure No Worries
>
> On Wed, Jun 7, 2017 at 7:37 AM, Hasitha Jayasundara <
> hasithajayasunda...@gmail.com> wrote:
>
>> Hi all,
>>
>> Can we please move the meeting to next week?.Got a problem with
>> Friday evening.Really sorry for the inconvenience caused.
>>
>> Thanks
>>
>> On Tue, Jun 6, 2017 at 10:24 AM, Malaka Silva 
>> wrote:
>>
>>> +1 I'll be available after 13.00
>>>
>>> On Tue, Jun 6, 2017 at 10:00 AM, Kevin Ratnasekera <
>>> ke...@wso2.com> wrote:
>>>
 +1

 On Tue, Jun 6, 2017 at 9:51 AM, Hasitha Jayasundara <
 hasithajayasunda...@gmail.com> wrote:

> Hi all,
>
> Friday afternoon fine me with.Any suggestions?
>
> On Mon, Jun 5, 2017 at 9:30 AM, Malaka Silva 
> wrote:
>
>> Wednesday morning or Friday afternoon fine with me.
>>
>> On Mon, Jun 5, 2017 at 9:26 AM, Kevin Ratnasekera <
>> ke...@wso2.com> wrote:
>>
>>> Hi Hasitha,
>>>
>>> Great progress so far, since the coding period have already
>>> started, we need to plan things ahead and come up with a proper 
>>> milestone
>>> plan before we proceed anything further. Will it be possible 
>>> you to join a
>>> meeting within this week?
>>>
>>> @malaka Can you please suggest possible time for you to have
>>> a meeting?
>>>
>>> Regards
>>> Kevin
>>>
>>> On Mon, May 29, 2017 at 10:34 AM, Hasitha Jayasundara <
>>> hasithajayasunda...@gmail.com> wrote:
>>>
 Hi all,

 I have updated the sample MQ-Client [1] to establish SSL
 connections with IBM WebSphere MQ. Still carry on the research 
 with the
 provided links about the IBM specific options that can be 
 added other than
 SSL and will update the thread with the findings as soon as
 possible.Working on

 "Can we check if it is possible to have an alternative way
 to set SSL details other than system properties with IBM MQ 
 client
 libraries.The reason for that is we are limiting our self
 to one set of properties per JVM. eg: System.setProperty("

 which discussed in the previous thread.

 [1] https://github.com/hasithajayasundara/IBM-MQ-client

 On Tue, May 23, 2017 at 7:12 AM, Malaka Silva <
 mal...@wso2.com> wrote:

> Hi Hasitha,
>
> Sounds good. It'll be good if you can come up with the
> list of IBM specific options.
>
> On Tue, May 23, 2017 at 7:08 AM, Hasitha Jayasundara <
> hasithajayasunda...@gma

[Dev] Invitation: [GSoC][APIM] Environment Support for API Manager weekly s... @ Tue Jun 20, 2017 10am - 11am (IST) (dev@wso2.org)

2017-06-18 Thread Kasun Thennakoon
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20170620T043000Z
DTEND:20170620T053000Z
DTSTAMP:20170619T050122Z
ORGANIZER;CN=Kasun Thennakoon:mailto:kasu...@wso2.com
UID:gm4bl8dnefj5ac5j3q2hjpi...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Thilini Shanika;X-NUM-GUESTS=0:mailto:thili...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Ravindu Perera;X-NUM-GUESTS=0:mailto:ravindu.2014...@iit.ac.lk
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Kasun Thennakoon;X-NUM-GUESTS=0:mailto:kasu...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Pubudu Gunatilaka;X-NUM-GUESTS=0:mailto:pubu...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Chanaka Jayasena;X-NUM-GUESTS=0:mailto:chan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Nuwan Dias;X-NUM-GUESTS=0:mailto:nuw...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
CREATED:20170619T050121Z
DESCRIPTION:This event has a Google Hangouts video call.\nJoin: https://plu
 s.google.com/hangouts/_/wso2.com/gsoc-apim?hceid=a2FzdW50ZUB3c28yLmNvbQ.gm4
 bl8dnefj5ac5j3q2hjpiigs&hs=121\n\nView your event at https://www.google.com
 /calendar/event?action=VIEW&eid=Z200Ymw4ZG5lZmo1YWM1ajNxMmhqcGlpZ3MgZGV2QHd
 zbzIub3Jn&tok=MTYja2FzdW50ZUB3c28yLmNvbWJiMmFjNGQxMzI2Mjk2ZWM4NWU5NmI0MmY5Y
 2IzZWNkYTcxMjMwMDQ&ctz=Asia/Colombo&hl=en.
LAST-MODIFIED:20170619T050121Z
LOCATION:WSO2\, 20\, Palm Grove\, Colombo\, Sri Lanka
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:[GSoC][APIM] Environment Support for API Manager weekly sync up mee
 ting
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


invite.ics
Description: application/ics
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC 2017][ESB]Native inbound and connector for IBM MQ 8.0

2017-06-18 Thread Hasitha Jayasundara
Hi all,

Please find updated milestone plan here.

https://docs.google.com/spreadsheets/d/19ijxAVHttxhLVuSJ0nfuMUZ4x4lAD6ueYL5C3FNaFpg/edit?usp=sharing

Thanks

On Thu, Jun 15, 2017 at 9:30 AM, Hasitha Jayasundara <
hasithajayasunda...@gmail.com> wrote:

> Sure I'll be there around 1.pm.
>
> On Thu, Jun 15, 2017 at 9:29 AM, Malaka Silva  wrote:
>
>> Can you come around 1pm?
>>
>> On Thu, Jun 15, 2017 at 9:27 AM, Hasitha Jayasundara <
>> hasithajayasunda...@gmail.com> wrote:
>>
>>> Hi Malaka,
>>>
>>> Sorry for the late reply.I'll come by office tomorrow.What time do you
>>> prefer?morning or evening?
>>>
>>> Thanks
>>>
>>> On Thu, Jun 15, 2017 at 8:09 AM, Malaka Silva  wrote:
>>>
 Hi Hasitha,

 When will you be arranging the meeting?

 On Tue, Jun 13, 2017 at 9:41 AM, Malaka Silva  wrote:

> +1
>
> On Tue, Jun 13, 2017 at 9:08 AM, Kevin Ratnasekera 
> wrote:
>
>> Hi Hasitha,
>>
>> I am fine with either of days if it works for Malaka as weill,
>>
>> @malaka can you please check?
>>
>> Regards
>> Kevin
>>
>> On Mon, Jun 12, 2017 at 8:53 AM, Hasitha Jayasundara <
>> hasithajayasunda...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> Will it possible to arrange a meeting on Thursday or Friday this
>>> week?
>>>
>>> Thanks
>>>
>>> On Wed, Jun 7, 2017 at 9:22 AM, Malaka Silva 
>>> wrote:
>>>
 Sure No Worries

 On Wed, Jun 7, 2017 at 7:37 AM, Hasitha Jayasundara <
 hasithajayasunda...@gmail.com> wrote:

> Hi all,
>
> Can we please move the meeting to next week?.Got a problem with
> Friday evening.Really sorry for the inconvenience caused.
>
> Thanks
>
> On Tue, Jun 6, 2017 at 10:24 AM, Malaka Silva 
> wrote:
>
>> +1 I'll be available after 13.00
>>
>> On Tue, Jun 6, 2017 at 10:00 AM, Kevin Ratnasekera <
>> ke...@wso2.com> wrote:
>>
>>> +1
>>>
>>> On Tue, Jun 6, 2017 at 9:51 AM, Hasitha Jayasundara <
>>> hasithajayasunda...@gmail.com> wrote:
>>>
 Hi all,

 Friday afternoon fine me with.Any suggestions?

 On Mon, Jun 5, 2017 at 9:30 AM, Malaka Silva 
 wrote:

> Wednesday morning or Friday afternoon fine with me.
>
> On Mon, Jun 5, 2017 at 9:26 AM, Kevin Ratnasekera <
> ke...@wso2.com> wrote:
>
>> Hi Hasitha,
>>
>> Great progress so far, since the coding period have already
>> started, we need to plan things ahead and come up with a proper 
>> milestone
>> plan before we proceed anything further. Will it be possible you 
>> to join a
>> meeting within this week?
>>
>> @malaka Can you please suggest possible time for you to have
>> a meeting?
>>
>> Regards
>> Kevin
>>
>> On Mon, May 29, 2017 at 10:34 AM, Hasitha Jayasundara <
>> hasithajayasunda...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I have updated the sample MQ-Client [1] to establish SSL
>>> connections with IBM WebSphere MQ. Still carry on the research 
>>> with the
>>> provided links about the IBM specific options that can be added 
>>> other than
>>> SSL and will update the thread with the findings as soon as
>>> possible.Working on
>>>
>>> "Can we check if it is possible to have an alternative way
>>> to set SSL details other than system properties with IBM MQ 
>>> client
>>> libraries.The reason for that is we are limiting our self
>>> to one set of properties per JVM. eg: System.setProperty("
>>>
>>> which discussed in the previous thread.
>>>
>>> [1] https://github.com/hasithajayasundara/IBM-MQ-client
>>>
>>> On Tue, May 23, 2017 at 7:12 AM, Malaka Silva <
>>> mal...@wso2.com> wrote:
>>>
 Hi Hasitha,

 Sounds good. It'll be good if you can come up with the list
 of IBM specific options.

 On Tue, May 23, 2017 at 7:08 AM, Hasitha Jayasundara <
 hasithajayasunda...@gmail.com> wrote:

> Hi all,
>
> I tried to implement sample MQ-Client that can connect to
> IBM MQ and we can improve that to implement inbound endpoint 
> and the
> connector.Will improve that MQ-Client to support more ibm

Re: [Dev] Weird exception accessing to a API Manager protected resource

2017-06-18 Thread Rajith Roshan
Hi Thomas,

When you calling the token endpoint using saml response, could you please
add the scope=default parameter as well in the request. For ex :[1].
Let us know it if works. (Just want to verify , because scope is an
optional parameter. )

[1] - curl -X POST -u
"QlthIzYUOK5DS0BXW8Cy8uFJjKAa:XFfgPmTbMaQ5eScc0rSnAW9ZIgwa" -H
"Content-Type: application/x-www-form-urlencoded;charset=UTF-8" -d "
*scope=deafult*&grant_type=urn:ietf:params:oauth:grant-type:saml2-bearer&assertion=nrkelgerte..ufw"
https://{host}:{port}/oauth2/token

Thanks!
Rajith

On Fri, Jun 16, 2017 at 1:46 PM, Thomas LEGRAND <
thomas.legr...@versusmind.eu> wrote:

> Hello,
>
> Thank you for your answers.
>
> I activated the DEBUG mode on the IS in the class org.wso2.carbon.apimgt.
> keymgt.service.APIKeyValidationService and I can see that the IS receives
> something because when I send a wrong OAuth token, its says
>
> [2017-06-16 12:10:00,563] ERROR 
> {org.wso2.carbon.apimgt.impl.AMDefaultKeyManagerImpl}
> -  Invalid OAuth Token : Invalid accessken
>
> And when I send a right one:
>
> [2017-06-16 14:19:52,028] DEBUG 
> {org.wso2.carbon.apimgt.keymgt.service.APIKeyValidationService}
> -  OAuth token response from Manager to gateway:  , appName=myApp ,
> userName=myUser@carbon.super , transactionId= , 
> consumerKey=5bWQioSHWbt9I24xizeP0o20a
> , isAuthorized=true , responseTime=Fri Jun 16 14:19:52 CEST 2017
> [2017-06-16 14:19:52,028] DEBUG 
> {org.wso2.carbon.apimgt.keymgt.service.APIKeyValidationService}
> -  APIKeyValidationInfoDTO bee returning : APIKeyValidationInfoDTO = {
> authorized:true , subscriber:admin , tier:Unlimited , type:PRODUCTION ,
> userType:APPLICATION_USER , endUserToken:null , 
> endUserName:myUser@carbon.super
> , applicationId:3 , applicationName:myApp  , applicationr:Unlimited ,
> validationStatus:0 , validityPeriod:2009000 , issuedTime:1497615592019 ,
> apiName:MyAPI , consumerKey:5bWQioSH9I24xizeP0oxTw20a ,
> spikeArrestLimit:0 , spikeArrestUnit:null , 
> subscriberTenantDomain:carbon.super
> , stopOnQuotaReach:true ,iPublisher:admin]]
>
> We can see the authorized: true (if that means something) so it is like
> the API manager don't know how to interpret this message and take a
> shortcut to conclusion because of an Axis error. So from here, I don't know
> what to do :(
>
> Regards,
>
> Thomas
>
>
>
> 2017-06-16 13:13 GMT+02:00 Farasath Ahamed :
>
>>
>>
>>
>>
>> On Fri, Jun 16, 2017 at 4:37 PM, Rajith Roshan  wrote:
>>
>>> Hi Thomas,
>>>
>>> You need to subscribe to that particular api from the application you
>>> have generated access token. if there is no valid subscription then this
>>> error can happen.
>>> And also if you have assigned specif scopes to api resource , then the
>>> access token should also have that scopes when it was generated.
>>> This resource forbidden issue can occur due to above mentioned errors.
>>>
>>
>> In those cases shouldn't the error codes be different according to [1].
>>
>>
>> http://wso2.org/apimanager/security";>
>>   900900
>>   Unclassified Authentication Failure
>>   Resource forbidden
>> 
>>
>> Error code 900900. according [1] says that,
>> Backend service for key validation is not accessible when trying to
>> invoke an API
>>
>>
>>
>>
>> [1] https://docs.wso2.com/display/AM210/Error+Handling
>>
>>
>>>
>>> Thanks!
>>> Rajith
>>>
>>> On Fri, Jun 16, 2017 at 12:32 PM, Thomas LEGRAND <
>>> thomas.legr...@versusmind.eu> wrote:
>>>
 Hello !

 Sure. Here is my api-manager.xml AM configuration file:

 
 
 jdbc/WSO2AM_DB

 
 
 None

 
 false

 
 
 
 
 https://localhost:9448/services/
 
 ${admin.username}
 
 ${admin.password}
 
 false
 

 
 
 

 
 X-JWT-Assertion

 
 

 
 

 
 

 
 org.wso2.carbon.apimgt.keymgt.token.JWTGen
 erator

 
 

 
 
 

 
 

 
 
 
 
 
 
 
 Production and Sandbox
 This is a hybrid gateway that handles both
 production and sandbox token traffic.
 
 https://localhost:$
 {mgt.transport.https.port}${carbon.context}services/

 ${admin.username}
 
 ${admin.password}
 
 http://${carb
 on.local.ip}:${http.nio.port},https://${carbon.local.ip}:${h
 ttps.nio.port}
 
 
 

 

 true

 true
>>>