Comments (3)
In order for the login / logout entries to appear, they must be present in the config.json
file as {"key": "Login", "icon": "login"} under menuItems. The authentication plugin must also be activated. In the example of the qwc2 demo app, however, this is not activated.
from qwc-docker.
This issue will be closed, because the problem seems to be a misconfiguration on the users side. If anyone encounters the same "problem" then please read my comment and if the login/logout menu item doesn't appear then please reopen this issue.
from qwc-docker.
hello,
i can login/logout with the direct links (http://localhost:8088/auth/login) and the status is reflected in my map viewer, eg the menu entry would show "logout" when i already logged in before. however, when i click the regarding menu entry in the map viewer, i am not forwarded to the login gui but just nothing happens on click. what am i missing?
- i changed the docker image to qwc-map-viewer-base (maybe i need to undo installs from the demo version i did before?)
- no docker log entries on click.
- i updated the configs with sudo curl -X POST "http://localhost:5010/generate_configs?tenant=default".
i tried to find the solution in the sogis viewer repo and copied the {"key": "Login", "icon": "login"} menu entries to mobile/desktop based on that. i figured the autologin and loginuser config entries in sogis must be for something project-specific, so i didn't use that.
my setup is on an aws instance with all ports mentioned (specifically 5017, i guess, but then again these ports will probably be just used for internal gets, so it's maybe unnecessary) in the readme open for inbound traffic and i use the containers as explained in this (qwc-docker) repo.
what boggles me as well, is the sed command:
-e 's!{"key": "Login", "icon": "img/login.svg"}!{{ login_logout_item }}!g'
would actually substitute the key/icon dict for a {{ login_logout_item }} blob, right?
the config generator would then complain:
CRITICAL: Could not load QWC2 config.json:
Expecting property name enclosed in double quotes: line 336 column 18 (char 9624)
hope somebody can help, because it really bugs me not to get it ;)
thanks
from qwc-docker.
Related Issues (20)
- postgis persistent HOT 1
- Bad redirection after first login authentication HOT 1
- infinite redirections when calling qwc-admin-gui container directly HOT 1
- pg_services.conf et al are world readable HOT 1
- QWC-docker Permission denied HOT 9
- Error on windows during container creation of qwc-docker_qwc-api-gateway_1 HOT 3
- link to qwc-demo-db gets an error 404 HOT 1
- Internal Server Error HOT 10
- Error on generating service configuration HOT 2
- FlatGeobuf layers cannot be imported in ./volumes/qgs-resources/scan/ HOT 1
- Production use information request HOT 2
- Can't start container HOT 2
- Show gpx on map HOT 3
- SSL enforcement - ERR_SSL_PROTOCOL_ERROR HOT 5
- I can't start containers in Mac M1 HOT 1
- How to setup multi-tenant environment? HOT 9
- Problem with the "Administration tool" HOT 9
- qwc-qgis-server gets killed shortly after start HOT 7
- Connection to a PostGIS server HOT 2
- arm64 supported images 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 qwc-docker.