[Dev] [IS] Is there any osgi service to generate the OAuth token

2015-02-18 Thread Gihan Anuruddha
Hi All,

$subject apart from oauth2/token REST endpoint?

Regards,
Gihan

-- 
W.G. Gihan Anuruddha
Senior Software Engineer | WSO2, Inc.
M: +94772272595
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Is there any osgi service to generate the OAuth token

2015-02-18 Thread Gihan Anuruddha
Thanks Pushpalanka. Can you please tell me what are the mandatory setter
methods that need to fill in the OAuth2AccessTokenReqDTO class?

Regards,
Gihan

On Thu, Feb 19, 2015 at 11:47 AM, Pushpalanka Jayawardhana la...@wso2.com
wrote:

 Hi Gihan,

 org.wso2.carbon.identity.oauth2.OAuth2Service has a method named
 ' public OAuth2AccessTokenRespDTO issueAccessToken(OAuth2AccessTokenReqDTO
 tokenReqDTO)'.

 Hope you can use it.

 Thanks,
 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 Thu, Feb 19, 2015 at 11:40 AM, Gihan Anuruddha gi...@wso2.com wrote:

 Hi All,

 $subject apart from oauth2/token REST endpoint?

 Regards,
 Gihan

 --
 W.G. Gihan Anuruddha
 Senior Software Engineer | WSO2, Inc.
 M: +94772272595





-- 
W.G. Gihan Anuruddha
Senior Software Engineer | WSO2, Inc.
M: +94772272595
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Is there any osgi service to generate the OAuth token

2015-02-18 Thread Pushpalanka Jayawardhana
Hi Gihan,

org.wso2.carbon.identity.oauth2.OAuth2Service has a method named
' public OAuth2AccessTokenRespDTO issueAccessToken(OAuth2AccessTokenReqDTO
tokenReqDTO)'.

Hope you can use it.

Thanks,
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 Thu, Feb 19, 2015 at 11:40 AM, Gihan Anuruddha gi...@wso2.com wrote:

 Hi All,

 $subject apart from oauth2/token REST endpoint?

 Regards,
 Gihan

 --
 W.G. Gihan Anuruddha
 Senior Software Engineer | WSO2, Inc.
 M: +94772272595

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


Re: [Dev] [IS] Is there any osgi service to generate the OAuth token

2015-02-18 Thread Pushpalanka Jayawardhana
Hi Gihan,

It depends on the grant type we use.
Basically, client ID should be there. You can get idea about the required
parameters from the cURL commands mentioned at [1] for each grant type.

[1] - https://docs.wso2.com/display/AM180/Token+API

Thanks,
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 Thu, Feb 19, 2015 at 12:02 PM, Gihan Anuruddha gi...@wso2.com wrote:

 Thanks Pushpalanka. Can you please tell me what are the mandatory setter
 methods that need to fill in the OAuth2AccessTokenReqDTO class?

 Regards,
 Gihan

 On Thu, Feb 19, 2015 at 11:47 AM, Pushpalanka Jayawardhana la...@wso2.com
  wrote:

 Hi Gihan,

 org.wso2.carbon.identity.oauth2.OAuth2Service has a method named
 ' public OAuth2AccessTokenRespDTO
 issueAccessToken(OAuth2AccessTokenReqDTO tokenReqDTO)'.

 Hope you can use it.

 Thanks,
 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 Thu, Feb 19, 2015 at 11:40 AM, Gihan Anuruddha gi...@wso2.com wrote:

 Hi All,

 $subject apart from oauth2/token REST endpoint?

 Regards,
 Gihan

 --
 W.G. Gihan Anuruddha
 Senior Software Engineer | WSO2, Inc.
 M: +94772272595





 --
 W.G. Gihan Anuruddha
 Senior Software Engineer | WSO2, Inc.
 M: +94772272595

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


Re: [Dev] [IS] Is there any osgi service to generate the OAuth token

2015-02-18 Thread Supun Malinga
Hi,

I think oauth2.war from IS(shipped with AM as well) already accesses the
oauth osgi service and generate tokens/ etc. You can have a look..

thanks,

On Thu, Feb 19, 2015 at 12:27 PM, Gihan Anuruddha gi...@wso2.com wrote:

 Thanks Pushpalanka.

 On Thu, Feb 19, 2015 at 12:22 PM, Pushpalanka Jayawardhana la...@wso2.com
  wrote:

 Hi Gihan,

 It depends on the grant type we use.
 Basically, client ID should be there. You can get idea about the required
 parameters from the cURL commands mentioned at [1] for each grant type.

 [1] - https://docs.wso2.com/display/AM180/Token+API

 Thanks,
 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 Thu, Feb 19, 2015 at 12:02 PM, Gihan Anuruddha gi...@wso2.com wrote:

 Thanks Pushpalanka. Can you please tell me what are the mandatory setter
 methods that need to fill in the OAuth2AccessTokenReqDTO class?

 Regards,
 Gihan

 On Thu, Feb 19, 2015 at 11:47 AM, Pushpalanka Jayawardhana 
 la...@wso2.com wrote:

 Hi Gihan,

 org.wso2.carbon.identity.oauth2.OAuth2Service has a method named
 ' public OAuth2AccessTokenRespDTO
 issueAccessToken(OAuth2AccessTokenReqDTO tokenReqDTO)'.

 Hope you can use it.

 Thanks,
 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 Thu, Feb 19, 2015 at 11:40 AM, Gihan Anuruddha gi...@wso2.com
 wrote:

 Hi All,

 $subject apart from oauth2/token REST endpoint?

 Regards,
 Gihan

 --
 W.G. Gihan Anuruddha
 Senior Software Engineer | WSO2, Inc.
 M: +94772272595





 --
 W.G. Gihan Anuruddha
 Senior Software Engineer | WSO2, Inc.
 M: +94772272595





 --
 W.G. Gihan Anuruddha
 Senior Software Engineer | WSO2, Inc.
 M: +94772272595

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




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Is there any osgi service to generate the OAuth token

2015-02-18 Thread Gihan Anuruddha
Thanks Pushpalanka.

On Thu, Feb 19, 2015 at 12:22 PM, Pushpalanka Jayawardhana la...@wso2.com
wrote:

 Hi Gihan,

 It depends on the grant type we use.
 Basically, client ID should be there. You can get idea about the required
 parameters from the cURL commands mentioned at [1] for each grant type.

 [1] - https://docs.wso2.com/display/AM180/Token+API

 Thanks,
 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 Thu, Feb 19, 2015 at 12:02 PM, Gihan Anuruddha gi...@wso2.com wrote:

 Thanks Pushpalanka. Can you please tell me what are the mandatory setter
 methods that need to fill in the OAuth2AccessTokenReqDTO class?

 Regards,
 Gihan

 On Thu, Feb 19, 2015 at 11:47 AM, Pushpalanka Jayawardhana 
 la...@wso2.com wrote:

 Hi Gihan,

 org.wso2.carbon.identity.oauth2.OAuth2Service has a method named
 ' public OAuth2AccessTokenRespDTO
 issueAccessToken(OAuth2AccessTokenReqDTO tokenReqDTO)'.

 Hope you can use it.

 Thanks,
 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 Thu, Feb 19, 2015 at 11:40 AM, Gihan Anuruddha gi...@wso2.com
 wrote:

 Hi All,

 $subject apart from oauth2/token REST endpoint?

 Regards,
 Gihan

 --
 W.G. Gihan Anuruddha
 Senior Software Engineer | WSO2, Inc.
 M: +94772272595





 --
 W.G. Gihan Anuruddha
 Senior Software Engineer | WSO2, Inc.
 M: +94772272595





-- 
W.G. Gihan Anuruddha
Senior Software Engineer | WSO2, Inc.
M: +94772272595
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev