Re: [Dev] wso 5.4.0-update-4

2018-02-22 Thread Chiran Wijesekara
This is a known issue which persists in the version you use. However, it is
fixed in the next release.
+ adding Omindu and Darshana

On Wed, Feb 21, 2018 at 9:49 PM, Deepak Singla <deepak.sin...@edifecs.com>
wrote:

> Gentle Reminder
>
>
>
> *From:* Deepak Singla
> *Sent:* Tuesday, February 20, 2018 11:17 AM
> *To:* 'Chiran Wijesekara' <chir...@wso2.com>
> *Cc:* WSO2 Developers' List <dev@wso2.org>
> *Subject:* wso 5.4.0-update-4
>
>
>
> Hi Chiran
>
>
>
> I have installed Wso2_5.4.0-update-4 IS on window environment with
> SQLServer-2014. I am getting below error in carbon logs after some time:
>
> TID: [] [] [2018-02-12 07:23:40,553] ERROR {org.wso2.carbon.identity.
> application.authentication.framework.store.SessionDataStore} -  Error
> while removing session data from the database for nano time
> 1517210607139156100 com.microsoft.sqlserver.jdbc.SQLServerException:
> Incorrect syntax near '50000'.
>
>
>
> Any suggestion?
>
>
>
> Thanks
>
> Deepak
>
>
>
>
>



-- 
*Chiran Wijesekara*


*Software Engineering Intern | WSO2*Email: chir...@wso2.com
Mobile: +94712990173web: www.wso2.com

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


Re: [Dev] Query Regarding the JIRA BUG- IDEBTITY-4250

2018-02-20 Thread Chiran Wijesekara
localhost:9443/oauth2/userinfo?schema=openid
>>
>> I have follow this link to register app https://docs.wso2.com/display/
>> IS530/Basic+Client+Profile+with+Playground
>> <https://docs.wso2.com/display/IS530/Basic+Client+Profile+with+Playground> 
>> and
>> try to access the user information through the curl command using a valid
>> access token
>>
>>
>>
>> Issue: Only 'subject' field is returned when userinfo is requested by
>> curl command using a valid access token
>>
>>
>>
>> e.g  curl -k -H "Authorization: Bearer YOUR_ACCESS_TOKEN" https://loc
>> alhost:9443/oauth2/userinfo?schema=openid
>>
>>
>>
>> The following response is displayed:
>>
>> {"sub":"admin”}
>>
>>
>>
>> But Expected response should be displayed as below
>>
>> {
>>
>>"sub":"admin",
>>
>>"email":"ad...@wso2.com",
>>
>>"website":"https://wso2.com; <https://wso2.com/>,
>>
>>"name":"admin",
>>
>>"family_name":"admin",
>>
>>"preferred_username":"admin",
>>
>>"given_name":"admin",
>>
>>"profile":"https://wso2.com; <https://wso2.com/>,
>>
>>"country":"Sri Lanka"
>>
>> }
>>
>>
>>
>> Thanks & Regards
>>
>> Monika Sharma
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>> Regards,
>>
>>
>>
>> *Darshana Gunawardana*
>>
>> Technical Lead
>>
>> WSO2 Inc.; http://wso2.com
>> * E-mail: **darsh...@wso2.com* <darsh...@wso2.com>
>> * Mobile: +94718566859 <+94%2071%20856%206859>*
>> Lean . Enterprise . Middleware
>>
>>
>>
>> --
>> Regards,
>>
>>
>> *Darshana Gunawardana*Technical Lead
>> WSO2 Inc.; http://wso2.com
>>
>> *E-mail: darsh...@wso2.com <darsh...@wso2.com>*
>> *Mobile: +94718566859 <+94%2071%20856%206859>*Lean . Enterprise .
>> Middleware
>>
>
>
>
> --
> Sathya Bandara
> Software Engineer
> WSO2 Inc. http://wso2.com
> Mobile: (+94) 715 360 421 <+94%2071%20411%205032>
>
> <+94%2071%20411%205032>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Chiran Wijesekara*


*Software Engineering Intern | WSO2*Email: chir...@wso2.com
Mobile: +94712990173web: www.wso2.com

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


Re: [Dev] wso2 http access logs customization

2018-02-06 Thread Chiran Wijesekara
Hi,
What is the error you get once you try to run the wso2server.bat file in
your windows environment?. Would be glad if you can paste the error log.
Thanks

On Wed, Feb 7, 2018 at 10:52 AM, Deepak Singla <deepak.sin...@edifecs.com>
wrote:

> Any update please.
>
>
>
>
>
> *From:* Prakhash Sivakumar [mailto:prakh...@wso2.com <prakh...@wso2.com>]
> *Sent:* Tuesday, January 16, 2018 12:58 PM
> *To:* Deepak Singla <deepak.sin...@edifecs.com>
> *Cc:* WSO2 Developers' List <dev@wso2.org>
> *Subject:* Re: wso2 http access logs customization
>
>
>
> Hi Deepak,
>
>
>
> Moving this discussion to the DEV as this is not about a security issue.
>
>
>
> Thanks,
>
> Prakhash
>
>
>
> On Tue, Jan 16, 2018 at 12:54 PM, Deepak Singla <deepak.sin...@edifecs.com>
> wrote:
>
> Hello Wso2 Team
>
>
>
> I configured wso2 5.4.0 Identity Service on window environment. Here I am
> trying to customizing the maximum file size and Maximun back up index of
> http_access*.log, then I followed this link
> <https://stackoverflow.com/questions/8342336/how-to-set-maximum-number-of-rolls-and-maximum-log-size-for-tomcat>
> to customize http_access logs.
>
>
>
> I also found this file *logging-bridge.properties* under directory
> “wso2\repository\conf\etc\logging-bridge.properties”. I applied above
> changes mentioned in link in logging-bridge.properties file. Like
>
> # Define the FileHandler
>
> handlers= java.util.logging.FileHandler
>
>
>
> # Configure the FileHandler
>
> java.util.logging.FileHandler.pattern = %h/java%u.log
>
> java.util.logging.FileHandler.limit = 1024000
>
> java.util.logging.FileHandler.count = 3
>
> java.util.logging.FileHandler.formatter =  java.util.logging.SimpleFormat
> ter
>
> java.util.logging.FileHandler.append=true
>
>
>
> Then I restarted the wso2 server, but it is not working for me.
>
>
>
> Kindly provide me your inputs to resolve this issue.
>
>
>
> Regards
>
> Deepak
>
>
>
>
>
> --
>
> Prakhash Sivakumar
>
> Software Engineer | WSO2 Inc
>
> Platform Security Team
>
> Mobile : +94771510080 <+94%2077%20151%200080>
>
> Blog : https://medium.com/@PrakhashS
>



-- 
*Chiran Wijesekara*


*Software Engineering Intern | WSO2*Email: chir...@wso2.com
Mobile: +94712990173web: www.wso2.com

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


Re: [Dev] Bug # IDENTITY-7317

2018-02-06 Thread Chiran Wijesekara
Hi,
AFAIK, the current implementation of SAML *Single Logout* in wso2 Identity
Server is only done for back channel mode( i.e. without browser involvement
and no redirections). Currently IS *does not support* redirect based front
channel mechanism.
In the back-channel mode, at the Identity Server side, it checks just for
200 OK from session participating other SPs.
Thanks

On Tue, Feb 6, 2018 at 2:41 PM, Ruwan Abeykoon <ruw...@wso2.com> wrote:

> Hi Deepak/Pooja,
> Thanks for the detailed report on IDENTITY-7317. We will certainly go
> through this and provide you the update ASAP.
>
> Cheers,
> Ruwan
>
> On Tue, Feb 6, 2018 at 2:09 PM, Pooja Gupta <pooja.gu...@edifecs.com>
> wrote:
>
>> + Deepak
>>
>>
>>
>> *From:* Pooja Gupta
>> *Sent:* 06 February 2018 14:09
>> *To:* 'dev@wso2.org' <dev@wso2.org>; 'ruw...@wso2.com' <ruw...@wso2.com>
>> *Subject:* Bug # IDENTITY-7317
>>
>>
>>
>> Hello,
>>
>>
>>
>> I have raised a defect on WSO2 IDP. IDP not handling redirect logout
>> response sent from SP to IDP when SP receives unsolicited logout request
>> from IDP.
>>
>>
>>
>> Appreciate if you could look into the issue. We can talk more for more
>> details.
>>
>>
>>
>> https://wso2.org/jira/browse/IDENTITY-7317
>>
>>
>>
>> Thanks
>>
>> Pooja
>>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Chiran Wijesekara*


*Software Engineering Intern | WSO2*Email: chir...@wso2.com
Mobile: +94712990173web: www.wso2.com

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


Re: [Dev] [IS][.NET] Unable to perform SAML SLO after receiving Logout Request from wso2 IS

2018-01-24 Thread Chiran Wijesekara
Hi,

@Omindu, According to the current implementation of IS SAML SLO, it just
requires a 200 OK response from the session participating SP's.

However, as discussed offline (with Dulanja and Omindu), need to have some
kind of polling mechanism to achieve single logout from the client side.

I'm currently Investigating on SignalR to achieve that $Subject requirement
along with Javascript.
Thanks

On Wed, Jan 24, 2018 at 1:44 PM, Omindu Rathnaweera <omi...@wso2.com> wrote:

> Hi Chiran,
>
> This is the backchannel logout request initiated by IS to SP2 you are
> talking about, correct? If so once SP2 receives the logout request from IS,
> it should respond back to with a successful SAML logout response after
> removing SP2 side user session without doing a redirection. Please refer
> [1] which has a detailed explanation on how SAML SLO works.
>
> [1] - http://xacmlinfo.org/2013/06/28/how-saml2-single-logout-works/
>
> Regards,
> Omindu.
>
>
> On Wed, Jan 24, 2018 at 10:29 AM, Chiran Wijesekara <chir...@wso2.com>
> wrote:
>
>> Hi all,
>> I have set up two service providers, suppose *SP1* and *SP2*. when *SP1*
>> sends the logout request to IS SP2's following code block gets hit
>> successfully( as expected).
>>
>> [image: Inline image 1]
>>
>> But the *Response.Redirect("Some/URL")  *does not work there.
>>
>> Any guidance on this will be highly appreciated.
>>
>> Thanks!
>>
>> --
>> *Chiran Wijesekara*
>>
>>
>> *Software Engineering Intern | WSO2*Email: chir...@wso2.com
>> Mobile: +94712990173web: www.wso2.com
>>
>> [image: https://wso2.com/signature] <https://wso2.com/signature>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Omindu Rathnaweera
> Senior Software Engineer, WSO2 Inc.
> Mobile: +94 771 197 211 <+94%2077%20119%207211>
>



-- 
*Chiran Wijesekara*


*Software Engineering Intern | WSO2*Email: chir...@wso2.com
Mobile: +94712990173web: www.wso2.com

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


[Dev] [IS][.NET] Unable to perform SAML SLO after receiving Logout Request from wso2 IS

2018-01-23 Thread Chiran Wijesekara
Hi all,
I have set up two service providers, suppose *SP1* and *SP2*. when *SP1*
sends the logout request to IS SP2's following code block gets hit
successfully( as expected).

[image: Inline image 1]

But the *Response.Redirect("Some/URL")  *does not work there.

Any guidance on this will be highly appreciated.

Thanks!

-- 
*Chiran Wijesekara*


*Software Engineering Intern | WSO2*Email: chir...@wso2.com
Mobile: +94712990173web: www.wso2.com

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


Re: [Dev] [IS] Implemeting SAML SSO Agent in .NET

2018-01-16 Thread Chiran Wijesekara
[UPDATED]

Hi all,
I have updated the repo with by removing the SSOAgentAppListener class and
having SSO properties defined in an XML block inside web.config and wiring
it. Thus, there isn't any .settings file in the web application's
directory.
All the SSO related settings will have to be defined in the web.config
file(under appSettings section). Those properties will be initialized in
the init() method of the FilteringHTTPModule  (note: FilteringHTTPModule is
extended from IHttpModule )

Thanks!

On Wed, Jan 17, 2018 at 10:24 AM, Chiran Wijesekara <chir...@wso2.com>
wrote:

> [UPDATED]
>
> Hi all,
> I have updated the repo with by removing the SSOAgentAppListener class and
> having SSO properties defined in an XML block inside web.config and
> wiring it. Thus, there isn't any .settings file in the web application's
> directory.
> All the SSO related settings will have to be defined in the web.config
> file(under appSettings section). Those properties will be initialized in
> the init() method of the FilteringHTTPModule  (note: FilteringHTTPModule is
> extended from IHttpModule )
>
> Thanks!
>
> On Sat, Jan 13, 2018 at 7:09 AM, Chiran Wijesekara <chir...@wso2.com>
> wrote:
>
>> Hi TharinduE,
>> Thanks for your valuable comments. I will update the Readme file too.
>> Thanks.
>>
>> On Fri, Jan 12, 2018 at 8:32 PM, Tharindu Edirisinghe <tharin...@wso2.com
>> > wrote:
>>
>>> Hi Chiran,
>>>
>>> If the repo size gets increased significantly due to the dependent DLLs,
>>> you can just add a readme to the repo pointing to all the dependencies and
>>> download links. This way those who want to test this out can download the
>>> dependencies manually, if those are missing in the environment.
>>>
>>> Thanks,
>>> TharinduE
>>>
>>> On Thu, Jan 11, 2018 at 10:32 PM, Chiran Wijesekara <chir...@wso2.com>
>>> wrote:
>>>
>>>> Hi Tharindu,
>>>> Thanks for the feedback. However, the reason was I omitted .dlls using
>>>> .gitinore to keep the repo from getting too large in size.If it is better
>>>> to have those .dlls in the repo, then I will add those to the next commit.
>>>> Thanks
>>>>
>>>> On Fri, Jan 12, 2018 at 2:30 AM, Tharindu Edirisinghe <
>>>> tharin...@wso2.com> wrote:
>>>>
>>>>> Hi Chiran,
>>>>>
>>>>> It seems you hare using some external DLLs in the project *(see
>>>>> references.png)*, which are not packaged to the project. So when
>>>>> someone runs the solution, these DLLs might not be present in that
>>>>> environment and should be imported manually.
>>>>>
>>>>> So, IMO it's better to use "Copy Local" option *(see
>>>>> local_references.png)* for such references, so that the DLLs would be
>>>>> included in the project itself.
>>>>>
>>>>> This way, anybody would be able to simply run the project in Visual
>>>>> Studio and get it to working.
>>>>>
>>>>> Thanks,
>>>>> TharinduE
>>>>>
>>>>> On Thu, Jan 11, 2018 at 7:36 AM, Chiran Wijesekara <chir...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I am in the process of developing the $subject. This agent should be
>>>>>> pluggable to any ASP.NET web application. Repo is available at [1]
>>>>>> it has the sample and also the agent. Currently, I have developed it
>>>>>> with Http module(resides inside agent) and a listener(resides inside
>>>>>> agent) class. Furthermore, I am calling SSOAgentAppListener class
>>>>>> from Global.asax in the ASP.NET web application.
>>>>>>
>>>>>> However, I am also thinking about removing the SSOAgentAppListener
>>>>>> class by having SSO properties in an XML block inside web.config and
>>>>>> wiring it. Would be glad to have any recommendations on this.
>>>>>>
>>>>>> [1] https://github.com/chirankavinda123/saml-sso-agent-DOT-NET
>>>>>>
>>>>>> Thank you.
>>>>>>
>>>>>> --
>>>>>> *Chiran Wijesekara*
>>>>>>
>>>>>>
>>>>>> *Software Engineering Intern | WSO2*Email: chir...@wso2.com
>>>>>> Mobile: +94712990173web: www.wso2.com
>>>>>>
>>>>>

[Dev] [IS] Implemeting SAML SSO Agent in .NET

2018-01-11 Thread Chiran Wijesekara
Hi all,

I am in the process of developing the $subject. This agent should be
pluggable to any ASP.NET web application. Repo is available at [1] it has
the sample and also the agent. Currently, I have developed it with Http
module(resides inside agent) and a listener(resides inside agent) class.
Furthermore, I am calling SSOAgentAppListener class from Global.asax in the
ASP.NET web application.

However, I am also thinking about removing the SSOAgentAppListener class by
having SSO properties in an XML block inside web.config and wiring it.
Would be glad to have any recommendations on this.

[1] https://github.com/chirankavinda123/saml-sso-agent-DOT-NET

Thank you.

-- 
*Chiran Wijesekara*


*Software Engineering Intern | WSO2*Email: chir...@wso2.com
Mobile: +94712990173web: www.wso2.com

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