Hi Nadeeshan, Documentation says, refresh token never expires. From google - [1]. But this is OAuth, and according to spec, Consumer secret and key doesn't expire and can be stored in application. Could we see how that can be applied to the Connector?
[1] Note: The OAuth Playground does not store refresh tokens, but as refresh tokens never expire, user should go to their Google Account Authorized Access <https://accounts.google.com/IssuedAuthSubTokens> page if they would like to manually revoke them. thanks, Dimuthu On Thu, Dec 3, 2015 at 9:51 AM, Nadeeshaan Gunasinghe <nadeesh...@wso2.com> wrote: > Hi Dimuthu, > > I think we cannot use the same refresh token over and over again to get > new access tokens. When we get a new access token, we get a new refresh > token along with. So we have to use that new refresh token to get the the > next access token. Please clarify if I am wrong :) > > Regards > > > *Nadeeshaan Gunasinghe* > Software Engineer, WSO2 Inc. http://wso2.com > +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe > <#1516612dccbec008_> > <http://www.facebook.com/nadeeshaan.gunasinghe> > <http://lk.linkedin.com/in/nadeeshaan> <http://twitter.com/Nadeeshaan> > <http://nadeeshaan.blogspot.com/> > Get a signature like this: Click here! > <http://ws-promos.appspot.com/r?rdata=eyJydXJsIjogImh0dHA6Ly93d3cud2lzZXN0YW1wLmNvbS9lbWFpbC1pbnN0YWxsP3dzX25jaWQ9NjcyMjk0MDA4JnV0bV9zb3VyY2U9ZXh0ZW5zaW9uJnV0bV9tZWRpdW09ZW1haWwmdXRtX2NhbXBhaWduPXByb21vXzU3MzI1Njg1NDg3Njk3OTIiLCAiZSI6ICI1NzMyNTY4NTQ4NzY5NzkyIn0=> > > On Thu, Dec 3, 2015 at 9:04 AM, Malaka Silva <mal...@wso2.com> wrote: > >> Thulasika guess we have done it. Seems missing in the docs. [1]? >> >> This will become handy with esb 4.10 property mediator >> registry persistence improvement. >> >> [1] >> https://docs.wso2.com/display/ESBCONNECTORS/Configuring+Google+Spreadsheet+Operations >> >> On Thu, Dec 3, 2015 at 8:58 AM, Dimuthu Leelarathne <dimut...@wso2.com> >> wrote: >> >>> Hi Thulasika, >>> >>> Could we improve the Google Connector such that given the refresh token, >>> it would self generate an access token, as Refresh tokens never expire? >>> >>> Right now app has to take the responsibility of generating an access >>> token. >>> >>> thanks, >>> Dimuthu >>> >>> -- >>> Dimuthu Leelarathne >>> Director >>> >>> WSO2, Inc. (http://wso2.com) >>> email: dimut...@wso2.com >>> Mobile : 0773661935 >>> >>> Lean . Enterprise . Middleware >>> >> >> >> >> -- >> >> Best Regards, >> >> Malaka Silva >> Senior Tech Lead >> M: +94 777 219 791 >> Tel : 94 11 214 5345 >> Fax :94 11 2145300 >> Skype : malaka.sampath.silva >> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 >> Blog : http://mrmalakasilva.blogspot.com/ >> >> WSO2, Inc. >> lean . enterprise . middleware >> http://www.wso2.com/ >> http://www.wso2.com/about/team/malaka-silva/ >> <http://wso2.com/about/team/malaka-silva/> >> https://store.wso2.com/store/ >> >> Save a tree -Conserve nature & Save the world for your future. Print this >> email only if it is absolutely necessary. >> > > -- Dimuthu Leelarathne Director WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware
_______________________________________________ Architecture mailing list Architecture@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture