[Dev] API-Manager Token Validity period in a clustered setup

2014-07-27 Thread Asanthi Kulasinghe
Hi, We have observed that the token expiration times in a API-Manager Clustered set up for token types Application access token and User access token, are taken from the values set in 2 different nodes. ie: value of the Store node's identity.xml is considered for Application access token expir

Re: [Dev] API-Manager Token Validity period in a clustered setup

2014-07-27 Thread Sanjeewa Malalgoda
The reason for this issue is, in API store when we generate token default validity time will pick from store nodes config file. Then you will see store nodes validity period(configured in identity.xml) in token validity period box. But if you send token generation request(user access token) to key

Re: [Dev] API-Manager Token Validity period in a clustered setup

2014-07-27 Thread Nirodha Pramod
​Hi Sanjeewa, Ain't it a wrong design? ​IMO if the APPLICATION TOKEN is generated in the KeyManager node (which you configure the server url in the store), then it should read the validity period from the key manager node itself at the time of token generation. I dont understand why it reads the v

Re: [Dev] API-Manager Token Validity period in a clustered setup

2014-07-27 Thread Dinusha Senanayaka
On Mon, Jul 28, 2014 at 11:44 AM, Nirodha Pramod wrote: > ​Hi Sanjeewa, > > Ain't it a wrong design? ​IMO if the APPLICATION TOKEN is generated in the > KeyManager node (which you configure the server url in the store), then it > should read the validity period from the key manager node itself at

Re: [Dev] API-Manager Token Validity period in a clustered setup

2014-07-28 Thread Sanjeewa Malalgoda
On Sun, Jul 27, 2014 at 11:56 PM, Dinusha Senanayaka wrote: > > > > On Mon, Jul 28, 2014 at 11:44 AM, Nirodha Pramod wrote: > >> ​Hi Sanjeewa, >> >> Ain't it a wrong design? ​IMO if the APPLICATION TOKEN is generated in >> the KeyManager node (which you configure the server url in the store), th

Re: [Dev] API-Manager Token Validity period in a clustered setup

2014-07-28 Thread Nirodha Pramod
Hi Dinusha, Let me clarify my question. If the token is generated by the keymanager node why does not that node itself set the validity period read from KM node's identity.xml, at the time of token generation. Why does KM node generate the token and store node sets the validity period. Why not KM