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

EVWHS Fix / Auth Prompt #160

Open
pjdufour opened this issue Aug 26, 2015 · 0 comments
Open

EVWHS Fix / Auth Prompt #160

pjdufour opened this issue Aug 26, 2015 · 0 comments

Comments

@pjdufour
Copy link
Member

The default auth prompt logic for WMS servers is hardcoded for GeoServer. See https://github.com/ROGUE-JCTD/MapLoom/blob/master/src/common/addlayers/AddServerDirective.js#L107. This prevents WMS servers such as https://rdog.digitalglobe.com/mapservice/wmsaccess?connectid=XXX-XXX-XXX from authenticating properly.

EVWHS will authenticate properly when using server.url (the original url). Can we just hit the original WMS endpoint instead of /rest/settings.json' for all WMS servers?

Also need to change:

serverAuthenticationUrl = serverAuthenticationUrl.replace('http://', 'http://null:null@');
serverAuthenticationUrl = serverAuthenticationUrl.replace('http://', 'http://null:null@').replace('https://', 'https://null:null@');

or use some advanced regex.

Hotfix

 var serverAuthenticationUrl = server.url.startsWith('https://rdog.digitalglobe.com/') ? server.url : (serverBaseUrl + '/rest/settings.json');

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

No branches or pull requests

2 participants