question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CUSTOM_SECURITY_MANAGER not working in 0.34.0rc1

See original GitHub issue

App routing is broken in the latest release with respect to Custom Security Manager. Please deprecate this release.

Expected results

When attempting to access the root url for Superset, this should redirect to the login page if the user is not logged in. This redirect is failing to work when AUTH_TYPE = AUTH_OID

Actual results

The app routes to /superset/welcome

Screenshots

If applicable, add screenshots to help explain your problem.

How to reproduce the bug

  1. Use a custom security manager, akin to https://stackoverflow.com/questions/54010314/using-keycloakopenid-connect-with-apache-superset#54024394
  2. Deploy
  3. Navigate to bare url

Environment

(please complete the following information):

  • superset version: 0.34.0rc1
  • python version: 3.6
  • node.js version: 10.0
  • npm version: npm -v

Checklist

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven’t found one similar.

Additional context

This works perfectly fine on 0.33.0rc1, so I have had to downgrade. Because of this issue, where the routing is not correct, I believe this issue should be resolved and 0.34.0rc1 should be pulled.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
villebrocommented, Aug 19, 2019

App routing is broken in the latest release with respect to Custom Security Manager. Please deprecate this release.

IMO, the 0.34 release has a good deal of bug fixes/improvements that merit releasing 0.34 rather than 0.33. As 0.34 will (hopefully) become the first official ASF Superset release, there will for sure be many bugs that surface as people try it out. Rest assured committers (myself included) will give reported issues high priority to make sure that bugs are ironed out of the 0.34 branch (along with master) as quickly as possible.

1reaction
mmutisocommented, Aug 19, 2019

Hi @ericandrewmeadows ,

We had the same issue as explained in that StackOverflow question although we are using a different openId connect provider called IdentityServer4.

We, therefore, did a custom security manager that does the integration by extending the superset security manager. I would be happy to provide my approach if need be. It involved a little bit of code and understanding of the workings of openId connect(built on top of OAuth2)

Read more comments on GitHub >

github_iconTop Results From Across the Web

CUSTOM_SECURITY_MANAGER not working in 0.34.0rc1
App routing is broken in the latest release with respect to Custom Security Manager. Please deprecate this release.
Read more >
Developers - CUSTOM_SECURITY_MANAGER not working in 0.34 ...
CUSTOM_SECURITY_MANAGER not working in 0.34.0rc1. ... App routing is broken in the latest release with respect to Custom Security Manager.
Read more >
What is the problem with this custom security manager for ...
I'm running Apache Superset 1.4.0 on a Debian server, inside a Python virtual environment. I'm trying to implement a custom security manager ......
Read more >
CUSTOM_SECURITY_MANAGER not working in 0.34.0rc1
... on issue #8062: CUSTOM_SECURITY_MANAGER not working in 0.34.0rc1 ... request from flask_appbuilder.security.manager import AUTH_OID from ...
Read more >
Version history - FileZilla
Bugfixes and minor changes: Fix export of root items in the Site Manager; Handle rare cases of non-existing download directory in the updater....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found