GitHub user gabriel-korbato created a discussion: How to customize 
authentication in version 6

We have a version 5 deployment that defines `ADDITIONAL_MIDDLEWARE` and a 
`CUSTOM_SECURITY_MANAGER` in `superset_config.py`. The middleware performs 
custom authentication and sets environment variables `REMOTE_USER`, `ROLES`, 
`FIRST_NAME`, and `LAST_NAME`. The custom SecurityManager sets 
`authremoteuserview` to a custom class that extends `AuthRemoteUserView` and 
overrides the `login` function to read the environment variables set by the 
middleware and either login, create, or update users. 

This customization does not work in version 6. I read posts that explain that 
FAB was updated and that FAB's views have been replaced with Superset's views. 
One reply suggested overriding `SupersetAuthView` instead of 
`AuthRemoteUserView`, but I have not been able to get it working. Can someone 
please provide an example of how to do this in version 6?

GitHub link: https://github.com/apache/superset/discussions/38199

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to