Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #17444 : GeoNode data provider completely ignores authentication #5634

Merged
merged 6 commits into from
Nov 15, 2017

Conversation

timlinux
Copy link
Member

@timlinux timlinux commented Nov 14, 2017

For now we deal with this by adding a flag to QgsNewHttpConnection that allows you to hide the authentication group until GeoNode API supports authentication.

With QgsNewHttpConnection::FlagHideAuthenticationGroup set (in GeoNode connection dialog):

screen shot 2017-11-14 at 23 53 51

With QgsNewHttpConnection::FlagHideAuthenticationGroup omitted (default behaviour) e.g. in WMS connection dialog:

screen shot 2017-11-14 at 23 54 07

Description

The GeoNode API does not yet support authentication through the API, only from the underlying backend. In the future we will probably work for GeoNode to support authentication through their API but for now we are excluding the authentication options which do nothing which is confusing and misleading to users.

Checklist

Reviewing is a process done by project maintainers, mostly on a volunteer basis. We try to keep the overhead as small as possible and appreciate if you help us to do so by completing the following items. Feel free to ask in a comment if you have troubles with any of them.

  • Commit messages are descriptive and explain the rationale for changes
  • Commits which fix bugs include fixes #11111 in the commit message next to the description
  • Commits which add new features are tagged with [FEATURE] in the commit message
  • Commits which change the UI or existing user workflows are tagged with [needs-docs] in the commit message and contain sufficient information in the commit message to be documented
  • I have read the QGIS Coding Standards and this PR complies with them
  • This PR passes all existing unit tests (test results will be reported by travis-ci after opening this PR)
  • New unit tests have been added for core changes
  • I have run the scripts/prepare-commit.sh script before each commit

…ion - hide the authentication group until GeoNode API supports authentication.
@@ -56,6 +56,7 @@ class GUI_EXPORT QgsNewHttpConnection : public QDialog, private Ui::QgsNewHttpCo
enum Flag
{
FlagShowTestConnection = 1 << 1, //!< Display the 'test connection' button
FlagHideAuthenticationGroup = 2 << 2, //!< Hide the Authentication group
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be 1 << 2

@@ -20,14 +20,16 @@
#include "qgsgeonodeconnection.h"
#include "qgsgeonoderequest.h"

// For now we are hiding away authentication options since
// there is no support yet for tication in the GeoNode
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tication -> authentication

@@ -20,14 +20,16 @@
#include "qgsgeonodeconnection.h"
#include "qgsgeonoderequest.h"

// For now we are hiding away authentication options since
// there is no support yet for tication in the GeoNode
// We will re-enable this when this limitation changes. TS
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a GeoNode ticket number which could be linked here?

@nyalldawson
Copy link
Collaborator

Thanks @timlinux!

@elpaso
Copy link
Contributor

elpaso commented Nov 15, 2017

Thanks @timlinux, this looks like a good solution.

@timlinux timlinux merged commit 364ddc1 into qgis:master Nov 15, 2017
@timlinux
Copy link
Member Author

Thanks for the inputs @nyalldawson and @elpaso

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants