Hi ,

I have written new init method to resolve above issue. In this method I
used an endpoint which is provided by API to check whether accessToken is
expired or not.For that, First I get accessToken from registry if the
accessToken is null or expired then only call
getAccessTokenFromRefressToken method otherwise it use existing
accessToken.If API doesn't provide any endpoint to check accessToken
expired or not I use esb scheduled tasks to renew the accessToken in given
interval.


Thanks.

On Mon, Dec 21, 2015 at 2:15 PM, Thulasika Vijayanathan <[email protected]>
wrote:

> Hi,
>
> I will look into that as well.
>
>
> Thanks,
>
> On Tue, Dec 8, 2015 at 11:35 AM, Malaka Silva <[email protected]> wrote:
>
>> Hi,
>>
>> One of the main issues we had when automating the integration use cases
>> is accesstokens getting expired and need human interaction to continue the
>> service.
>>
>> From connector side (Since September release) we have added methods to
>> renew the tokens using refresh token.
>>
>> With ESB 4.10 registry persistence feature we can fully automate this use
>> case.
>>
>> As the first stage we are going to check how this can be done. For this
>> will be using the sync service from Salesforce to Google Sheets as the
>> model use case.
>>
>> We will plan to do this change focusing on following points.
>>
>>    1. Connectors should make use of this ESB 4.10 new feature.
>>    2. Connector should be also compatible with previous versions.
>>
>> May be we can introduce a new init method for esb 4.10?
>>
>> Thulasika is currently checking this.
>>
>> @Thulasika please use this thread to update the findings.
>>
>> 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.
>>
>
>
>
> --
> Thulasika
> Associate Software Engineer
> Mobile:0778014295
> email: [email protected] <[email protected]>
>



-- 
Thulasika
Associate Software Engineer
Mobile:0778014295
email: [email protected] <[email protected]>
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to