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/04/16 09:43:05 UTC

[GitHub] [airflow] johnskopis opened a new issue #15405: AUTH_OAUTH: Access is Denied for: can_list on: CustomUserOAuthModelView

johnskopis opened a new issue #15405:
URL: https://github.com/apache/airflow/issues/15405


   **Apache Airflow version**: 2.1.0.dev0 (f94effeab1a943a7fad19845c10a2b3ea2731fce)
   ```
   alabaster==0.7.12
   alembic==1.5.8
   -e git://github.com/apache/airflow@f94effeab1a943a7fad19845c10a2b3ea2731fce#egg=apache_airflow
   apache-airflow-providers-docker==1.1.0
   apache-airflow-providers-ftp==1.0.1
   apache-airflow-providers-http==1.1.1
   apache-airflow-providers-imap==1.0.1
   apache-airflow-providers-sqlite==1.0.2
   apipkg==1.5
   apispec==3.3.2
   appdirs==1.4.4
   argcomplete==1.12.2
   arrow==0.14.7
   asn1crypto==1.3.0
   astroid==2.5.3
   attrs==20.3.0
   Authlib==0.14.3
   aws-xray-sdk==2.7.0
   Babel==2.9.0
   backcall==0.2.0
   bcrypt==3.1.7
   beautifulsoup4==4.7.1
   black==20.8b1
   blinker==1.4
   boto==2.49.0
   boto3==1.17.53
   botocore==1.20.53
   bowler==0.9.0
   cached-property==1.5.2
   cachetools==4.2.1
   cattrs==1.5.0
   certifi==2020.12.5
   cffi==1.14.5
   cfgv==3.2.0
   cgroupspy==0.1.6
   chardet==4.0.0
   click==7.1.2
   clickclick==20.10.2
   colorama==0.4.4
   colorlog==5.0.1
   commonmark==0.9.1
   connexion==2.7.0
   coverage==5.5
   croniter==0.3.37
   cryptography==3.4.7
   decorator==5.0.7
   defusedxml==0.7.1
   dill==0.3.3
   distlib==0.3.1
   dnspython==2.1.0
   docker==3.7.3
   docker-pycreds==0.4.0
   docutils==0.16
   ecdsa==0.14.1
   elasticsearch==7.8.1
   elasticsearch-dsl==7.2.1
   email-validator==1.0.5
   etcd-gevent==0.1.1
   execnet==1.8.0
   filelock==3.0.12
   fissix==20.8.0
   flake8==3.9.1
   flake8-bugbear==21.4.3
   flake8-colors==0.1.9
   flaky==3.7.0
   Flask==1.1.2
   Flask-AppBuilder==3.2.2
   Flask-Babel==1.0.0
   Flask-Bcrypt==0.7.1
   Flask-Caching==1.10.1
   Flask-JWT-Extended==3.25.1
   Flask-Login==0.4.1
   Flask-OAuthlib==0.9.5
   Flask-OpenID==1.2.5
   Flask-SQLAlchemy==2.5.1
   Flask-WTF==0.14.3
   freezegun==1.1.0
   future==0.18.2
   gevent==20.9.0
   geventhttpclient==1.4.4
   gitdb==4.0.7
   github3.py==2.0.0
   GitPython==3.1.14
   google-api-core==1.21.0
   google-api-python-client==1.9.3
   google-auth==1.29.0
   google-auth-httplib2==0.0.4
   google-auth-oauthlib==0.4.1
   googleapis-common-protos==1.52.0
   graphviz==0.16
   greenlet==1.0.0
   grpcio==1.35.0
   gunicorn==19.10.0
   httplib2==0.19.1
   httpretty==1.0.5
   ics==0.6
   identify==2.2.3
   idna==2.10
   imagesize==1.2.0
   importlib-metadata==1.7.0
   importlib-resources==1.5.0
   inflection==0.5.1
   iniconfig==1.1.1
   ipdb==0.13.7
   ipython==7.22.0
   ipython-genutils==0.2.0
   iso8601==0.1.14
   isodate==0.6.0
   isort==5.8.0
   itsdangerous==1.1.0
   jedi==0.18.0
   Jinja2==2.11.3
   jira==2.0.0
   jmespath==0.10.0
   jsondiff==1.2.0
   jsonpath-ng==1.5.2
   jsonschema==3.2.0
   jwcrypto==0.8
   kubernetes==11.0.0
   lazy-object-proxy==1.6.0
   lockfile==0.12.2
   lxml==4.5.1
   Mako==1.1.4
   Markdown==3.3.4
   MarkupSafe==1.1.1
   marshmallow==3.11.1
   marshmallow-enum==1.5.1
   marshmallow-oneofschema==2.1.0
   marshmallow-sqlalchemy==0.23.1
   mccabe==0.6.1
   mock==4.0.3
   mongomock==3.22.1
   more-itertools==8.7.0
   moreorless==0.4.0
   moto==2.0.5
   mypy==0.770
   mypy-extensions==0.4.3
   mysql-connector-python==8.0.22
   mysqlclient==2.0.3
   natsort==7.1.1
   nodeenv==1.6.0
   ntlm-auth==1.5.0
   nulltype==2.3.1
   numpy==1.20.2
   oauthlib==2.1.0
   openapi-schema-validator==0.1.5
   openapi-spec-validator==0.3.0
   packaging==20.9
   pandas==1.2.4
   parameterized==0.8.1
   paramiko==2.7.2
   parso==0.8.2
   pathspec==0.8.1
   pbr==5.5.1
   pendulum==2.1.2
   pexpect==4.8.0
   pickleshare==0.7.5
   pipdeptree==2.0.0
   pkg-resources==0.0.0
   pluggy==0.13.1
   ply==3.11
   pre-commit==2.12.0
   prison==0.1.3
   prompt-toolkit==3.0.18
   protobuf==3.14.0
   psutil==5.8.0
   psycopg2-binary==2.8.5
   ptyprocess==0.7.0
   py==1.10.0
   pyasn1==0.4.8
   pyasn1-modules==0.2.8
   pycodestyle==2.7.0
   pycparser==2.20
   pydantic==1.5.1
   pyenchant==3.2.0
   pyfakefs==4.4.0
   pyflakes==2.3.1
   Pygments==2.8.1
   PyJWT==1.7.1
   pylint==2.7.4
   PyNaCl==1.4.0
   pynetbox==4.0.6
   pyparsing==2.4.7
   pyrsistent==0.17.3
   pysftp==0.2.9
   PySocks==1.7.1
   pytest==6.2.3
   pytest-cov==2.11.1
   pytest-flake8==1.0.7
   pytest-forked==1.3.0
   pytest-instafail==0.4.2
   pytest-mock==3.5.1
   pytest-rerunfailures==9.1.1
   pytest-timeouts==1.2.1
   pytest-xdist==2.2.1
   python-consul==1.1.0
   python-daemon==2.3.0
   python-dateutil==2.8.1
   python-editor==1.0.4
   python-etcd==0.4.5
   python-jose==3.2.0
   python-nvd3==0.15.0
   python-slugify==4.0.1
   python3-openid==3.2.0
   pytz==2021.1
   pytzdata==2020.1
   pywinrm==0.4.1
   PyYAML==5.4.1
   qds-sdk==1.16.1
   regex==2021.4.4
   requests==2.25.1
   requests-mock==1.8.0
   requests-ntlm==1.1.0
   requests-oauthlib==1.1.0
   requests-toolbelt==0.9.1
   responses==0.13.2
   rich==9.2.0
   rsa==4.7.2
   ruamel.yaml==0.16.6
   ruamel.yaml.clib==0.2.0
   s3transfer==0.3.7
   sentinels==1.0.0
   setproctitle==1.2.2
   six==1.15.0
   smmap==4.0.0
   snowballstemmer==2.1.0
   soupsieve==2.2.1
   Sphinx==3.4.3
   sphinx-airflow-theme==0.0.2
   sphinx-argparse==0.2.5
   sphinx-autoapi==1.0.0
   sphinx-copybutton==0.3.1
   sphinx-jinja==1.1.1
   sphinx-rtd-theme==0.5.2
   sphinxcontrib-applehelp==1.0.2
   sphinxcontrib-devhelp==1.0.2
   sphinxcontrib-dotnetdomain==0.4
   sphinxcontrib-golangdomain==0.2.0.dev0
   sphinxcontrib-htmlhelp==1.0.3
   sphinxcontrib-httpdomain==1.7.0
   sphinxcontrib-jsmath==1.0.1
   sphinxcontrib-qthelp==1.0.3
   sphinxcontrib-redoc==1.6.0
   sphinxcontrib-serializinghtml==1.1.4
   sphinxcontrib-spelling==5.2.1
   SQLAlchemy==1.3.24
   SQLAlchemy-JSONField==1.0.0
   SQLAlchemy-Utils==0.37.0
   stashy==0.6
   swagger-parser==1.0.1
   swagger-spec-validator==2.7.3
   swagger-stub==0.2.1
   swagger-ui-bundle==0.0.8
   tabulate==0.8.9
   TatSu==4.4.0
   tenacity==6.2.0
   termcolor==1.1.0
   text-unidecode==1.3
   toml==0.10.2
   traitlets==5.0.5
   typed-ast==1.4.3
   typing-extensions==3.7.4.3
   unicodecsv==0.14.1
   Unidecode==1.2.0
   uritemplate==3.0.1
   urllib3==1.26.4
   virtualenv==20.4.3
   volatile==2.1.0
   watchtower==0.7.3
   wcwidth==0.2.5
   websocket-client==0.58.0
   Werkzeug==1.0.1
   wrapt==1.12.1
   WTForms==2.3.3
   xmltodict==0.12.0
   yamllint==1.26.1
   zipp==3.4.1
   zope.event==4.5.0
   zope.interface==5.4.0
   ```
   **What happened**: After successfully logging in with an oauth user and clicking "List Users" in the UI the blinker/flasher message reads "Access is denied". There is a message logged:
   
   Access is Denied for: can_list on: CustomUserOAuthModelView
   
   **What you expected to happen**: Permissions should work the same for all user types.
   
   **How to reproduce it**: Login using oauth and try to list users
   
   I did find a similar bug but it's unclear if it's the same: 
   
   https://github.com/apache/superset/issues/9005
   
   Thanks


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

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



[GitHub] [airflow] boring-cyborg[bot] commented on issue #15405: AUTH_OAUTH: Access is Denied for: can_list on: CustomUserOAuthModelView

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #15405:
URL: https://github.com/apache/airflow/issues/15405#issuecomment-821055812


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


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

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