Yes i have implemented OAuth2ProviderTokenServices for my own custom TokenServices Provider and have set the expiration date to null with
Code:
private boolean isExpired(OAuth2AccessToken accessToken) {
if(accessToken.getExpiration()!=null)
return System.currentTimeMillis() > accessToken.getExpiration().getTime();
else
return false;
}
So in this case my token will never expire.
Now i need a requirement in such a way that the client itself should pass this long lived Access token without the service provider prompting for authentication.
This requirement is same as the offline_access permission provided by other providers such as facebook.
So how can we implement this in sparklr?
Thanks,
Sweta