diff --git a/tokendito/okta.py b/tokendito/okta.py index 55e4b3a..a47b08f 100644 --- a/tokendito/okta.py +++ b/tokendito/okta.py @@ -706,6 +706,7 @@ def idp_authenticate(config): logger.error("Okta auth failed: unknown type.") sys.exit(1) + # Possible recursion ahead. The exit condition should be the first if statement. if local_authentication_enabled(auth_properties): session_token = local_authenticate(config)