简体   繁体   中英

How to fetch emails using gmail oauth without username and password

I used xoauth to fetch mails without username and password, but it asks for granting permission to access every time

Is there any way to integrate it with google auth login

or can I add this option to apiClient page, so that it would not ask for permission every login time

    $options = array(
        'requestScheme' => Zend_Oauth::REQUEST_SCHEME_HEADER,
        'version' => '1.0',
        'consumerKey' => $THREE_LEGGED_CONSUMER_KEY,
        'callbackUrl' => getCurrentUrl(),
        'requestTokenUrl' => 'https://www.google.com/accounts/OAuthGetRequestToken',
        'userAuthorizationUrl' => 'https://www.google.com/accounts/OAuthAuthorizeToken',
        'accessTokenUrl' => 'https://www.google.com/accounts/OAuthGetAccessToken'
    );

This option is used in

$consumer = new Zend_Oauth_Consumer($options);

Every time I login and this screen comes:

我希望禁用此批准屏幕

I would like this approval screen to be disabled

Can't be done. Google will not allow you to access the user's details if the user doesn't agree (hence the confirmation screen). The user can opt to remember this choice and not to display it again, but that's out of your hands.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM