Re: [Dev] Adding Google as identity provider to WSO2 API Manager 2.1.0 without integrating WSO2 Identiy Server

2017-12-06 Thread Tharindu Edirisinghe
Hi Shiva, If we can get the google authenticator [1] feature installed on APIM 2.1.0 successfully, then your requirement is possible. I'm thinking of a solution where we manually build the authenticator to support APIM and getting it installed. I've added few members from the API Manager Dev

[Dev] Misspelled MySQL index name in MySQL 5.7 db script

2017-12-06 Thread Chiranga Alwis
Hi all, I encountered the following misspelled MySQL index name in MySQL 5.7 db script (/dbscripts/mysql5.7.sql). *CREATE INDEX REG_RESOURCE_IND_BY_TENAN USING HASH ON REG_RESOURCE(REG_TENANT_ID, REG_UUID);* in which '*REG_RESOURCE_IND_BY_TENAN' *index name should ideally change to '

Re: [Dev] Add asset information with multivalue attributes using Governance REST API

2017-12-06 Thread Prasanna Dangalla
HI All, Saneth and I Investigated this issue and it seems to be the POST request cannot send unbounded table field values. But I remember fixing this in GET requests. [1,2]. [1] - https://github.com/wso2/carbon-governance/pull/103/ [2] -

[Dev] Enabling Role-Based Access Control Using XACML

2017-12-06 Thread Chathurika De Silva
Hi While trying to get a fine grained access control implemented for apis using WSO2 Identity server, I came across [1] which provides a high level guide to get it done, then going forward I referred [2] which discusses $subject. In [1] it mentions using WSO2 IS set up as the key manager for

Re: [Dev] Stream Processor Editor - Removing .siddhi file extension from showing on the ui

2017-12-06 Thread Eranga Liyanage
Hi Damith, In editors usually, we can edit multiple file types. So when the respective file is opened it shows the file type with it for easy identification. But in our case, we support only .siddhi files and we open files from our own workspace which contains only siddhi files. Many single file

Re: [Dev] [APIM] [2.1.0] Read tenant registry config from jaggery

2017-12-06 Thread Prasanna Dangalla
HI Viduranga, You can get the content in a registry resource as follows, Object content = resource.getContent(); String jsonContent = RegistryUtils.decodeBytes((byte[]) content); This will retourn the You have to get the resource from the tenant registry you need. [1] -

Re: [Dev] Adding Google as identity provider to WSO2 API Manager 2.1.0 without integrating WSO2 Identiy Server

2017-12-06 Thread Shiva Kumar K R
Hi Tharindu, Thank you so much for your response. I already have registered with Google an OAuth app and got client credentials, I will tell my requirement properly below, please suggest me any solution. 1) I obtain WSO2 client credentials in API store for my application. 2) I will also obtain

Re: [Dev] [APIM] [2.1.0] Read tenant registry config from jaggery

2017-12-06 Thread Viduranga Gunarathne
Hi Irham, Mushthaq @Mushthaq, thanks for the prompt reply. I will look into it. On Thu, Dec 7, 2017 at 10:57 AM, Irham Iqbal wrote: > Hi Viduranga, > > What exactly you're trying to do ? > I mean are you trying to directly read the files from Jaggery or trying to > access the

Re: [Dev] [APIM] [2.1.0] Read tenant registry config from jaggery

2017-12-06 Thread Praminda Jayawardana
Hi Viduranga, See [1]. It might be helpful. [1]: https://github.com/wso2/carbon-apimgt/blob/6.1.x/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/site/blocks/api-doc/ajax/get.jag#L79 Thanks, Praminda On Thu, Dec 7, 2017 at 10:57 AM, Irham Iqbal

Re: [Dev] [APIM] [2.1.0] Read tenant registry config from jaggery

2017-12-06 Thread Irham Iqbal
Hi Viduranga, What exactly you're trying to do ? I mean are you trying to directly read the files from Jaggery or trying to access the registry resources by using admin service from Jaggery ? Thanks, Iqbal On Thu, Dec 7, 2017 at 10:48 AM, Viduranga Gunarathne wrote: > Hi,

Re: [Dev] [APIM] [2.1.0] Read tenant registry config from jaggery

2017-12-06 Thread Mushthaq Rumy
Hi Viduranga, You can achieve this by adding a new method in a file in the store/modules directory to get the particular value from the registry path. Then you can call this function from the store/site/blocks/api/api-info/block.jag file as follows, Assuming that your function name is

[Dev] [APIM] [2.1.0] Read tenant registry config from jaggery

2017-12-06 Thread Viduranga Gunarathne
Hi, I'm working on APIM 2.1.0 and I need to read a configuration in the tenant registry that is specific to each tenant, from the jaggery layer so that it can be displayed in the Store UI. Any tips on how to do this? Also, The media type of the "tenant-conf" is json and can that be accessed as

Re: [Dev] Deprecating Mandrill connector

2017-12-06 Thread Kesavan Yogarajah
Thanks, Maheshika. Kesavan Yogarajah Software Engineer Mobile :+94 (0) 779 758021 kesav...@wso2.com WSO2, Inc. lean . enterprise . middleware On Thu, Dec 7, 2017 at 10:19 AM, Maheshika Goonetilleke wrote: > Hi Kesavan > > Moved relevant job to "retired" and transferred the

Re: [Dev] Swagger UI 3.x - Missing functionalities

2017-12-06 Thread Praminda Jayawardana
Hi Thilini, 1. You can provide a requestInteceptor when initializing the swagger ui component. I used that to inject the access token. Ex: requestInterceptor: function(request) { request.headers.Authorization = "Bearer " + key; return request;} 2. I haven't tried this but you should be

Re: [Dev] Deprecating Mandrill connector

2017-12-06 Thread Maheshika Goonetilleke
Hi Kesavan Moved relevant job to "retired" and transferred the repo to wso2-attic On Thu, Dec 7, 2017 at 9:51 AM, Kesavan Yogarajah wrote: > Hi All, > > Mandrill connector removed from the store and the documentation also moved > to private space. > > @Maheshika Please move

Re: [Dev] [Announce] WSO2 Committers += Menaka Jayawardena

2017-12-06 Thread Rasika Perera
Congratulations Menaka !!! On Tue, Dec 5, 2017 at 10:16 AM, Geeth Munasinghe wrote: > Hi all, > > It is my pleasure to welcome Menaka Jayawardena as WSO2 Committer. He has > been a valuable contributor to EMM/IoT team and to various other projects. > In recognition of his

Re: [Dev] Adding Google as identity provider to WSO2 API Manager 2.1.0 without integrating WSO2 Identiy Server

2017-12-06 Thread Youcef HILEM
Hi Tharindu, Thank you fou your reponse. Installation of other authenticators is not possible because of incompatibility in the dependencies. Issue : https://github.com/wso2/carbon-apimgt/issues/4776 As long as this issue is not resolved, it is not possible to integrate other authenticators.

[Dev] Swagger UI 3.x - Missing functionalities

2017-12-06 Thread Thilini Shanika
Hi, When upgrading swagger-ui in APIM to 3.x, we found that some of the functionalities which have been supported by swagger 2.x are not available in swagger-ui 3.x. Swagger ui 3.x is a rewrite based on react and it seems like they haven't pushed some of the features from swagger 2.x to 3.x.

Re: [Dev] Deprecating Mandrill connector

2017-12-06 Thread Kesavan Yogarajah
Hi All, Mandrill connector removed from the store and the documentation also moved to private space. @Maheshika Please move [1] to wso2-attic and disable the Jenkins jobs. [1] - https://github.com/wso2-extensions/esb-connector-mandrill Thanks Kesavan Kesavan Yogarajah Software Engineer Mobile

[Dev] Stream Processor Editor - Removing .siddhi file extension from showing on the ui

2017-12-06 Thread Damith Wickramasinghe
Hi Eranga/ All, In stream processor we support only files with .siddhi extension. Even though it is the case IMO user needs to know that the file should have .siddhi extension. Because one can just copy paste a file to workspace directory of editor without adding the .siddhi extension when he see

[Dev] [EI] Calling secured proxy from another Secured proxy

2017-12-06 Thread Godwin Shrimal
Hi Devs, There are two secured proxy services and both are secured with same security policy. Front-end application calls the proxy_1 and proxy_1 calls proxy_2 using http transport as shown below. *App* --> *proxy_1* --> *proxy_2* Frontend application sending envelope with *ws-security*

Re: [Dev] Minimum permission required to view a Service provider application in management console

2017-12-06 Thread Nilasini Thirunavukkarasu
Thank you Omindu for the clarification. Thanks, Nila. On Wed, Dec 6, 2017 at 6:10 PM, Omindu Rathnaweera wrote: > There's a limitation managing applications in a fine grained manner from > the management console. As per [1] you'll have to > give

Re: [Dev] Minimum permission required to view a Service provider application in management console

2017-12-06 Thread Omindu Rathnaweera
There's a limitation managing applications in a fine grained manner from the management console. As per [1] you'll have to give /permission/admin/manage/identity/applicationmgt permission in order to view the menu option in the console, meaning giving only application read permission for a role

[Dev] Minimum permission required to view a Service provider application in management console

2017-12-06 Thread Nilasini Thirunavukkarasu
Hi, I wanted to know the minimum permission required in order to view a service provider application? The scenario I tried is 1) Create a service provider travelocity using user1. (It creates an application specific role Application/travelocity) 2) Create another user from user1 let's say the

Re: [Dev] Registering a partial in handlebars

2017-12-06 Thread Nipuni Salgado
Hi Yasima, I'll try that and see. Thank you. On Wed, Dec 6, 2017 at 2:34 PM, Yasima Dewmini wrote: > Hi Nipuni, > > Can you try as following without using Jquery? It worked for me. > > Handlebars.registerPartial("generateDoc", >

Re: [Dev] How to Write a XACML policy to restrict user admin operations on user stores

2017-12-06 Thread Denuwanthi De Silva
You can create a custom listener by extending ' AbstractIdentityUserOperationEventListener'. Our default provisioning listener is written in that way[1]. You can refer that and create your custom listener and overide the method you would like to invoke the XACML PDP. You can invoke the PDP using

[Dev] Add asset information with multivalue attributes using Governance REST API

2017-12-06 Thread Saneth Dharmakeerthi
Hi, I am writing a client to import asset information to GREG using Governance REST API [1]. If assert has multivalue tables I wonder how we can include them in the POST request. Appreciate your feedback on how can I accomplish this task. [1]

Re: [Dev] Registering a partial in handlebars

2017-12-06 Thread Yasima Dewmini
Hi Nipuni, Can you try as following without using Jquery? It worked for me. Handlebars.registerPartial("generateDoc", document.getElementById("generateDoc").innerHTML); Refer [1] for more information. [1]

[Dev] Adding Google as identity provider to WSO2 API Manager 2.1.0 without integrating WSO2 Identiy Server

2017-12-06 Thread Shiva Kumar K R
Hi, I have to use Google, Facebook or any third party Identiy provider just to authenticate users and giving access to my APIs by generating access token in my WSO2. I know Identity server support it but because of resource constraints I want this to be achieved through only WSO2 API Manager. Is