Code Monkey home page Code Monkey logo

Comments (3)

HusseinKabbout avatar HusseinKabbout commented on August 11, 2024

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.

HusseinKabbout avatar HusseinKabbout commented on August 11, 2024

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.

8ern4ard avatar 8ern4ard commented on August 11, 2024

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 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.