Re: [Dev] Giving the different Access tokens in API manager 2.5.0 when try to generate new tokens before expired the access token.

2018-07-03 Thread Prasanna Dangalla
Hi All, Please find the fix for this.[1] [1] - https://github.com/wso2/carbon-apimgt/pull/5529 Thanks Prasanna On Wed, Jul 4, 2018 at 9:45 AM Prasanna Dangalla wrote: > Hi Rajith, > On Wed, Jul 4, 2018 at 4:56 AM Rajith Roshan wrote: > >> I guess we have to call the getIdentityOauthTokenIssu

Re: [Dev] Giving the different Access tokens in API manager 2.5.0 when try to generate new tokens before expired the access token.

2018-07-03 Thread Prasanna Dangalla
Hi Rajith, On Wed, Jul 4, 2018 at 4:56 AM Rajith Roshan wrote: > I guess we have to call the getIdentityOauthTokenIssuer method in line > [1], instead of " getOAuthTokenGenerator" method. > I'll check this. Thanks Prasanna > > [1] - > https://github.com/wso2/carbon-apimgt/blob/6.x/components/api

Re: [Dev] Giving the different Access tokens in API manager 2.5.0 when try to generate new tokens before expired the access token.

2018-07-03 Thread Isuru Haththotuwa
Ideally there should be separate entries for JWT and OAuth2 token issuers in the identity.xml configuration. On Wed, Jul 4, 2018 at 4:56 AM, Rajith Roshan wrote: > I guess we have to call the getIdentityOauthTokenIssuer method in line > [1], instead of " getOAuthTokenGenerator" method. > > [1] -

Re: [Dev] Giving the different Access tokens in API manager 2.5.0 when try to generate new tokens before expired the access token.

2018-07-03 Thread Rajith Roshan
I guess we have to call the getIdentityOauthTokenIssuer method in line [1], instead of " getOAuthTokenGenerator" method. [1] - https://github.com/wso2/carbon-apimgt/blob/6.x/components/apimgt/org.wso2.carbon.apimgt.keymgt/src/main/java/org/wso2/carbon/apimgt/keymgt/issuers/APIMTokenIssuer.java#L11

Re: [Dev] Giving the different Access tokens in API manager 2.5.0 when try to generate new tokens before expired the access token.

2018-07-03 Thread Nuwan Dias
[Adding Prasanna]. I don't think this behavior is intentional. Therefore we will have to fix this. On Tue, Jul 3, 2018 at 5:44 PM Omindu Rathnaweera wrote: > Hi Fazlan/Nalaka, > > This behavior is not there in the IS 5.6.0 release candidate. I did a > small test by reverting the APIMTokenIssuer

Re: [Dev] Giving the different Access tokens in API manager 2.5.0 when try to generate new tokens before expired the access token.

2018-07-03 Thread Omindu Rathnaweera
Hi Fazlan/Nalaka, This behavior is not there in the IS 5.6.0 release candidate. I did a small test by reverting the APIMTokenIssuer to the default one and the issue got resolved. Better to check the APIMTokenIssuer. On Mon, Jul 2, 2018 at 7:48 PM Fazlan Nazeem wrote: > This seems to be true. >

Re: [Dev] Giving the different Access tokens in API manager 2.5.0 when try to generate new tokens before expired the access token.

2018-07-02 Thread Fazlan Nazeem
This seems to be true. @IS team, What is the reason to expire the token before the expiry time and without a revocation request? On Mon, Jul 2, 2018 at 2:31 PM Nalaka Senarathna wrote: > In the latest release of API manager if we try to generate new access > tokens before it expired using "pas

[Dev] Giving the different Access tokens in API manager 2.5.0 when try to generate new tokens before expired the access token.

2018-07-02 Thread Nalaka Senarathna
In the latest release of API manager if we try to generate new access tokens before it expired using "password grant type " output is different access tokens with the same refresh token. when checking the database it shows the state is "EXPIRED" of the previous access token. In earlier releases, i