Re: [Dev] (no subject)

2017-11-15 Thread Dilusha Alphonso
Hi All, According to the internal discussion with Mushthaq Rumy, I got an idea on how to use the single user to achieve this. After that, I created one user and assigned the particular role for this user and assigned the same scope to both resources. Now both resources are working fine. Thanks

Re: [Dev] [IS] SAML 2 SSO Login Session Issue

2017-11-15 Thread Thilina Madumal
Hi Dilshani, In Travelocity app, once the user gets authenticated, on the Travelocity server side it creates a session (this implementation can by following the SSO-AgentFilter [1]). Web applications use cookies to communicate details about the sessions created on the server side to the

Re: [Dev] Passing payloads from API to ESB

2017-11-15 Thread Dushantha Batuwita
Hi Buddhimala: my pleasure regards On Thu, Nov 16, 2017 at 10:40 AM, Buddhimala Ranasinghe wrote: > Hi Dushantha, > > Thank you for the explanation and the solution. It is working for me now. > > Regards, > Buddhimala > > On Wed, Nov 15, 2017 at 5:32 PM, Dushantha

Re: [Dev] Resolving a confusion about Openid as an inbound authentication

2017-11-15 Thread Thilina Madumal
Hi Shanika, In your use-case, what you want to achieve is Single Sign-On (SSO) behaviour then you have preferably two options, SAML2-SSO and OpenID-Connect (OIDC). IMO for your use-case you do not need to adopt both protocols, just pick a one and go ahead. I would recommend OIDC. Use the

Re: [Dev] [IS] [OAuth] Validating and renewing an access token with one call.

2017-11-15 Thread Shazni Nazeer
I think the 2nd option is better, i.e for OAuth2 client to retry when the resource server returns error when token is invalid or expired. Refreshing based on expiry time is hard to implement and explicit revoke would have made the token invalid before refresh happens. On Wed, Nov 15, 2017 at 7:03

Re: [Dev] 'Input too long' error occurred while executing Siddhi.bat file

2017-11-15 Thread Raveen Rathnayake
HI Rasika, Thanks for the suggestion. I will check this. On Wed, Nov 15, 2017 at 6:07 PM, Rasika Perera wrote: > Hi Raveen, > > Yes issue might be because of JAR files list of 279 makes the windows > 'java' command hits the O/S limit. In your script, below loop is adding the

Re: [Dev] Not able to access xslt from inside wso2 xslt mediator. Please guide.

2017-11-15 Thread Saneth Dharmakeerthi
Hi Aditya, It seems you have put the XSLT in API folder and try to access it in incorrect way. You can do this by either one of following ways and the first one is the recommended. 1. Put the XSLT to the registry. you can find more information in[1][3]. If you change the xslt in

Re: [Dev] (no subject)

2017-11-15 Thread Mushthaq Rumy
Hi Dilusha, AFAIK, since this is scope based permission for resources, this should work for both POST and DELETE resources even with the same user with the Administrator role. For example, if you create a scope with Administrator role and add this scope to all 3 resources, you should be able to

[Dev] Not able to access xslt from inside wso2 xslt mediator. Please guide.

2017-11-15 Thread aditya shivankar
Respected Sir, I have one xslt . I have saved it inside api(src/main/synapse-config/api) folder in my project. I am trying to access it using xslt mediator like below. But getting below error.Full logs can be found in attachment . [2017-11-15 18:11:39,128] [EI-Core] INFO - DependencyTracker

Re: [Dev] [IS] [OAuth] Validating and renewing an access token with one call.

2017-11-15 Thread Saneth Dharmakeerthi
Hi all Two options provided by Farasath is better than using refresh token all the time and creating a custom API to do both validate and refresh task. - Using refresh token all the time is not good for performance wise. - Creating a custom API to do both validate and refresh task is

Re: [Dev] 'Input too long' error occurred while executing Siddhi.bat file

2017-11-15 Thread Rasika Perera
Hi Raveen, Yes issue might be because of JAR files list of 279 makes the windows 'java' command hits the O/S limit. In your script, below loop is adding the fully qualified paths for the each jar file into the "classpath" of the java command. FOR %%D in ("%SIDDHI_HOME%\lib\*.jar") DO set

Re: [Dev] Passing payloads from API to ESB

2017-11-15 Thread Dushantha Batuwita
Hi Priya please find the attached image which I was referring in the above answer. sorry for the mixup Regards On Wed, Nov 15, 2017 at 5:30 PM, Dushantha Batuwita wrote: > Hi Piriya > > Above approach, you can implement in the POST and PUT. > The resource type GET produces

Re: [Dev] Passing payloads from API to ESB

2017-11-15 Thread Dushantha Batuwita
Hi Piriya Above approach, you can implement in the POST and PUT. The resource type GET produces a request that does not have a body (payload), hence we set the required parameter as a query parameter when you set the resource GET while creating the API in publisher. (please refer to the attached

Re: [Dev] Passing payloads from API to ESB

2017-11-15 Thread Piriya Sivalingam
Hi Dushantha, Since I have GET, POST,PUT, DELETE methods in my proxy, do you say the above-suggested method will work for GET. I have tried it but could not achieve it. And if I am correct, your example is about POST or PUT method. Could you please let me know whether I can use the same way for

Re: [Dev] (no subject)

2017-11-15 Thread Dilusha Alphonso
Hi All, The Administrator(role) has resource permission for DELETE and POST. First I have assigned the same user to both resources. so that doesn't work for POST. But works for DELETE. After that, I created a new user (Admin_user) and assigned the same role (Administrator). I used that

Re: [Dev] (no subject)

2017-11-15 Thread Pubudu Gunatilaka
Hi Dilusha, Please make sure you have the correct scope in the response of the token generation. Thank you! On Wed, Nov 15, 2017 at 5:52 PM, Dilusha Alphonso wrote: > Hi All, > > I am trying to add SCOPE to API manager 2.1.0. I have the user role. We > have to give the

[Dev] WSO2 Committers += Dinali Dabarera

2017-11-15 Thread KasunG Gajasinghe
Hi All, It's my pleasure to announce Dinali Dabarera as a WSO2 Committer. She has made a great contribution to IS by developing multiple features, and in recognition of her contribution, dedication and commitment she has been voted as a WSO2 committer. Congratulations Dinali and keep up the

Re: [Dev] (no subject)

2017-11-15 Thread Rukshan Premathunga
Hi Dilusha, What roles did you assign to that user? just administrator role assigned? Can you assign login and subscriber role to that user and check? Thanks and Regards On Wed, Nov 15, 2017 at 3:22 PM, Dilusha Alphonso wrote: > Hi All, > > I am trying to add SCOPE to API

[Dev] Error response while adding scope to "POST" in APIM 2.1.0

2017-11-15 Thread Dilusha Alphonso
Hi All, I am trying to add SCOPE to API manager 2.1.0. I have the user role. We have to give the resource permission for the particular role.I follow this link [1] 1. I created a new user in APIM management console using super tenant. ( user is User_Administrator) I didn't give any permission to

[Dev] (no subject)

2017-11-15 Thread Dilusha Alphonso
Hi All, I am trying to add SCOPE to API manager 2.1.0. I have the user role. We have to give the resource permission for the particular role.I follow this link [1] 1. I created a new user in APIM management console using super tenant. ( user is User_Administrator) I didn't give any permission to

Re: [Dev] Passing payloads from API to ESB

2017-11-15 Thread Dushantha Batuwita
please refer to the above answers Regards On Wed, Nov 15, 2017 at 2:35 PM, Dushantha Batuwita wrote: > Hi Buddhimala > Accessing the JSON payload parameters and retrieving those within the > proxy service can be achieved with the element of the Payload > factory mediator

[Dev] Passing payloads from API to ESB

2017-11-15 Thread Buddhimala Ranasinghe
Hi All, I need to pass a json payload from an API to ESB proxy service. In ESB, I'm using parameters in the passed JSON payload inside payloadFactory mediator in my ESB which will be sent towards a secured SOAP BE. Can you please guide me on this? I need to know how could those parameters can be