(20241128) Scope-handling going on...
This commit is contained in:
@@ -60,6 +60,9 @@ from utils_v2.api.async_quart import (
|
|||||||
handle_cancelled_request
|
handle_cancelled_request
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# GMail-related utils:
|
||||||
|
from utils_v2.goog.gmail.gmail_client import SCOPES_GMAIL_MAIL_MANAGEMENT
|
||||||
|
|
||||||
# Common:
|
# Common:
|
||||||
from shared import constants
|
from shared import constants
|
||||||
|
|
||||||
@@ -198,6 +201,7 @@ async def request_oauth_authorization_url(
|
|||||||
|
|
||||||
# Get the authorization URL:
|
# Get the authorization URL:
|
||||||
auth_url = await current_app.gmail_client.get_authorization_url(
|
auth_url = await current_app.gmail_client.get_authorization_url(
|
||||||
|
scopes = SCOPES_GMAIL_MAIL_MANAGEMENT,
|
||||||
state = user_identifier,
|
state = user_identifier,
|
||||||
access_type = "offline",
|
access_type = "offline",
|
||||||
approval_prompt = "force",
|
approval_prompt = "force",
|
||||||
|
|||||||
Reference in New Issue
Block a user