[Dev] [IS] Enhance authentication criteria with a third attribute

2016-12-22 Thread Hanen Ben Rhouma
Hello,

Is there a way to manage authentication based on a third attribute like
"workingHours" which specifies in which time interval is the user
authorized to access ? Can we customize WSO2 IS to take this attribute into
account?


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


Re: [Dev] [APIM][C5] Issue while Implementing Global Configuration Model

2016-12-22 Thread Niranjan Karunanandham
Hi Ishara,

You can include the resources, i.e., the config-docs, into the jar by using
"" in the maven-bundle-plugin.

Regards,
Nira

On Thu, Dec 22, 2016 at 12:57 PM, Ishara Cooray  wrote:

> Hi,
>
> I am implementing Global Configuration Model for C5 API Manger.
> There to get the config docs created i have used the below maven plugin in
> component pom.xml
>
> The config bean class/classes has to be specified in configurations as
>  as shown below.
> Then configuration document file(.yaml) files
> w.r.t two bean classes i have specified were generated in
> target/classes/config-docs directory.
>
> 
> org.wso2.carbon
> org.wso2.carbon.plugins.configuration artifactId>
> 
> 
> 
> create-doc
> 
> 
> 
> org.wso2.carbon.apimgt.core.
> APIMConfigurations
> org.wso2.carbon.apimgt.core.
> KeyMgtConfigurations
> 
> 
> compile
> 
> 
> 
>
> Then i have put following plugin in feature pom to copy the config-doc
> files to the feature. When feature builds, it is supposed to copy 
> configuration
> document file(.yaml) to config-docs directory.
>
> 
> org.apache.maven.plugins
> maven-dependency-plugin
> 
> 
> unpack
> package
> 
> unpack
> 
> 
> 
> 
> org.wso2.carbon.
> apimgt
> org.wso2.carbon.
> apimgt.core
> 7.0.0-SNAPSHOT
> bundle
> true
> ${project.
> build.directory}/docs
> config-docs/**
> 
> 
> 
> 
> 
> 
>
> But this is not get copied in feature target/docs directory as i have
> noticed.
>
> With the help of Niranjan found out that there is an issue in copying the
> files.
>
> @kernel team,
> Can we get a fix for this?
>
>
> Thanks & Regards,
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512 <+94%2077%20262%209512>
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>



-- 


*Niranjan Karunanandham*
Associate Technical Lead - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Enhance authentication criteria with a third attribute

2016-12-22 Thread Godwin Shrimal
Hi Hanen,

You are referring logging to Identity Server management console or SSO
login ?

Thanks
Godwin


On Thu, Dec 22, 2016 at 2:25 PM, Hanen Ben Rhouma 
wrote:

> Hello,
>
> Is there a way to manage authentication based on a third attribute like
> "workingHours" which specifies in which time interval is the user
> authorized to access ? Can we customize WSO2 IS to take this attribute into
> account?
>
>
> Regards,
> Hanen
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila

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


Re: [Dev] [IS] Enhance authentication criteria with a third attribute

2016-12-22 Thread Hanen Ben Rhouma
Hi Godwin,

I'm referring the IS management console.

Regards,
Hanen

On Thu, Dec 22, 2016 at 10:30 AM, Godwin Shrimal  wrote:

> Hi Hanen,
>
> You are referring logging to Identity Server management console or SSO
> login ?
>
> Thanks
> Godwin
>
>
> On Thu, Dec 22, 2016 at 2:25 PM, Hanen Ben Rhouma 
> wrote:
>
>> Hello,
>>
>> Is there a way to manage authentication based on a third attribute like
>> "workingHours" which specifies in which time interval is the user
>> authorized to access ? Can we customize WSO2 IS to take this attribute into
>> account?
>>
>>
>> Regards,
>> Hanen
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
> 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Enhance authentication criteria with a third attribute

2016-12-22 Thread Godwin Shrimal
Hi Hanen,

In default IS pack, it authenticate the user via
org.wso2.carbon.user.core.ldap.*ReadWriteLDAPUserStoreManager *class (You
can find the source in [1]) which is configured in
/repository/conf/user-mgt.xml. To overcome your requirement to
authenticate based on a third attribute as you have mentioned, you can
write a custom user store manager and can configure in user-mgt.xml. Please
refer [2] how to write custom user store manager.

[1]
https://github.com/wso2/carbon-kernel/blob/v4.4.4/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/ldap/ReadWriteLDAPUserStoreManager.java
[2] https://docs.wso2.com/display/IS500/Writing+a+Custom+User+Store+Manager

Thanks
Godwin

On Thu, Dec 22, 2016 at 3:08 PM, Hanen Ben Rhouma 
wrote:

> Hi Godwin,
>
> I'm referring the IS management console.
>
> Regards,
> Hanen
>
> On Thu, Dec 22, 2016 at 10:30 AM, Godwin Shrimal  wrote:
>
>> Hi Hanen,
>>
>> You are referring logging to Identity Server management console or SSO
>> login ?
>>
>> Thanks
>> Godwin
>>
>>
>> On Thu, Dec 22, 2016 at 2:25 PM, Hanen Ben Rhouma 
>> wrote:
>>
>>> Hello,
>>>
>>> Is there a way to manage authentication based on a third attribute like
>>> "workingHours" which specifies in which time interval is the user
>>> authorized to access ? Can we customize WSO2 IS to take this attribute into
>>> account?
>>>
>>>
>>> Regards,
>>> Hanen
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>> 
>>
>
>


-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila

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


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.11 RC2

2016-12-22 Thread Praminda Jayawardana
Hi All,

Please hold the vote as we are still testing with APIM.

Thanks,
Praminda

On Thu, Dec 22, 2016 at 10:18 AM, Rushmin Fernando  wrote:

> Verified user management functionalities.
>
> [x] Stable - Go ahead and release.
>
> On Wed, Dec 21, 2016 at 8:14 PM, Kalpa Welivitigoda 
> wrote:
>
>> Hi folks,
>>
>> This is the 2nd release candidate of WSO2 Carbon Kernel 4.4.11.
>>
>> This release fixes the following issues
>> https://wso2.org/jira/issues/?filter=13618
>>
>> Please download and test your products with kernel 4.4.11 RC2 and vote.
>> The vote will be open for 72 hours or as longer as needed.
>>
>> Source and binary distribution files:
>> http://svn.wso2.org/repos/wso2/people/kalpaw/wso2carbon-4.4.
>> 11/wso2carbon-4.4.11-rc2.zip
>>
>> Maven staging repository
>> https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1065
>>
>> The tag to be voted upon :
>> https://github.com/wso2/carbon-kernel/releases/tag/v4.4.11-rc2
>>
>> [ ] Broken - Do not release (explain why)
>> [ ] Stable  - Go ahead and release
>>
>> Thank you
>> Platform Team
>>
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Senior Software Engineer, WSO2 Inc. http://wso2.com
>> Email: kal...@wso2.com
>> Mobile: +94776509215 <+94%2077%20650%209215>
>>
>> [image: http://wso2.com/signature] 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Best Regards*
>
> *Rushmin Fernando*
> *Technical Lead*
>
> WSO2 Inc.  - Lean . Enterprise . Middleware
>
> mobile : +94775615183
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Praminda Jayawardana*
Software Engineer
WSO2 Inc.; http://wso2.com
Mobile : +94 (0) 716 590918
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Bug on AskPassword feature

2016-12-22 Thread Koné Alioune Badara
Hello,

I'm trying to implement the AskPassword feature with the 5.3.0-BETA
version, I followed every steps of the documentation and succeded to send
the email, but when I go to page where I enter set my password, on the
submit I get an error message (cf the screenshot).

Is there something that I do wrong or is it a known bug?

Note: the link sent in the mail is :
https://localhost:9443/accountrecoveryendpoint/confirmrecovery.do?confirmation={71fda0b5-9ebf-4e0c-abc6-c79240d35681}&userstoredomain={PRIMARY}&username={romeo}&tenantdomain={carbon.super}

Regards,

Alioune B KONÉ.
MASTER ETNA 2016.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.11 RC2

2016-12-22 Thread Praminda Jayawardana
Hi All,

Tested with integration tests and performed basic functionality test on
APIM. No issues found.

[X] Stable  - Go ahead and release

Thanks,
Praminda

On Thu, Dec 22, 2016 at 3:20 PM, Praminda Jayawardana 
wrote:

> Hi All,
>
> Please hold the vote as we are still testing with APIM.
>
> Thanks,
> Praminda
>
> On Thu, Dec 22, 2016 at 10:18 AM, Rushmin Fernando 
> wrote:
>
>> Verified user management functionalities.
>>
>> [x] Stable - Go ahead and release.
>>
>> On Wed, Dec 21, 2016 at 8:14 PM, Kalpa Welivitigoda 
>> wrote:
>>
>>> Hi folks,
>>>
>>> This is the 2nd release candidate of WSO2 Carbon Kernel 4.4.11.
>>>
>>> This release fixes the following issues
>>> https://wso2.org/jira/issues/?filter=13618
>>>
>>> Please download and test your products with kernel 4.4.11 RC2 and vote.
>>> The vote will be open for 72 hours or as longer as needed.
>>>
>>> Source and binary distribution files:
>>> http://svn.wso2.org/repos/wso2/people/kalpaw/wso2carbon-4.4.
>>> 11/wso2carbon-4.4.11-rc2.zip
>>>
>>> Maven staging repository
>>> https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1065
>>>
>>> The tag to be voted upon :
>>> https://github.com/wso2/carbon-kernel/releases/tag/v4.4.11-rc2
>>>
>>> [ ] Broken - Do not release (explain why)
>>> [ ] Stable  - Go ahead and release
>>>
>>> Thank you
>>> Platform Team
>>>
>>>
>>> --
>>> Best Regards,
>>>
>>> Kalpa Welivitigoda
>>> Senior Software Engineer, WSO2 Inc. http://wso2.com
>>> Email: kal...@wso2.com
>>> Mobile: +94776509215 <+94%2077%20650%209215>
>>>
>>> [image: http://wso2.com/signature] 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Best Regards*
>>
>> *Rushmin Fernando*
>> *Technical Lead*
>>
>> WSO2 Inc.  - Lean . Enterprise . Middleware
>>
>> mobile : +94775615183
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Praminda Jayawardana*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> Mobile : +94 (0) 716 590918 <+94%2071%20659%200918>
>



-- 

*Praminda Jayawardana*
Software Engineer
WSO2 Inc.; http://wso2.com
Mobile : +94 (0) 716 590918
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Wso2 carbon identity server

2016-12-22 Thread Koné Alioune Badara
Hi,

I have a question on the wso2 Identity Server product, when you create user
via the Ask password or The self sign up features,  in which table of the
database are stocked the confirmation's code?

In the Self sign up case, how do you fill in the email which will be used
to send the link to confirm?

Note: I'm using the 5.3.0-beta.

Regards

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


[Dev] [IS] Login error popup customization

2016-12-22 Thread Hanen Ben Rhouma
Hello,

I have a question regarding error handling within the authentication part
of WSO IS: How can I customize the login error popup when login/pwd are
correct but a third attribute is not valid (in my case login time is out of
range of "workingHours" attribute).

Like instead of having a popup with a message : Login failed! Please
recheck the username and password and try again.

I'd customize it according to this situation by saying for example : Login
failed! Please come back between 8h30 and 19h.


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


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.11 RC2

2016-12-22 Thread Kalpa Welivitigoda
Hi all,

Thanks for testing WSO2 Carbon Kernel 4.4.11-RC2. This vote is passed with
3 +1s and 0 -1s.
We will proceed with WSO2 Carbon Kernel 4.4.11 release.

On Thu, Dec 22, 2016 at 9:00 PM, Praminda Jayawardana 
wrote:

> Hi All,
>
> Tested with integration tests and performed basic functionality test on
> APIM. No issues found.
>
> [X] Stable  - Go ahead and release
>
> Thanks,
> Praminda
>
> On Thu, Dec 22, 2016 at 3:20 PM, Praminda Jayawardana 
> wrote:
>
>> Hi All,
>>
>> Please hold the vote as we are still testing with APIM.
>>
>> Thanks,
>> Praminda
>>
>> On Thu, Dec 22, 2016 at 10:18 AM, Rushmin Fernando 
>> wrote:
>>
>>> Verified user management functionalities.
>>>
>>> [x] Stable - Go ahead and release.
>>>
>>> On Wed, Dec 21, 2016 at 8:14 PM, Kalpa Welivitigoda 
>>> wrote:
>>>
 Hi folks,

 This is the 2nd release candidate of WSO2 Carbon Kernel 4.4.11.

 This release fixes the following issues
 https://wso2.org/jira/issues/?filter=13618

 Please download and test your products with kernel 4.4.11 RC2 and vote.
 The vote will be open for 72 hours or as longer as needed.

 Source and binary distribution files:
 http://svn.wso2.org/repos/wso2/people/kalpaw/wso2carbon-4.4.
 11/wso2carbon-4.4.11-rc2.zip

 Maven staging repository
 https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1065

 The tag to be voted upon :
 https://github.com/wso2/carbon-kernel/releases/tag/v4.4.11-rc2

 [ ] Broken - Do not release (explain why)
 [ ] Stable  - Go ahead and release

 Thank you
 Platform Team


 --
 Best Regards,

 Kalpa Welivitigoda
 Senior Software Engineer, WSO2 Inc. http://wso2.com
 Email: kal...@wso2.com
 Mobile: +94776509215 <+94%2077%20650%209215>

 [image: http://wso2.com/signature] 

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


>>>
>>>
>>> --
>>> *Best Regards*
>>>
>>> *Rushmin Fernando*
>>> *Technical Lead*
>>>
>>> WSO2 Inc.  - Lean . Enterprise . Middleware
>>>
>>> mobile : +94775615183
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Praminda Jayawardana*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> Mobile : +94 (0) 716 590918 <+94%2071%20659%200918>
>>
>
>
>
> --
>
> *Praminda Jayawardana*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> Mobile : +94 (0) 716 590918 <+94%2071%20659%200918>
>



-- 
Best Regards,

Kalpa Welivitigoda
Senior Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215

[image: http://wso2.com/signature] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [WSO2 IS] Issue whien trying to customize user form creation

2016-12-22 Thread Vinod Kavinda
Hi,
How did you add the modified jar? You need to add it as a patch. Here is a
guide [1].

[1] - https://docs.wso2.com/display/Carbon420/Applying+a+Patch+to+the+Kernel


Regards,
Vinod

On Wed, Dec 21, 2016 at 10:35 PM, Hanen Ben Rhouma 
wrote:

> Hello,
>
> I am trying to enrich the user creation form within WSO2 IS. For this I
> checked out the source code of org.wso2.carbon.user.mgt.ui-5.6.34 and
> changed it a bit by adding an "organization" attribute within the first
> step in user creation form (modified *add-step1.jsp*,
> *add-finish-ajaxprocessor.jsp* and *UserBean.java*).
>
> After generating the jar and restarting WSO2 IS I noticed that the field
> is there and I can fill it and the creation if successfully finished but
> when I display my user profile the "organization" field is empty and even
> within ApacheDs the information wasn't persisted.
>
> Do I have to modify the server bundle as well
> (org.wso2.carbon.user.mgt_5.6.34). If so could you please guide me where
> the new attribute needs to be declared.
>
>
> Regards,
> Hanen
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware .*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]

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


Re: [Dev] [APIM][C5] Issue while Implementing Global Configuration Model

2016-12-22 Thread Ishara Cooray
Hi Danesh/Niranjan,

Adding following to the component pom copies the docs to jar which resolved
the docs not getting copied in feature.

 

${project.build.directory}/classes/config-docs
config-docs




Thanks for the support.

Thanks & Regards,
Ishara Cooray
Senior Software Engineer
Mobile : +9477 262 9512
WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

On Thu, Dec 22, 2016 at 2:28 PM, Niranjan Karunanandham 
wrote:

> Hi Ishara,
>
> You can include the resources, i.e., the config-docs, into the jar by
> using "" in the maven-bundle-plugin.
>
> Regards,
> Nira
>
> On Thu, Dec 22, 2016 at 12:57 PM, Ishara Cooray  wrote:
>
>> Hi,
>>
>> I am implementing Global Configuration Model for C5 API Manger.
>> There to get the config docs created i have used the below maven plugin
>> in component pom.xml
>>
>> The config bean class/classes has to be specified in configurations as
>>  as shown below.
>> Then configuration document file(.yaml) files
>> w.r.t two bean classes i have specified were generated in
>> target/classes/config-docs directory.
>>
>> 
>> org.wso2.carbon
>> org.wso2.carbon.pl
>> ugins.configuration
>> 
>> 
>> 
>> create-doc
>> 
>> 
>> 
>> org.wso2.carbon.a
>> pimgt.core.APIMConfigurations
>> org.wso2.carbon.a
>> pimgt.core.KeyMgtConfigurations
>> 
>> 
>> compile
>> 
>> 
>> 
>>
>> Then i have put following plugin in feature pom to copy the config-doc
>> files to the feature. When feature builds, it is supposed to copy 
>> configuration
>> document file(.yaml) to config-docs directory.
>>
>> 
>> org.apache.maven.plugins
>> maven-dependency-plugin
>> 
>> 
>> unpack
>> package
>> 
>> unpack
>> 
>> 
>> 
>> 
>> org.wso2.carbon.apimg
>> t
>> org.wso2.carbon.ap
>> imgt.core
>> 7.0.0-SNAPSHOT
>> bundle
>> true
>> ${project.bui
>> ld.directory}/docs
>> config-docs/**
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> But this is not get copied in feature target/docs directory as i have
>> noticed.
>>
>> With the help of Niranjan found out that there is an issue in copying the
>> files.
>>
>> @kernel team,
>> Can we get a fix for this?
>>
>>
>> Thanks & Regards,
>> Ishara Cooray
>> Senior Software Engineer
>> Mobile : +9477 262 9512 <+94%2077%20262%209512>
>> WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>
>
>
> --
>
>
> *Niranjan Karunanandham*
> Associate Technical Lead - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Flat file WSO2

2016-12-22 Thread Malaka Silva
Hi Amit,

You can use some of the out of the box mediators to do the transformation
and use call mediator / file connector to write the file.

[1] https://docs.wso2.com/display/ESB500/Smooks+Mediator
[2] https://docs.wso2.com/display/ESB500/Sample+271:+File+Processing
[3] https://docs.wso2.com/display/ESB500/XSLT+Mediator

On Thu, Dec 22, 2016 at 10:44 AM, Amit Rajvanshi <
amit.rajvan...@eperiumindia.com> wrote:

> Hi Malaka,
>
>
>
> Case is that I am receiving one xml file from SFTP server and based on the
> content I am fetching some other data from http url and then I need to
> create csv flat file based on content received from http url.
>
> So you can take it as file content as part of request then create csv and
> send it to another SFTP using endpoint.
>
>
>
> Best regards,
> *Amit Rajvanshi*
> Eperium Business Solutions (I) Pvt Ltd,
> B-13, Sector 57,
> Noida (U.P.) - 201301
> Phone: +91-120-4737401 <+91%20120%20473%207401>
> Web: www.eperiumindia.com
>
> *Shaping future commerce together*
>
> This message may contain confidential or legally privileged information.
> In the event of any error in transmission, unauthorized recipients are
> requested to contact the sender immediately and not to disclose or make use
> of this information. No warranties or assurance are made or given as to the
> accuracy of the information given or in relation to the safety of this
> e-mail and any attachments. No liability whatsoever is accepted for any
> consequences arising from this e-mail.
>
>
>
> *From:* Malaka Silva [mailto:mal...@wso2.com]
> *Sent:* 22 December 2016 10:24
> *To:* Amit Rajvanshi
> *Cc:* WSO2 Developers' List
> *Subject:* Re: Flat file WSO2
>
>
>
> Hi Amit,
>
>
>
> Do you get the file content as part of request or do you need to generate
> it dynamically?
>
>
>
> Can you explain further your use case please?
>
>
>
> On Wed, Dec 21, 2016 at 10:47 AM, Amit Rajvanshi <
> amit.rajvan...@eperiumindia.com> wrote:
>
> Hi Malaka,
>
>
>
> Do we have some out of the box mechanism to write csv (Flat files) in WSO2.
>
> Any URL or guidelines will be appreciated.
>
>
>
> Or we need to use FileWriter in java   using custom mediator ?
>
>
>
> Best regards,
> *Amit Rajvanshi*
> Eperium Business Solutions (I) Pvt Ltd,
> B-13, Sector 57,
> Noida (U.P.) - 201301
> Phone: +91-120-4737401 <+91%20120%20473%207401>
> Web: www.eperiumindia.com
>
> *Shaping future commerce together*
>
> This message may contain confidential or legally privileged information.
> In the event of any error in transmission, unauthorized recipients are
> requested to contact the sender immediately and not to disclose or make use
> of this information. No warranties or assurance are made or given as to the
> accuracy of the information given or in relation to the safety of this
> e-mail and any attachments. No liability whatsoever is accepted for any
> consequences arising from this e-mail.
>
>
>
>
>
>
>
> --
>
>
>
> Best Regards,
>
>
> Malaka Silva
> Senior Technical Lead
> M: +94 777 219 791 <077%20721%209791>
>
> Tel : 94 11 214 5345
>
> Fax :94 11 2145300 <011%202%20145300>
>
> Skype : malaka.sampath.silva
>
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>
> Blog : http://mrmalakasilva.blogspot.com/
>
>
>
> WSO2, Inc.
>
> lean . enterprise . middleware
> https://wso2.com/signature
>
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> https://store.wso2.com/store/
>
> Don't make Trees rare, we should keep them with care
>



-- 

Best Regards,

Malaka Silva
Senior Technical Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
https://wso2.com/signature
http://www.wso2.com/about/team/malaka-silva/

https://store.wso2.com/store/

Don't make Trees rare, we should keep them with care
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IoTS] what's the complete steps to change the admin password in IoTS alpha version

2016-12-22 Thread 云展智创
Hi all,

Could you tell me what’s the complete steps to change the admin password in 
IoTS alpha version? I had changed almost all the default admin password in 
configuration files but still got lots of following errors (for example, I 
change the password to smart):

[2016-12-23 14:13:55,169]  WARN - CarbonAuthenticationUtil Failed Administrator 
login attempt 'smart[-1234]' at [2016-12-23 14:13:55,169+0800]
[2016-12-23 14:13:55,169]  WARN - AuthenticationHandler Illegal access attempt 
at [2016-12-23 14:13:55,0169] from IP address 127.0.0.1 while trying to 
authenticate access to service OAuth2TokenValidationService
[2016-12-23 14:13:55,170] ERROR - OAuth2BasedMQTTAuthenticator Error on 
connecting with the validation endpoint.
org.apache.axis2.AxisFault: Access Denied. Authentication failed - Invalid 
credentials provided.
at 
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
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)
at 
org.wso2.carbon.identity.oauth2.stub.OAuth2TokenValidationServiceStub.validate(OAuth2TokenValidationServiceStub.java:461)
at 
org.wso2.carbon.andes.authentication.andes.OAuth2BasedMQTTAuthenticator.getAuthenticationInfo(OAuth2BasedMQTTAuthenticator.java:126)
at 
org.wso2.carbon.andes.authentication.andes.OAuth2BasedMQTTAuthenticator.validateToken(OAuth2BasedMQTTAuthenticator.java:82)
at 
org.wso2.carbon.andes.authentication.andes.OAuth2BasedMQTTAuthenticator.checkValid(OAuth2BasedMQTTAuthenticator.java:62)
at 
org.dna.mqtt.moquette.messaging.spi.impl.ProtocolProcessor.processConnect(ProtocolProcessor.java:256)
at 
org.dna.mqtt.moquette.messaging.spi.impl.SimpleMessaging.onEvent(SimpleMessaging.java:160)
at 
org.dna.mqtt.moquette.messaging.spi.impl.SimpleMessaging.onEvent(SimpleMessaging.java:47)
at 
com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
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)
[2016-12-23 14:13:55,170]  INFO - ProtocolProcessor Lost connection with client 
paho6643675267853545
[2016-12-23 14:13:55,171]  WARN - ProtocolProcessor MQTTAuthorizationSubject 
for client ID paho6643675267853545 is not removed since the entry does not exist
[2016-12-23 14:13:55,171]  INFO - ProtocolProcessor Lost connection with client 
paho6643673511277781
[2016-12-23 14:13:55,171]  WARN - ProtocolProcessor MQTTAuthorizationSubject 
for client ID paho6643673511277781 is not removed since the entry does not exist
[2016-12-23 14:13:55,172]  INFO - ProtocolProcessor Lost connection with client 
paho6643673893486011
[2016-12-23 14:13:55,172]  WARN - ProtocolProcessor MQTTAuthorizationSubject 
for client ID paho6643673893486011 is not removed since the entry does not exist
[2016-12-23 14:13:55,172] ERROR - MQTTAdapterListener MQTT Exception occurred 
when starting listener
Bad user name or password (4)
at 
org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:28)
at 
org.eclipse.paho.client.mqttv3.internal.ClientState.notifyReceivedAck(ClientState.java:885)
at 
org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:118)
at java.lang.Thread.run(Thread.java:745)




Thanks!

--
Zhanwen Zhou (Jason), 
+86 13922218435
zhanwen.z...@smartcloudex.com
Guangzhou Smart Cloudex Technology Co., Ltd.
Business: IOT, API

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


[Dev] Windows MDM Nginx reverse proxy configuration guide

2016-12-22 Thread Hasunie Adikari
Hi Mari,

In earlier we have provided Apache2 proxy configuration guide in here IOT
server [1] , but Nginx is more resource friendly than Apache in most cases
and can be used as a web server or a reverse proxy.
Here I have attached complete guidance [2]  to configure Nginx proxy to
enable Windows device management flow with IOT server.

Only per suggestion, We can mention them as following
There are two options to configure a proxy server under Windows server
configurations [1] section.

a) Nginx
- Configuration guide
b) Apache2
- Configuration guide which already exist

or other wise We can completely remove the Apache2 proxy configuration
guide since it seems to be too complex and its not good for first user
impression.

[1] https://docs.wso2.com/display/IoTS100/Windows+Server+Configurations
[2]
https://docs.google.com/a/wso2.com/document/d/1D_N9lpHVP0dKhB4LmwrmL2OYgVSdwydp7TqJvsEEc1g/edit?usp=sharing


Thanks
Hasunie

-- 
*Hasunie Adikari*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
blog http://hasuniea.blogspot.com
Mobile:+94713350904
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Carbon Kernel 4.4.11 Released

2016-12-22 Thread Kalpa Welivitigoda
Hi folks,

WSO2 Platform team is pleased to announce the release of WSO2 Carbon Kernel
4.4.11.

Improvements and bug fixes
https://wso2.org/jira/issues/?filter=13618

Known issues
https://wso2.org/jira/issues/?filter=13620

How to Contribute

- WSO2 Carbon Kernel code is hosted on Github.
- The Git repository is https://github.com/wso2/carbon-kernel/tree/4.4.x
- Carbon Kernel 4.4.11 release tag is
https://github.com/wso2/carbon-kernel/releases/tag/v4.4.11
- Please report issues at Carbon Jira, https://wso2.org/jira/browse/CARBON

Contact Us

WSO2 Carbon developers can be contacted via following mailing lists:

- WSO2 Developers List: dev@wso2.org
- WSO2 Architecture List: architect...@wso2.org

You can download the released distribution from the following location.
http://wso2.com/products/carbon/

Thank you for your interest in WSO2 Carbon Kernel .

Best Regards
Platform Team

-- 
Best Regards,

Kalpa Welivitigoda
Senior Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215

[image: http://wso2.com/signature] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM][C5] Issue while Implementing Global Configuration Model

2016-12-22 Thread Danesh Kuruppu
Hi Ishara,

I created the issue[1] and will fix the issue in the next release.

1. https://github.com/wso2/carbon-kernel/issues/1223

Thanks
Danesh

On Fri, Dec 23, 2016 at 10:39 AM, Ishara Cooray  wrote:

> Hi Danesh/Niranjan,
>
> Adding following to the component pom copies the docs to jar which
> resolved the docs not getting copied in feature.
>
>  
> 
> ${project.build.directory}/classes/config-docs
> config-docs
> 
> 
>
>
> Thanks for the support.
>
> Thanks & Regards,
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512 <+94%2077%20262%209512>
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> On Thu, Dec 22, 2016 at 2:28 PM, Niranjan Karunanandham  > wrote:
>
>> Hi Ishara,
>>
>> You can include the resources, i.e., the config-docs, into the jar by
>> using "" in the maven-bundle-plugin.
>>
>> Regards,
>> Nira
>>
>> On Thu, Dec 22, 2016 at 12:57 PM, Ishara Cooray  wrote:
>>
>>> Hi,
>>>
>>> I am implementing Global Configuration Model for C5 API Manger.
>>> There to get the config docs created i have used the below maven plugin
>>> in component pom.xml
>>>
>>> The config bean class/classes has to be specified in configurations as
>>>  as shown below.
>>> Then configuration document file(.yaml) files
>>> w.r.t two bean classes i have specified were generated in
>>> target/classes/config-docs directory.
>>>
>>> 
>>> org.wso2.carbon
>>> org.wso2.carbon.pl
>>> ugins.configuration
>>> 
>>> 
>>> 
>>> create-doc
>>> 
>>> 
>>> 
>>> org.wso2.carbon.a
>>> pimgt.core.APIMConfigurations
>>> org.wso2.carbon.a
>>> pimgt.core.KeyMgtConfigurations
>>> 
>>> 
>>> compile
>>> 
>>> 
>>> 
>>>
>>> Then i have put following plugin in feature pom to copy the config-doc
>>> files to the feature. When feature builds, it is supposed to copy 
>>> configuration
>>> document file(.yaml) to config-docs directory.
>>>
>>> 
>>> org.apache.maven.plugins
>>> maven-dependency-plugin
>>> 
>>> 
>>> unpack
>>> package
>>> 
>>> unpack
>>> 
>>> 
>>> 
>>> 
>>> org.wso2.carbon.apimg
>>> t
>>> org.wso2.carbon.ap
>>> imgt.core
>>> 7.0.0-SNAPSHOT
>>> bundle
>>> true
>>> ${project.bui
>>> ld.directory}/docs
>>> config-docs/**
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> But this is not get copied in feature target/docs directory as i have
>>> noticed.
>>>
>>> With the help of Niranjan found out that there is an issue in copying
>>> the files.
>>>
>>> @kernel team,
>>> Can we get a fix for this?
>>>
>>>
>>> Thanks & Regards,
>>> Ishara Cooray
>>> Senior Software Engineer
>>> Mobile : +9477 262 9512 <+94%2077%20262%209512>
>>> WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>
>>
>>
>> --
>>
>>
>> *Niranjan Karunanandham*
>> Associate Technical Lead - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>>
>


-- 

*Danesh Kuruppu*
Senior Software Engineer | WSO2

Email: dan...@wso2.com
Mobile: +94 (77) 1690552
Web: WSO2 Inc 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Carbon Feature Plugin 3.0.0 Released

2016-12-22 Thread Niranjan Karunanandham
*WSO2 Carbon Feature Plugin 3.0.0 Released*

The Carbon team is pleased to announce the release of Carbon Feature Plugin
3.0.0. It is now available to download from here
.

*Improvements and Bug fixes*
https://wso2.org/jira/issues/?filter=13622

*Known Issues*
https://github.com/wso2/carbon-maven-plugins/issues

*How to Contribute*

   - WSO2 Carbon Feature Plugin code is hosted in Github.
   - The Git repository is https://github.com/wso2/carbon-maven-plugins
   - Carbon Feature Plugin 3.0.0 release tag is
   https://github.com/wso2/carbon-maven-plugins/releases/tag/v3.0.0
   - Please report issues at Carbon Feature Plugin Jira,
   https://github.com/wso2/carbon-maven-plugins/issues


*Contact Us*

WSO2 Carbon developers can be contacted via following mailing lists:

   - WSO2 Developers List: dev@wso2.org
   - WSO2 Architecture List: architect...@wso2.org


Best Regards
Carbon Team

-- 


*Niranjan Karunanandham*
Associate Technical Lead - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev