Re: [Dev] OAuth issues

2015-05-18 Thread Harshan Liyanage
Hi, We are copying the identity.xml from Identity 4.4.0 features when building the product-mdm. So could someone from IS team add the latest identity.xml to Identity 4.4.0 features and commit it? Thanks, Lakshitha Harshan Software Engineer Mobile: *+94724423048* Email: hars...@wso2.com Blog :

Re: [Dev] OAuth issues

2015-05-18 Thread Prabath Abeysekera
As it appears, some version of identity.xml that's kept within product-mdm source repo is getting copied over the to the MDM distribution during build time. If the default version of the above file has it all configured, please get rid of the one that's maintained in product-mdm repo and let the

Re: [Dev] OAuth issues

2015-05-18 Thread Geeth Munasinghe
Hi Prabath, I will look in to that. Seems there are few more xml files to be removed. Thanks Geeth *G. K. S. Munasinghe* *Senior Software Engineer,* *WSO2, Inc. http://wso2.com http://wso2.com/ * *lean.enterprise.middleware.* email: ge...@wso2.com phone:(+94) 777911226 On Mon, May 18, 2015

Re: [Dev] OAuth issues

2015-05-18 Thread Thanuja Jayasinghe
Hi Harshan, Copy and replace following element in identity.xml. OAuth ... ClientAuthHandlers ClientAuthHandler Class=org.wso2.carbon.identity.oauth2.token.handlers.clientauth.BasicAuthClientAuthHandler Property

Re: [Dev] OAuth issues

2015-05-18 Thread Prabath Abeysekera
@Geeth, Yeah sure. Thanks for the help, Thanuja! On Mon, May 18, 2015 at 2:09 PM, Geeth Munasinghe ge...@wso2.com wrote: Hi Prabath, I will look in to that. Seems there are few more xml files to be removed. Thanks Geeth *G. K. S. Munasinghe* *Senior Software Engineer,* *WSO2, Inc.

Re: [Dev] OAuth issues

2015-05-18 Thread Sanjeewa Malalgoda
On Mon, May 18, 2015 at 12:18 PM, Thanuja Jayasinghe than...@wso2.com wrote: Hi Harshan, Copy and replace following element in identity.xml. OAuth ... ClientAuthHandlers ClientAuthHandler

Re: [Dev] OAuth issues

2015-05-17 Thread Harshan Liyanage
Yes. Lakshitha Harshan Software Engineer Mobile: *+94724423048* Email: hars...@wso2.com Blog : http://harshanliyanage.blogspot.com/ *WSO2, Inc. :** wso2.com http://wso2.com/* lean.enterprise.middleware. On Mon, May 18, 2015 at 10:11 AM, Sumedha Rubasinghe sume...@wso2.com wrote: Is your client

Re: [Dev] OAuth issues

2015-05-17 Thread Sumedha Rubasinghe
Is your client credentials constructed like following? Base64encode (consumer Key:consumer secret)? On Mon, May 18, 2015 at 9:49 AM, Harshan Liyanage hars...@wso2.com wrote: Hi Sumedha, We tried it also. But it didn't work and giving the same issue. Thanks, Lakshitha Harshan Software

Re: [Dev] OAuth issues

2015-05-17 Thread Sumedha Rubasinghe
Try this: curl --user ZCY3QCNjK9ujtKXoMzSjltPdVFga:RQvI0o1z8NwdYS9I2y35pwptMp4a -k -d grant_type=passwordusername=adminpassword=adminscope=openid -H Content-Type: application/x-www-form-urlencoded https://localhost:9443/oauth2/token On Mon, May 18, 2015 at 10:12 AM, Harshan Liyanage

Re: [Dev] OAuth issues

2015-05-17 Thread Sumedha Rubasinghe
Try sending without scope=openid. On Sat, May 16, 2015 at 6:22 AM, Prabath Abeysekera praba...@wso2.com wrote: IS Team, Please review the issues reported below and see if you could help us resolving them. Appreciate if we can get some feedback on this some time soon. Cheers, Prabath On

Re: [Dev] OAuth issues

2015-05-17 Thread Harshan Liyanage
Hi Sumedha, We tried it also. But it didn't work and giving the same issue. Thanks, Lakshitha Harshan Software Engineer Mobile: *+94724423048* Email: hars...@wso2.com Blog : http://harshanliyanage.blogspot.com/ *WSO2, Inc. :** wso2.com http://wso2.com/* lean.enterprise.middleware. On Mon, May

Re: [Dev] OAuth issues

2015-05-17 Thread Ishara Karunarathna
Hi Harshan, This works fine for me too, Could you please enable debug on org.wso2.carbon.identity.oauth2.token and try. Thanks, Ishara On Mon, May 18, 2015 at 10:24 AM, Sumedha Rubasinghe sume...@wso2.com wrote: Try this: curl --user

Re: [Dev] OAuth issues

2015-05-17 Thread Harshan Liyanage
HI all, @Sumedha : That curl command also did not work. It's giving the same response. @Ishara : Please find the debug logs below. [2015-05-18 10:54:20,658] DEBUG {org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint} - Received a request : /oauth2/token [2015-05-18 10:54:20,659]

Re: [Dev] OAuth issues

2015-05-17 Thread Pushpalanka Jayawardhana
Pushpalanka. -- Pushpalanka Jayawardhana, B.Sc.Eng.(Hons). Software Engineer, WSO2 Lanka (pvt) Ltd; wso2.com/ Mobile: +94779716248 Blog: pushpalankajaya.blogspot.com/ | LinkedIn: lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka On Mon, May 18, 2015 at 10:28 AM, Ishara Karunarathna