You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/07/06 18:43:52 UTC

[GitHub] [airflow] mdcsaenz commented on issue #16783: Airflow 2.1.0 Oauth for google Too Many Redirects b/c Google User does not have Role

mdcsaenz commented on issue #16783:
URL: https://github.com/apache/airflow/issues/16783#issuecomment-874996824


   > `AUTH_USER_REGISTRATION_ROLE` only applies if `AUTH_USER_REGISTRATION` is true.
   > 
   > Looks like the FAB google oauth provider doesn't support `AUTH_ROLE_MAPPING` by default:
   > https://github.com/dpgaspar/Flask-AppBuilder/blob/95947e84e04a999a474dfe8620fb0f36d71f0467/flask_appbuilder/security/manager.py#L585-L590
   > 
   > You'd need a custom security manager to return `role_keys`, for example like is done in the OP of #14829.
   > (I'm sure FAB would love to have support for this with the google oauth provider, so consider contributing it back if you get it working).
   
   Ah okay, I will see if that works and then close the ticket if that is the case. But it definitely erased the Role even with AUTH_USER_REGISTRATION_ROLE and AUTH_USER_REGISTRATION  are both false as well. I made AUTH_USER_ROLE False as well.


-- 
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-unsubscribe@airflow.apache.org

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