You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/09/30 16:01:19 UTC

[GitHub] [incubator-superset] yackushevas opened a new issue #11119: AUTH_REMOTE_USER and Scheduled email reports

yackushevas opened a new issue #11119:
URL: https://github.com/apache/incubator-superset/issues/11119


   ### Expected results
   
   Ability to work with service users when using AUTH_TYPE = AUTH_REMOTE_USER.
   
   ### Actual results
   
   The user specified in EMAIL_REPORTS_USER does not have a simplified authorization option (or I could not find it in the documentation).
   
   #### How to reproduce the bug
   
   1. Set AUTH_TYPE = AUTH_REMOTE_USER and use CUSTOM_SECURITY_MANAGER
   2. Set ENABLE_SCHEDULED_EMAIL_REPORTS = True
   3. See error:
   ```
   Exception on /login/ [GET]
   Traceback (most recent call last):
     File "/opt/superset/venv/lib/python3.6/site-packages/flask/app.py", line 2447, in wsgi_app
       response = self.full_dispatch_request()
     File "/opt/superset/venv/lib/python3.6/site-packages/flask/app.py", line 1952, in full_dispatch_request
       rv = self.handle_user_exception(e)
     File "/opt/superset/venv/lib/python3.6/site-packages/flask/app.py", line 1821, in handle_user_exception
       reraise(exc_type, exc_value, tb)
     File "/opt/superset/venv/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
       raise value
     File "/opt/superset/venv/lib/python3.6/site-packages/flask/app.py", line 1950, in full_dispatch_request
       rv = self.dispatch_request()
     File "/opt/superset/venv/lib/python3.6/site-packages/flask/app.py", line 1936, in dispatch_request
       return self.view_functions[rule.endpoint](**req.view_args)
     File "/opt/superset/venv/bin/superset_config.py", line 142, in login
       login_user(user)
     File "/opt/superset/venv/lib/python3.6/site-packages/flask_login/utils.py", line 158, in login_user
       if not force and not user.is_active:
   AttributeError: 'NoneType' object has no attribute 'is_active'
   ```


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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] jawabuu commented on issue #11119: AUTH_REMOTE_USER and Scheduled email reports

Posted by GitBox <gi...@apache.org>.
jawabuu commented on issue #11119:
URL: https://github.com/apache/incubator-superset/issues/11119#issuecomment-702053899


   @mistercrunch Using tour example here
   https://gist.github.com/mistercrunch/6d31af4a11c47edcedc1ba6ceb5f5fab works fine for remote user login but returns 
   
   `raised unexpected: WebDriverException('Failed to decode response from marionette', None, None)` 
   or
   ` NoSuchElementException('Unable to locate element: .grid-container', None, None)`
   
   for email Reports.
   Switching to AUTH_OAUTH or AUTH_DB resolves it.
   


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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] yackushevas commented on issue #11119: AUTH_REMOTE_USER and Scheduled email reports

Posted by GitBox <gi...@apache.org>.
yackushevas commented on issue #11119:
URL: https://github.com/apache/incubator-superset/issues/11119#issuecomment-702748613


   > for email Reports.
   > Switching to AUTH_OAUTH or AUTH_DB resolves it.
   
   Then AUTH_REMOTE_USER will not work.


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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] stale[bot] commented on issue #11119: AUTH_REMOTE_USER and Scheduled email reports

Posted by GitBox <gi...@apache.org>.
stale[bot] commented on issue #11119:
URL: https://github.com/apache/incubator-superset/issues/11119#issuecomment-751293945


   This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue `.pinned` to prevent stale bot from closing the issue.
   


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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] issue-label-bot[bot] commented on issue #11119: AUTH_REMOTE_USER and Scheduled email reports

Posted by GitBox <gi...@apache.org>.
issue-label-bot[bot] commented on issue #11119:
URL: https://github.com/apache/incubator-superset/issues/11119#issuecomment-701485445


   Issue-Label Bot is automatically applying the label `#bug` to this issue, with a confidence of 0.53. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback! 
   
    Links: [app homepage](https://github.com/marketplace/issue-label-bot), [dashboard](https://mlbot.net/data/apache/incubator-superset) and [code](https://github.com/hamelsmu/MLapp) for this bot.


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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] jawabuu edited a comment on issue #11119: AUTH_REMOTE_USER and Scheduled email reports

Posted by GitBox <gi...@apache.org>.
jawabuu edited a comment on issue #11119:
URL: https://github.com/apache/incubator-superset/issues/11119#issuecomment-702053899


   @mistercrunch Using your example here
   https://gist.github.com/mistercrunch/6d31af4a11c47edcedc1ba6ceb5f5fab works fine for remote user login but returns 
   
   `raised unexpected: WebDriverException('Failed to decode response from marionette', None, None)` 
   or
   ` NoSuchElementException('Unable to locate element: .grid-container', None, None)`
   
   for email Reports.
   Switching to AUTH_OAUTH or AUTH_DB resolves it.
   


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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] jawabuu commented on issue #11119: AUTH_REMOTE_USER and Scheduled email reports

Posted by GitBox <gi...@apache.org>.
jawabuu commented on issue #11119:
URL: https://github.com/apache/incubator-superset/issues/11119#issuecomment-701932370


   Hey @yackushevas Are you using any middleware?
   Could you share your CustomSecurityManager?


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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org