OAUTH2/OKTA Authentication not working with Airflow2.7.1 ERROR - Error authorizing OAuth access token: maximum recursion depth exceeded #35396
-
Apache Airflow versionOther Airflow 2 version (please specify below) What happenedThe OKTA authentication is identifying and verifying the users in OKTA console. Logs are shown with Authenticated successfully at OKTA web console however when its redirected to Airflow web its showing "The request to sign in was denied." What you think should happen insteadUser should able to login to home page How to reproduceThe OKTA authentication is identifying and verifying the users in OKTA console. Logs are shown with Authenticated successfully at OKTA web console however when its redirected to Airflow web its showing "The request to sign in was denied." Operating SystemRedHat OpenShift Versions of Apache Airflow ProvidersNo response DeploymentOther Deployment detailsAirflow setup using Docker in RedHat OpenShift environment Anything elseHere is the code configured in webserver_config.py file AUTH_TYPE = AUTH_OAUTH AUTH_ROLES_MAPPING = { OAUTH_PROVIDERS = [ Are you willing to submit PR?
Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Did this ever worked in any Airflow version or is it something you try for the first time? This feels more like troubleshooting question to FAB rather than Airflow issue. I suggest to set log level to DEBUG and see what the log says. You should be able to trace the specific user you try to sign in with to what Airflow role it's assign to. |
Beta Was this translation helpful? Give feedback.
-
Here is the error in logs |
Beta Was this translation helpful? Give feedback.
-
@potiuk Any thoughts on this error? |
Beta Was this translation helpful? Give feedback.
-
I generally comment when I have somethign to add @codeprasan . Remember this is a free forum where people are helping others as long as they think they can help and if they - on their own - decide they want and have free time to help. I think if you REALLY to solve a problem that much to involve someone's attention by calling that person, maybe it's a sign you should hire an expert for help? Consider this instead. |
Beta Was this translation helpful? Give feedback.
Thanks for being kind and sharing your recommendations ;)
We found the solution for this issue. The certificates were not correctly configured.