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/02 22:54:17 UTC

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

jedcunningham edited a comment on issue #16783:
URL: https://github.com/apache/airflow/issues/16783#issuecomment-873291945


   `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).


-- 
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