I have a very basic PHP site that I want to use oauth2 authentication against Google Apps, using the example they provided (below is my version), The user on authentication keeps getting prompted to allow my app offline access to their account, Which I don't want.
$this->gapps_api_client = new Google_Client();
// $this->gapps_api_client->setAccessType('online');
$this->gapps_api_client->setApplicationName( GAPPS_APPLICATION_NAME );
$this->gapps_api_client->setClientId( GAPPS_CLIENT_ID );
$this->gapps_api_client->setClientSecret( GAPPS_CLIENT_SECRET );
$this->gapps_api_client->setRedirectUri( GAPPS_REDIRECT_URI );
$this->oauth2 = new Google_Oauth2Service($this->gapps_api_client);
It's worth nothing I have been playing with "setAccessType" however no values seem to have an effect on this offline permission mode. I've tried leaving it commented out, setting it to "online", "offline" nothing has made a difference.
Anybody else been able to oauth2 authenticate without the user granting your app "Offline access"?