[Dev] [APIM] Use Nimbus for JWT token generation

2015-01-16 Thread Udara Liyanage
Hi,

org.wso2.carbon.apimgt.impl has manually build the JWT token. However I
guess it is better to use Nimbuz standard library to easily generate the
JWT token like [1]. Additionally there is an Nimbuz  orbit bundle created
now.

[1]
https://github.com/wso2-dev/carbon-identity/blob/master/components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/openidconnect/DefaultIDTokenBuilder.java

-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Use Nimbus for JWT token generation

2015-01-16 Thread Gayan Gunawardana
Hi,

Also need to use Nimbuz for [1] since this is the default JWT builder in
identity.xml

TokenGeneratorImplClassorg.wso2.carbon.identity.oauth2.authcontext.JWTTokenGenerator/TokenGeneratorImplClass

[1]
https://github.com/wso2-dev/carbon-identity/blob/master/components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/authcontext/JWTTokenGenerator.java

On Fri, Jan 16, 2015 at 5:36 PM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 org.wso2.carbon.apimgt.impl has manually build the JWT token. However I
 guess it is better to use Nimbuz standard library to easily generate the
 JWT token like [1]. Additionally there is an Nimbuz  orbit bundle created
 now.

 [1]
 https://github.com/wso2-dev/carbon-identity/blob/master/components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/openidconnect/DefaultIDTokenBuilder.java

 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

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




-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Use Nimbus for JWT token generation

2015-01-16 Thread Danushka Fernando
May be we need to update nimbus version since there is a new version
released.
On Jan 17, 2015 3:14 AM, Gayan Gunawardana ga...@wso2.com wrote:

 Hi,

 Also need to use Nimbuz for [1] since this is the default JWT builder in
 identity.xml

 TokenGeneratorImplClassorg.wso2.carbon.identity.oauth2.authcontext.JWTTokenGenerator/TokenGeneratorImplClass

 [1]
 https://github.com/wso2-dev/carbon-identity/blob/master/components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth2/authcontext/JWTTokenGenerator.java

 On Fri, Jan 16, 2015 at 5:36 PM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 org.wso2.carbon.apimgt.impl has manually build the JWT token. However I
 guess it is better to use Nimbuz standard library to easily generate the
 JWT token like [1]. Additionally there is an Nimbuz  orbit bundle created
 now.

 [1]
 https://github.com/wso2-dev/carbon-identity/blob/master/components/identity/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/openidconnect/DefaultIDTokenBuilder.java

 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

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




 --
 Gayan Gunawardana
 Software Engineer; WSO2 Inc.; http://wso2.com/
 Email: ga...@wso2.com
 Mobile: +94 (71) 8020933

 ___
 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