Skip to content

Commit ff35962

Browse files
author
同和君Hocassian
authored
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 (#776)
1 parent 384bf3e commit ff35962

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sdk/python/flet/page.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,9 @@ def login(
364364
on_open_authorization_url=None,
365365
complete_page_html: Optional[str] = None,
366366
redirect_to_page=False,
367+
authorization=Authorization
367368
):
368-
self.__authorization = Authorization(
369+
self.__authorization = authorization(
369370
provider,
370371
fetch_user=fetch_user,
371372
fetch_groups=fetch_groups,

0 commit comments

Comments
 (0)