Closed tobsome closed 7 months ago
In Flet 0.21.0, because of migration to FastAPI web server, OAuth handler URL endpoint changed from /api/oauth/redirect
to /oauth_callback
. Use FLET_OAUTH_CALLBACK_HANDLER_ENDPOINT
env var to customize.
...or update callback URL in OAuth app registration and provider constructor.
Perfect! It works again! Thanks a lot, @FeodorFitsner! 😍
please update the documentation. This took me two days to resolve.
@Roh23 sorry about that! What guide did you use?
Description Hi guys,
I was updating my Flet from version 0.20.2 to 0.21.1 and since then my login with Okta as OAuthProvider is not working anymore. I have a normal login screen with Username/Password, login button and another button "Login with Okta". Before the update: When pressing "Login with Okta" I got redirected to the Okta login page, had to enter my credentials, got the confirmation that I logged in successfully and was redirected to my tool. All good. All apps are created correctly on Okta side.
Now after the update: I press "Login with Okta", another window opens and it's just my login screen again with Username/Password etc. input. Before the update it was a window from Okta as our IDP where I should've put my Okta credentials. That was working fine.
Code example to reproduce the issue:
Describe the results you received: The new window which opens a new window should be for my login credentials is just opening the login screen again now.
Describe the results you expected: Same result like before: `You are logged in successfully. You can close the window now!´
Additional information you deem important (e.g. issue happens only occasionally): Every time since the update.
Flet version (
pip show flet
):Give your
requirements.txt
file (don'tpip freeze
, instead give direct packages):Operating system: macOS
Additional environment details: