From f21fb4a55ca33afa06c859478ffc62db4d811058 Mon Sep 17 00:00:00 2001 From: Hocassian Date: Wed, 28 Dec 2022 13:01:55 +0800 Subject: [PATCH] Authorization should allow to override, such as request_token() methods, there are some customizing authorization flows don't support to get access_token thought local client, even if using environment variables are not allowed. More reference: https://open.feishu.cn/document/common-capabilities/sso/api/get-access_token?lang=en-US --- sdk/python/flet/page.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/python/flet/page.py b/sdk/python/flet/page.py index 7e83f1cdb..14b78c5d9 100644 --- a/sdk/python/flet/page.py +++ b/sdk/python/flet/page.py @@ -364,8 +364,9 @@ def login( on_open_authorization_url=None, complete_page_html: Optional[str] = None, redirect_to_page=False, + authorization=Authorization ): - self.__authorization = Authorization( + self.__authorization = authorization( provider, fetch_user=fetch_user, fetch_groups=fetch_groups,