Allow authorization via XOAUTH2 using access token
Signed-off-by: Slava Kardakov <ojab@ojab.ru> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
@ -769,7 +769,8 @@ remoteuser = username
|
||||
# with type = IMAP for compatible servers).
|
||||
#
|
||||
# Mandatory parameters are "oauth2_client_id", "oauth2_client_secret" and
|
||||
# "oauth2_refresh_token". See below to learn how to get those.
|
||||
# either "oauth2_refresh_token" or "oauth2_access_token".
|
||||
# See below to learn how to get those.
|
||||
#
|
||||
# Specify the OAuth2 client id and secret to use for the connection..
|
||||
# Here's how to register an OAuth2 client for Gmail, as of 10-2-2016:
|
||||
@ -791,8 +792,12 @@ remoteuser = username
|
||||
# - Type the following command-line in a terminal and follow the instructions
|
||||
# python python/oauth2.py --generate_oauth2_token \
|
||||
# --client_id=YOUR_CLIENT_ID --client_secret=YOUR_CLIENT_SECRET
|
||||
# - Access token can be obtained using refresh token with command
|
||||
# python python/oauth2.py --user=YOUR_EMAIL --client_id=YOUR_CLIENT_ID
|
||||
# --client_secret=YOUR_CLIENT_SECRET --refresh_token=REFRESH_TOKEN
|
||||
#
|
||||
#oauth2_refresh_token = REFRESH_TOKEN
|
||||
#oauth2_access_token = ACCESS_TOKEN
|
||||
|
||||
########## Passwords
|
||||
|
||||
|
Reference in New Issue
Block a user