I managed to get access_token from the docs. but my cURL to /dashboard returned 302Found, meaning i still need to login via login page to access the endpoint. is there any other library that make me logged in or authorized via cURL, not UI?
I was not having any issues in getting the app to run, but once I click on the Login/ Register link it gives me a status code of 404 Not Found The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
Any solution to this ? Could there be any setting on the Okta account that I am missing? I have added the additional redirect uri for login in Okta Application. I even tried granting some scope permissions to my web app. No use.
i am not sure if its the same thing but i run into the same issue. if you installed using “pip install okta” it gives import error as you typed above. Use specificly : “pip install okta==0.0.4” and it will solve your problem
Thanks man. It works now. I did need to change “localhost” from everywhere to 127.0.0.1. I think, this tutorial really needs some updating. So many people have had trouble making it work but it should have worked easily.
For all that are having issues with 404 errors. I had the same issue when I first launched the application. The fix was adding https:// to the ALL org urls used in the client_secrets.json file.
Hello. I hope this thread is still being looked at! I’ve been trying to get the Flask/Okta tutorial working, and am seeing an error - an Okta web page is displayed with the message “400 Bad Request your request resulted in an error” with a link to the Okta Home Page for my account.
Never mind. I discovered I was using the wrong ClientID/ClientSecret! I was sing something from my Google Dev acct, and switched to the correct one from my Okta dev acct.
Hey folks, for anyone in 2022 struggling with the 404 on login – make sure that the “org URL” you’re supplying to both Flask-OIDC and Okta client contains schema and not just the domain name (i.e. “https://dev-xxx.okta.com”)
I am receiving Not Authorized error could you please help
File “-/newvenv/lib/python3.9/site-packages/oauth2client/client.py”, line 2089, in step2_exchange
raise FlowExchangeError(error_msg)
oauth2client.client.FlowExchangeError: invalid_grantThe authorization code is invalid or has expired.