Skip to content

Commit

Permalink
Authorization should allow to override, such as request_token() metho…
Browse files Browse the repository at this point in the history
…ds, 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 (flet-dev#776)
  • Loading branch information
hokaso authored Dec 28, 2022
1 parent 384bf3e commit ff35962
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdk/python/flet/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ff35962

Please sign in to comment.