Re: [Dev] [C5] Archetypes Tests for Kernel

2017-05-17 Thread Manuri Amaya Perera
Thank you Kishanthan.

On Thu, May 18, 2017 at 9:08 AM, Kishanthan Thangarajah  wrote:

> Merged.
>
> Thanks,
>
> On Tue, May 16, 2017 at 10:50 PM, Manuri Amaya Perera 
> wrote:
>
>> Hi Kishanthan,
>>
>> I have replied to the comments.
>>
>> Thanks,
>> Manuri
>>
>> On Tue, May 16, 2017 at 10:32 PM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Hi Manuri,
>>>
>>> Thank you for looking into this. I have added some review comments on
>>> the PR.
>>>
>>> Thanks,
>>>
>>> On Mon, May 15, 2017 at 10:23 PM, Manuri Amaya Perera 
>>> wrote:
>>>
 Hi Carbon Team,

 Please review and merge this PR[1] for $subject. The tests were written
 before C5 5.0.0 release but later were reverted due to a test failure in
 windows caused by a bug in the maven archetype plugin. Now, after more than
 an year an archetype plugin release has taken place with this bug fixed, so
 I upgraded the plugin version and added the tests back.

 [1] https://github.com/wso2/carbon-kernel/pull/1370

 Thanks,
 Manuri

 --

 *Manuri Amaya Perera*

 *Software Engineer*

 *WSO2 Inc.*

 *Blog: http://manuriamayaperera.blogspot.com
 *



>>>
>>>
>>> --
>>> *Kishanthan Thangarajah*
>>> Technical Lead,
>>> Platform Technologies Team,
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - +94773426635 <+94%2077%20342%206635>
>>> Blog - *http://kishanthan.wordpress.com
>>> *
>>> Twitter - *http://twitter.com/kishanthan
>>> *
>>>
>>
>>
>>
>> --
>>
>> *Manuri Amaya Perera*
>>
>> *Software Engineer*
>>
>> *WSO2 Inc.*
>>
>> *Blog: http://manuriamayaperera.blogspot.com
>> *
>>
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635 <+94%2077%20342%206635>
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 

*Manuri Amaya Perera*

*Software Engineer*

*WSO2 Inc.*

*Blog: http://manuriamayaperera.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5] Archetypes Tests for Kernel

2017-05-17 Thread Kishanthan Thangarajah
Merged.

Thanks,

On Tue, May 16, 2017 at 10:50 PM, Manuri Amaya Perera 
wrote:

> Hi Kishanthan,
>
> I have replied to the comments.
>
> Thanks,
> Manuri
>
> On Tue, May 16, 2017 at 10:32 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Hi Manuri,
>>
>> Thank you for looking into this. I have added some review comments on the
>> PR.
>>
>> Thanks,
>>
>> On Mon, May 15, 2017 at 10:23 PM, Manuri Amaya Perera 
>> wrote:
>>
>>> Hi Carbon Team,
>>>
>>> Please review and merge this PR[1] for $subject. The tests were written
>>> before C5 5.0.0 release but later were reverted due to a test failure in
>>> windows caused by a bug in the maven archetype plugin. Now, after more than
>>> an year an archetype plugin release has taken place with this bug fixed, so
>>> I upgraded the plugin version and added the tests back.
>>>
>>> [1] https://github.com/wso2/carbon-kernel/pull/1370
>>>
>>> Thanks,
>>> Manuri
>>>
>>> --
>>>
>>> *Manuri Amaya Perera*
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc.*
>>>
>>> *Blog: http://manuriamayaperera.blogspot.com
>>> *
>>>
>>>
>>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635 <+94%2077%20342%206635>
>> Blog - *http://kishanthan.wordpress.com
>> *
>> Twitter - *http://twitter.com/kishanthan *
>>
>
>
>
> --
>
> *Manuri Amaya Perera*
>
> *Software Engineer*
>
> *WSO2 Inc.*
>
> *Blog: http://manuriamayaperera.blogspot.com
> *
>
>
>


-- 
*Kishanthan Thangarajah*
Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Automated deployment API Manager

2017-05-17 Thread Rajkumar Rajaratnam
Hi,

Recommended way to move APIs between environments is using API
import/export tool. See
https://docs.wso2.com/display/AM1100/Migrating+the+APIs+to+a+Different+Environment

In terms of environment specific things like URLs, you can externalize them
from the API definition and resolve it using a class mediator. See
http://nuwanzone.blogspot.com/2015/03/api-gateways-with-dedicated-back-ends.html

Even better, for latest API-M releases (1.10 onwards) that are based on
synapse 3, we can use get-property('system', 'host') and therefore won't
need any class mediators as I mentioned above to resolve environment
variables.

Passing environment variables in the server startup;

sh bin/wso2server.sh -Dhost=prod.wf.com -Dport=6443

Reading them in API synapse definition.




Thanks,
Raj.

On Wed, May 17, 2017 at 1:59 PM, Júnior  wrote:

> Hello,
>
> Is it possible to have automated deployment for API definitions on API
> Manager?
>
> We need to have the same API Definition  in different environments, what
> will change per environemt would be the URLs of the services.
>
> Is there any way to automate this "deployment" in the different
> environments, or is it needed to create one by one per environment?
>
> Thanks in advance
>
> --
> 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

LinkedIn: https://lk.linkedin.com/in/rajuu
Mobile: +1 408 791 7640
Blogs: http://wso2tech.blogspot.com/ | https://medium.com/@wso2tech
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Automated deployment API Manager

2017-05-17 Thread Júnior
Sorry, answer to the wrong question.

Thanks

2017-05-17 16:56 GMT-03:00 Júnior :

> As I didn't find a way of using the existing WSDL with external
> references,  I needed to generate a new WSDL with the XSD inlined.
>
> For that I used the QT Assistant
>  to generate a New WSDL with
> the XSD inlined.
>
> Thanks
>
> 2017-05-17 14:59 GMT-03:00 Júnior :
>
>> Hello,
>>
>> Is it possible to have automated deployment for API definitions on API
>> Manager?
>>
>> We need to have the same API Definition  in different environments, what
>> will change per environemt would be the URLs of the services.
>>
>> Is there any way to automate this "deployment" in the different
>> environments, or is it needed to create one by one per environment?
>>
>> Thanks in advance
>>
>> --
>> Francisco Ribeiro
>> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>>
>
>
>
> --
> Francisco Ribeiro
> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>



-- 
Francisco Ribeiro
*SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Automated deployment API Manager

2017-05-17 Thread Júnior
As I didn't find a way of using the existing WSDL with external references,
 I needed to generate a new WSDL with the XSD inlined.

For that I used the QT Assistant  to
generate a New WSDL with the XSD inlined.

Thanks

2017-05-17 14:59 GMT-03:00 Júnior :

> Hello,
>
> Is it possible to have automated deployment for API definitions on API
> Manager?
>
> We need to have the same API Definition  in different environments, what
> will change per environemt would be the URLs of the services.
>
> Is there any way to automate this "deployment" in the different
> environments, or is it needed to create one by one per environment?
>
> Thanks in advance
>
> --
> Francisco Ribeiro
> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>



-- 
Francisco Ribeiro
*SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Automated deployment API Manager

2017-05-17 Thread Júnior
Hello,

Is it possible to have automated deployment for API definitions on API
Manager?

We need to have the same API Definition  in different environments, what
will change per environemt would be the URLs of the services.

Is there any way to automate this "deployment" in the different
environments, or is it needed to create one by one per environment?

Thanks in advance

-- 
Francisco Ribeiro
*SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [carbon][apim] How does JDBC Session persistence work with unserializable UserRegistry

2017-05-17 Thread Chamara Philips
Hi all,

The CarbonTomcatSessionPersistenceManager

[1]
is extending the PersistentManagerBase

[2]
which writes the session objects to the mysql database using the JDBCStore

[3].
AFAIK in the JDBCStore, save(Session)

saves
the session after writing it to an OutputStream. Respectively in
load(String)

it
is loaded by an InputStream. But the session object has the UserRegistry
object with the key "WSO2RegistryRoot", which has unserializable objects in
the tree.

When I tried to do the same with a custom session manager, it fails giving
the following error.

*ERROR - RegistryAdminServiceClient Error occurred while checking registry
mode*
*org.apache.axis2.AxisFault: The input stream for an incoming message is
null.*
* at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:93)*
* at
org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:68)*
* at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:348)*
* at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)*
* at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)*
* at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)*

Basically, in the custom implementation, it doesn't have the UserRegistry
in the session received by  RegistryAdminServiceClient. But when I try with
CarbonTomcatSessionPersistenceManager it has the UserRegistry in the
session. The question is, how is it added to the session object. Any idea
how it works?


[1]
https://github.com/wso2/carbon-deployment/blob/v4.7.0/components/webapp-mgt/org.wso2.carbon.webapp.mgt/src/main/java/org/wso2/carbon/webapp/mgt/CarbonTomcatSessionPersistentManager.java

[2]
http://grepcode.com/file/repo1.maven.org/maven2/org.apache.geronimo.ext.tomcat/catalina/7.0.39.2/org/apache/catalina/session/PersistentManagerBase.java

[3]
http://grepcode.com/file/repo1.maven.org/maven2/org.apache.geronimo.ext.tomcat/catalina/7.0.39.2/org/apache/catalina/session/JDBCStore.java

Thanks & Regards
-- 
-- 
Hareendra Chamara (BSc.Eng(Hons))
Sysco acceleration,
SyscoLabs(Pvt) Ltd
Mobile : +94 (0) 767 184161 <94767184161> | +65 (9) 425 2874 <6594252874>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] BPS 3.5 seginals

2017-05-17 Thread Igor Golovko
Dear dev team, we have a problem with wso2 BPS 3.5.0.
We have bps-process with signal boundary events.
We try to activate request and when send request from rest api, this signal 
events didn't activate.
We send next request:

[cid:image001.png@01D2CF32.20C26190]

Response:
[cid:image002.jpg@01D2CF32.20C26190]
P.S In version 3.6.0 of WSO2 BPS, that works well.

Best regards,
Igor Golovko




This e-mail may contain privileged and confidential information. If you are not 
the intended recipient, be aware that any use, disclosure, copying or 
distribution of this e-mail or any attachments is prohibited. If you have 
received this e-mail in error, please notify us immediately by returning it to 
the sender and delete this copy from your system. Thank you.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSDL Type Proxy Service

2017-05-17 Thread Christos Sifinos
Hello,

I want to expose a Proxy Service with WSDL Type "Registry Key".
My question is what is better to use a WSDL as Local Entry or directly as 
Registry Resource?

Best Regards,
Christos
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2IS 5.3 initialization Failed: No subject alternative names present

2017-05-17 Thread Farasath Ahamed
Yes. As Kim has explained this could due to hostname verification failure
since the default certificates that come in wso2 products are for
'localhost'

You follow the steps in [1] to configure self signed certiticate for your
ip.

Alterntively as a quick fix you can disable hostname verification by
starting the server as,

sh wso2server.sh -Dhttpclient.hostnameVerifier=AllowAll

This is fine for testing purposes. But note that you should have the
correct certificates and enable hostname verification when you move into
production etc.


[1] https://docs.wso2.com/display/DS200/Troubleshooting+Guide

On Wednesday, May 17, 2017, 김대경  wrote:

> Hi,
>
> I think it is ssl exception.
> Because default keystore(wso2carbon.jks) and truststote(client-truststore.jks)
> include localhost alias, default setting would be ok.
>
> So, I think you should create new certification for your ip/domain and
> import it to keystore and truststore..
>
> Thanks.
>
> 2017. 5. 17. 오후 8:09에 "Melodias"  >님이 작성:
>
> Hi All,
>
> I wanted change localhost to ip my host in Identity Server.
> I changed  in carbon.xml next lines:
>
> 192.168.16.55
> 192.168.16.55
>
>
> I have error Authentication, when I logging to dashboard WSO2IS
> https://ip:9443/dashboard/
>
> ERROR {org.apache.catalina.core.StandardWrapperValve} -  Servlet.service()
> for servlet [default] in context with path [/authenticationendpoint] threw
> exception
> java.io.IOException: javax.net.ssl.SSLHandshakeException:
> java.security.cert.CertificateException: No subject alternative names
> present
>
> Before the configuration change, I didn't have problems like this.
> Any suggest what is wrong?
>
>
> Thanks,
> GH
>
>
>
> --
> View this message in context: http://wso2-oxygen-tank.10903.
> n7.nabble.com/WSO2IS-5-3-initialization-Failed-No-subject-
> alternative-names-present-tp148988.html
> Sent from the WSO2 Development mailing list archive at Nabble.com.
> ___
> Dev mailing list
> Dev@wso2.org 
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>

-- 
Farasath Ahamed
Software Engineer, WSO2 Inc.; http://wso2.com
Mobile: +94777603866
Blog: blog.farazath.com
Twitter: @farazath619 

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


[Dev] ESB XqueryMediator

2017-05-17 Thread Christos Sifinos
Hello,

I have tried to create a proxy service which executes an xquery for xml 
transformation.
My project "Composite Application Project" has a "Registry Resources Project" 
that includes my XQuery file and the "ESB Config Project".

When ESB tried to execute the XQuery mediator the following error has been 
occurred:

[2017-05-12 12:48:11,077] [] ERROR - XQueryMediator Unable to execute the query
java.lang.RuntimeException: ContentID is null
at 
org.apache.axiom.om.impl.llom.OMTextImpl.getDataHandler(OMTextImpl.java:381)
at 
org.apache.synapse.mediators.xquery.XQueryMediator.performQuery(XQueryMediator.java:242)
at 
org.apache.synapse.mediators.xquery.XQueryMediator.mediate(XQueryMediator.java:127)
at 
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:97)
at 
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:59)
at 
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
at 
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:337)
at 
org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:554)
at 
org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:188)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at 
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:262)
at 
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Could you please explain me what I'm did wrong?

Best Regards,
Christos
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2IS 5.3 initialization Failed: No subject alternative names present

2017-05-17 Thread 김대경
Hi,

I think it is ssl exception.
Because default keystore(wso2carbon.jks) and
truststote(client-truststore.jks) include localhost alias, default setting
would be ok.

So, I think you should create new certification for your ip/domain and
import it to keystore and truststore..

Thanks.

2017. 5. 17. 오후 8:09에 "Melodias" 님이 작성:

Hi All,

I wanted change localhost to ip my host in Identity Server.
I changed  in carbon.xml next lines:

192.168.16.55
192.168.16.55


I have error Authentication, when I logging to dashboard WSO2IS
https://ip:9443/dashboard/

ERROR {org.apache.catalina.core.StandardWrapperValve} -  Servlet.service()
for servlet [default] in context with path [/authenticationendpoint] threw
exception
java.io.IOException: javax.net.ssl.SSLHandshakeException:
java.security.cert.CertificateException: No subject alternative names
present

Before the configuration change, I didn't have problems like this.
Any suggest what is wrong?


Thanks,
GH



--
View this message in context: http://wso2-oxygen-tank.10903.
n7.nabble.com/WSO2IS-5-3-initialization-Failed-No-subject-alternative-names-
present-tp148988.html
Sent from the WSO2 Development mailing list archive at Nabble.com.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2IS 5.3 initialization Failed: No subject alternative names present

2017-05-17 Thread Melodias
Hi All,

I wanted change localhost to ip my host in Identity Server. 
I changed  in carbon.xml next lines:

192.168.16.55
192.168.16.55


I have error Authentication, when I logging to dashboard WSO2IS
https://ip:9443/dashboard/

ERROR {org.apache.catalina.core.StandardWrapperValve} -  Servlet.service()
for servlet [default] in context with path [/authenticationendpoint] threw
exception
java.io.IOException: javax.net.ssl.SSLHandshakeException:
java.security.cert.CertificateException: No subject alternative names
present

Before the configuration change, I didn't have problems like this.
Any suggest what is wrong?


Thanks,
GH



--
View this message in context: 
http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2IS-5-3-initialization-Failed-No-subject-alternative-names-present-tp148988.html
Sent from the WSO2 Development mailing list archive at Nabble.com.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [dev] WSO2EI DSS Feature

2017-05-17 Thread 김대경
Hi all,

I am configuring wso2 ei and dss these days.

I have a few questions.
The batch request function does not work correctly after dss is included in
ei. (For example, a multi-sheet insert).
Is it just me?

Also, I would like to connect another tibro database of timax soft.
Is there any reference to how to configure (Datasource Provider, Database
Engine, etc ..)?

Thanks.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Fathima Dilhasha

2017-05-17 Thread Riyafa Abdul Hameed
Congratulations...

On Tue, May 16, 2017 at 8:43 AM, Yasima Dewmini  wrote:

> Congratz Dilhasha! :)
>
> On Mon, May 15, 2017 at 11:34 AM, Isuru Wimalasundera 
> wrote:
>
>> Hi All
>>
>> It's my pleasure to welcome Fathima Dilhasha as a WSO2 Committer.
>>
>> Dilhasha has been a valuable contributor to WSO2 cloud team.  In
>> recognition of her contribution, dedication and commitment she has been
>> voted as a WSO2 committer.
>>
>> Dilhasha, welcome aboard and keep up the good work !!!
>>
>> Thank You
>>
>> --
>> *Isuru Wimalasundera*
>> Associate Technical Lead;
>> WSO2 Cloud; http://cloud.wso2.com
>> WSO2, Inc.; http://wso2.com,
>> mobile: +94 77 920 5641
>> Blog : http://isurupw.blogspot.com/
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> http://wso2.com/signatureYasima Dewmini
> Software Engineer, WSO2, Inc.
> Email: yas...@wso2.com
> Mobile: +94713117081 <+94%2071%20311%207081>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Riyafa Abdul Hameed
Software Engineer, WSO2 Lanka (Pvt) Ltd 

Email: riy...@wso2.com 
Website: https://riyafa.wordpress.com/ 
  

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


Re: [Dev] Implemeting Scope Validator

2017-05-17 Thread Hasanthi Purnima Dissanayake
Hi All,

We have suggested a new property  for the parent
 along with the  segment  to on/off
the functionality of issuing the id token for grant types. For
oauthorization_code grant type we ignore this property and issue id token
by default for the 'openid' scope.

Thanks,

Hasanthi Dissanayake

Software Engineer | WSO2

E: hasan...@wso2.com
M :0718407133| http://wso2.com 

On Wed, May 17, 2017 at 7:52 AM, Pushpalanka Jayawardhana 
wrote:

> Hi,
>
> On Tue, May 16, 2017 at 10:56 PM, Hasanthi Purnima Dissanayake <
> hasan...@wso2.com> wrote:
>
>> Hi Farasath, Lanka
>>>
>>> What about extension grant types like SAML2BearerGrant, JWTBearer or any
>>> other custom grant type we write?
>>> AFAIR we do issue id_tokens to any grant type when "openid" scope is
>>> present.
>>
>>
>> IMO using "openid" scope to issue id_tokens like SAML2Bearer ,etc is not
>> required.
>>
>> If our current implementation allows id_token generation for all types
>>> wouldn't this break existing clients?
>>
>>
>> This is an optional configuration, so we don't break any existing clients
>> here.
>>
>> @Lanka,
>>
>>>
>>> 
>>> 
>>> authorization_code
>>> org
>>> .wso2.carbon.identity.oauth2.token.handlers.grant.Authorizat
>>> ionCodeGrantHandler
>>> *true*
>>> 
>>> ..
>>> 
>>>
>>> We can ship default configuration as the behavior we currently have, so
>>> none of the existing scenarios break.
>>> OIDC scope validator can consume this information from here.
>>>
>>
>> We already have below configuration for the APIM for JDBC Scope
>> validation.
>>
>> > alidators.JDBCScopeValidator"/>
>>
>> This is backward compatible so none of the existing scenarios break.
>> Customers can even plug their own validators here. As this is bit simple
>> shall we proceed with the above configurations?
>>
> Yes,  above configuration '*' *was suggested just as
> the location to read whether that grant type allow issuing ID tokens. With
> this configuration it allows flexibility to control IDtoken issuing for
> each grant(when the specs don't enforce anything. ex. when a custom grant
> is registered.) without writing more custom code.
> Enforcing this property can be done through the new '
> org.wso2.carbon.identity.oauth2.validators.OIDCScopeValidator' class.
>
>>
>> Thanks,
>>
>>
>>
>>
>>
>> Hasanthi Dissanayake
>>
>> Software Engineer | WSO2
>>
>> E: hasan...@wso2.com
>> M :0718407133 <071%20840%207133>| http://wso2.com 
>>
>> On Tue, May 16, 2017 at 9:24 PM, Pushpalanka Jayawardhana > > wrote:
>>
>>> Hi All,
>>>
>>> On Tue, May 16, 2017 at 8:15 PM, Ishara Karunarathna 
>>> wrote:
>>>
 intension of using scope validate is to handle OIDC support in a single
 place.


 On Tue, May 16, 2017 at 7:52 PM, Farasath Ahamed 
 wrote:

>
> On Tue, May 16, 2017 at 7:38 PM, Hasanthi Purnima Dissanayake <
> hasan...@wso2.com> wrote:
>
>> Hi All,
>> In our current OIDC implementation we support below four grant types
>> and issue id tokens and user info claims for all the below grant type.
>>
>>- authorization_code
>>- implicit
>>- client_credential
>>- password
>>
>> What about extension grant types like SAML2BearerGrant, JWTBearer or
> any other custom grant type we write?
> AFAIR we do issue id_tokens to any grant type when "openid" scope is
> present.
>
>
>> Among those 4 grant types that we have implemented, OIDC spec
>> discusses about only implict and authorization_code grant types. 
>> According
>> to the spec "openid" scope value is a must to Inform the
>> Authorization Server that the client is making an OpenID Connect request.
>> So we have introduced a new property in identity.xml as below and we have
>> implemented a scope validator to validate whether the grant types are
>> authorization_code , implicit or password if the scope is openid.
>>
>
>> 
>> > alidators.JDBCScopeValidator"/>
>> 
>> 
>>
>> So with the above property and the implementation OIDC grant types
>> that we are supporting will be authorization_code , implicit and
>> password grant types.
>>
>
> If our current implementation allows id_token generation for all types
> wouldn't this break existing clients?
>
> If our motive is to stop issuing id_token for client_credential grant
> type (which makes sense since id_token for client_credentials lacks a
> semantic value), I feel we should use a blacklisting approach in the
> OIDCScopeValidator and not issue id_token by checking if the request comes
> from the  grant_type client_credentials.
>
> To keep the backward compatibility and cater customer requirements
 better to get OIDC supported information from property
 +1 for this

>>> In that isn't it better to keep that property along with the

Re: [Dev] Regarding gmail connector

2017-05-17 Thread Varuni Alwis
Hi Hariprasath,

Thanks for the response. I could successfully achieve that with the new
gmail connector.

*Varuni Alwis*
*Software Engineer - Intern*
*WSO2*

Email : var...@wso2.com
Mobile : +94 719865395




On Wed, May 17, 2017 at 2:26 PM, Hariprasath Thanarajah <
haripras...@wso2.com> wrote:

> Hi Varuni,
>
> Now you can able to send a mail in the html format in the mail body using
> the WSO2 ESB Gmail connector. The new gmail connector can be found in the
> store[1], and the documentation can be found in[2],
>
> [1] - https://store.wso2.com/store/assets/esbconnector/details/
> 74539b71-3b72-49c1-a21a-f08ad7d7d4ad
> [2] - https://docs.wso2.com/display/ESBCONNECTORS/Working+with+
> Messages+in+Gmail#WorkingwithMessagesinGmail-sendMail
>
> On Thu, Apr 27, 2017 at 9:44 AM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> HI Varuni,
>>
>> As per the ticket [1], current connector only supports plain text
>> messages.
>>
>> [1]. https://wso2.org/jira/browse/ESBCONNECT-147
>>
>> Thanks,
>>
>> On Thu, Apr 27, 2017 at 9:37 AM, Supun Sethunga  wrote:
>>
>>> Which Gmail connector are you referring to? ESB[1] or Ballerina[2] ?
>>>
>>> [1] https://docs.wso2.com/display/ESBCONNECTORS/Gmail+Connector
>>> [2] http://ballerinalang.org/docs/api/0.8/org.wso2.ballerina
>>> .connectors.gmail.html
>>>
>>> On Wed, Apr 26, 2017 at 5:29 PM, Varuni Alwis  wrote:
>>>
 Hi all,

 I want to send a mail in the html format (not as a text) in the mail
 body using the gmail connector? Is that possible with the connector?

 Thanks.


 *Varuni Alwis*
 *Software Engineer - Intern*
 *WSO2*

 Email : var...@wso2.com
 Mobile : +94 719865395 <+94%2071%20986%205395>




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


>>>
>>>
>>> --
>>> *Supun Sethunga*
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> http://wso2.com/
>>> lean | enterprise | middleware
>>> Mobile : +94 716546324 <+94%2071%20654%206324>
>>> Blog: http://supunsetunga.blogspot.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> 
>> Keerthika Mahendralingam
>> Software Engineer
>> Mobile :+94 (0) 776 121144 <+94%2077%20612%201144>
>> keerth...@wso2.com
>> WSO2, Inc.
>> lean . enterprise . middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
>
> *Thank you and Regards,**Hariprasath Thanarajah*
> Software Engineer | WSO2
> E: haripras...@wso2.com
> M: +94 75 2806528 <+94%2075%20280%206528>, +94 77 7216903
> <+94%2077%20721%206903>
> Blog: hariwso2.blogspot.com
>
> Skype : hariss636
> LinkedIn : https://www.linkedin.com/in/hariprasath-thanarajah-5234b660
>
> WSO2, Inc.
> lean . enterprise . middleware
>
> https://wso2.com/signature
> http://wso2.com/about/team/hariprashath-thanarajah/
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Regarding gmail connector

2017-05-17 Thread Hariprasath Thanarajah
Hi Varuni,

Now you can able to send a mail in the html format in the mail body using
the WSO2 ESB Gmail connector. The new gmail connector can be found in the
store[1], and the documentation can be found in[2],

[1] -
https://store.wso2.com/store/assets/esbconnector/details/74539b71-3b72-49c1-a21a-f08ad7d7d4ad
[2] -
https://docs.wso2.com/display/ESBCONNECTORS/Working+with+Messages+in+Gmail#WorkingwithMessagesinGmail-sendMail

On Thu, Apr 27, 2017 at 9:44 AM, Keerthika Mahendralingam <
keerth...@wso2.com> wrote:

> HI Varuni,
>
> As per the ticket [1], current connector only supports plain text messages.
>
> [1]. https://wso2.org/jira/browse/ESBCONNECT-147
>
> Thanks,
>
> On Thu, Apr 27, 2017 at 9:37 AM, Supun Sethunga  wrote:
>
>> Which Gmail connector are you referring to? ESB[1] or Ballerina[2] ?
>>
>> [1] https://docs.wso2.com/display/ESBCONNECTORS/Gmail+Connector
>> [2] http://ballerinalang.org/docs/api/0.8/org.wso2.ballerina
>> .connectors.gmail.html
>>
>> On Wed, Apr 26, 2017 at 5:29 PM, Varuni Alwis  wrote:
>>
>>> Hi all,
>>>
>>> I want to send a mail in the html format (not as a text) in the mail
>>> body using the gmail connector? Is that possible with the connector?
>>>
>>> Thanks.
>>>
>>>
>>> *Varuni Alwis*
>>> *Software Engineer - Intern*
>>> *WSO2*
>>>
>>> Email : var...@wso2.com
>>> Mobile : +94 719865395 <+94%2071%20986%205395>
>>>
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Supun Sethunga*
>> Senior Software Engineer
>> WSO2, Inc.
>> http://wso2.com/
>> lean | enterprise | middleware
>> Mobile : +94 716546324 <+94%2071%20654%206324>
>> Blog: http://supunsetunga.blogspot.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 
> Keerthika Mahendralingam
> Software Engineer
> Mobile :+94 (0) 776 121144 <+94%2077%20612%201144>
> keerth...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 


*Thank you and Regards,**Hariprasath Thanarajah*
Software Engineer | WSO2
E: haripras...@wso2.com
M: +94 75 2806528, +94 77 7216903
Blog: hariwso2.blogspot.com

Skype : hariss636
LinkedIn : https://www.linkedin.com/in/hariprasath-thanarajah-5234b660

WSO2, Inc.
lean . enterprise . middleware

https://wso2.com/signature
http://wso2.com/about/team/hariprashath-thanarajah/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev