Comments (13)
What kind of authentication are you referring to ? HTTP, Cookies, SSL, Shibboleth OpenID, CAS?
from geohealthcheck.
At least HTTP Basic Auth is used a lot, that would be a start. I take it that you need the ability to add credentials for a Resource
URL? You could try to encode it in the URL like http://username:[email protected]/
, not sure this will work in GHC, but also exposes creds via UI.
So, good point: could start adding optional user/password fields for a Resource
.
from geohealthcheck.
Finally this feature will be implemented! Planned:
- generic/extensible Resource Auth design
- implementation for HTTP Basic Auth
Current thinking:
- new column/field for Resource
auth
auth
field stores encrypted JSON structureauth
JSON structure identifies Auth Method and Data properties- Auth Method id drives implementation
Something like:
{
method: 'basicauth',
data: {
username: 'rscuser',
password: 'rscpasswd'
}
}
The method id basicauth
will direct the implementation to a BasicAuth
class to use which fills in the proper headers etc.
from geohealthcheck.
Fixed via #259 , available on https://demo.geohealthcheck.org/
from geohealthcheck.
@justb4, thanks so much for considering this feature in the latest stantec sponsored development activity.
from geohealthcheck.
@samperd yes, you opened this a very long time ago! Does the current implementation work for you?
from geohealthcheck.
Re-opening: in some scenarios, e.g. WMS Editing, getting WMS metadata (Capabilities) is not applying auth headers when calling OWSLib WebMapService (or other OWSLib services).
Solution
Any Probe calling OWSLib Metadata should set (optional) auth headers via this e.g. call for WMS:
WebMapService(resource.url, version=version,
headers=self.get_request_headers())
Complications
This can currently only be applied to WMS, as other OWSLib services like WFS, TMS etc do not supply a headers
parameter in their constructors. See this OWSLib issue
from geohealthcheck.
We are quite far, need to await Py2->Py3 migrate to use latest OWSLib with fixes for at WFS, CSW etc.
from geohealthcheck.
With the py3 migration fixed in #280: is there more to do for this issue?
from geohealthcheck.
We need to upgrade OWSLib from 0.17.0 to the latest version: https://github.com/geopython/OWSLib/releases (now 0.18.0), which should fix Resource auth for WFS and more (this issue) and some WFS3 fixes. Mainly quite some testing needed.
from geohealthcheck.
With PR #312 there is an update to OWSLib 0.19.
from geohealthcheck.
And now even to OWSLib 0.20.0. Want to first bring out 0.8.0 and quickly move to 0.8.1 for this one and related PRs.
from geohealthcheck.
Closing: via #333 : OWSLib is upgraded to 0.20.0, so Auth Headers should work with WFS and TMS as well. Please open specific issues for Auth problems/features.
from geohealthcheck.
Related Issues (20)
- Probes/checks run once and never repeat HOT 2
- Upgrade Docker image to newer version of Python HOT 1
- update minimum jquery version
- test mailserver configuration HOT 2
- Need new Mapbox Tilejson Unit tests
- Error when adding or testing Resource in web UI on demo site HOT 1
- Support for ESRI ArcGIS Server Mapservice HOT 2
- Make 1.3.0 default WMS version
- better indication while testing
- error report drilldown-all-layers wms should indicate which layer is failing
- Slow performance in frontend
- POST requests fail with resources requiring authentication HOT 1
- Python error loading data
- Better formatting for dates HOT 2
- Filter when clicking on "operational" and "broken"
- Show more details for probes
- Show the name of the chosen tag along with "dashboard"
- Show full resport on two columns to avoid having to vertical scroll the dialog
- Doc updates for new ReadTheDocs requirements HOT 1
- Unit test failures HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geohealthcheck.