
LinardsL.53663 (HealthDash Ltd. Latvia) asked a question.
As per https://www.fullstackpython.com/blog/okta-user-auth-existing-flask-web-app.html , the login is "stuck" and is constantly returning https://devforum.okta.com/t/description-the-redirect-uri-parameter-must-be-a-login-redirect-uri-in-the-client-app-settings/15253 .
I have tried using various solutions, like specifiec extra parameter(s) to override redirect uri for Flask-OIDC, but no ciggar.

The Application settinmgs are also 100% valid as I have tried specifiying both "localhost:<port>" and "127.0.0.1:<port>" in the redirect settings, thus issue is not in Okta Application.
Also the solution in https://stackoverflow.com/questions/40663585/flask-oidc-redirect-uri-value-being-overwritten-somewhere did not work.
Now stuck at https://stackoverflow.com/questions/68294557/how-to-mimic-pkce-client-authentication-in-python as I got the following error: "error=invalid_request&error_description=PKCE+code+challenge+is+required+by+the+application."
Hello @LinardsL.53663 (HealthDash Ltd. Latvia) Thank you for reacting out to our Community!
You might want to try this guide for the integration:
https://developer.okta.com/blog/2018/07/12/flask-tutorial-simple-user-registration-and-login
My advice would be to leverage the Okta Developer forums for this type of questions and take advantage of their expertise.
https://devforum.okta.com/
The Okta Community Catalysts Program is now live. Collect online badges when you participate in the Okta Help Center Questions community. Learn more here.
The October issue of the Okta Community is here and packed with tips on certification, how to earn badges, and new releases. Let us help you stay connected.