CharlieJ15420 opened a new issue, #36875:
URL: https://github.com/apache/airflow/issues/36875

   ### Apache Airflow version
   
   2.8.0
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   I've just upgraded from 2.7.3 to 2.8.0 and have my own custom security 
manager. This custom security manager inherited from AirflowSecurityManager. 
Now I've upgraded to 2.8.0 I've altered my security manager to inherit from 
FabAirflowSecurityManagerOverride. Despite this, my custom security manager 
isn't being picked up. I've made no changes to webserver_config.py where I've 
specified the SECURITY_MANAGER_CLASS. It should pick up my custom sec manager 
via this line: 
https://github.com/apache/airflow/blob/2.8.0/airflow/auth/managers/fab/fab_auth_manager.py#L340
 however when I try to login, not only do I get invalid login but the errors in 
the logs are coming from override.py (where the base 
FabAirflowSecurityManagerOverride lives) compared to my 
customsecuritymanager.py. I'm not sure if something else has changed that I 
need to alter or if there is a bug somewhere that isnt picking up my custom 
security manager class.
   
   note: I'm also using the default fab auth manager
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   Try to set your own SECURITY_MANAGER_CLASS in webserver_config.py and 
inherit from FabAirflowSecurityManagerOverride.
   
   ### Operating System
   
   CentOS7
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: commits-unsubscr...@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to