jedcunningham commented on code in PR #47514:
URL: https://github.com/apache/airflow/pull/47514#discussion_r1985682123
##########
airflow/auth/managers/simple/simple_auth_manager.py:
##########
@@ -126,7 +126,11 @@ def init(self) -> None:
def get_url_login(self, **kwargs) -> str:
"""Return the login page url."""
- return "/auth/webapp/login"
+ is_simple_auth_manager_all_admins = conf.getboolean("core",
"simple_auth_manager_all_admins")
+ if is_simple_auth_manager_all_admins:
+ return "/auth/token"
+ else:
+ return "/auth/login"
Review Comment:
```suggestion
if conf.getboolean("core", "simple_auth_manager_all_admins"):
return "/auth/token"
return "/auth/login"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]