This site uses cookies. By continuing to browse the site, you agree to our use of cookies. Find out more about cookies.
Skip to main content
Metadecidim's official logo
  • English Triar la llengua Elegir el idioma Choose language
    • Català
    • Castellano
Sign Up Sign In
  • Home
  • Processes
  • Assemblies
  • Initiatives
  • Consultations
  • Conferences
  • Help

Propose new functionalities for Decidim software

#DecidimRoadmap Designing Decidim together

Phase 1 of 1
Open 2019-01-01 - 2030-12-31
Process phases Submit a proposal
  • The process
  • Debates
  • Propose new features
  • News
chevron-left Back to list

Possibility to force login before accessing the platform

Avatar: Antti Hukkanen Antti Hukkanen
07/09/2018 11:55  
Finished

May be against the "open democracy" ideology and all but we have modified a Decidim instance which requires users to log in before they can access any page in the system.

The reason is that the organization wanted to use Decidim's features openly within their organization but they don't want anyone outside of their organization to be able to access this information. They have e.g. idea collection there that may be a violation to employee's privacy in case that information was public but within that organization, it is OK to be visible for all.

Therefore, I think this should be a feature in Decidim, it would open up new use cases for the system as an open democracy tool for oranizations like "Let your employees participate to the decision making inside your organization".

This could be a configuration under the "system admin" panel where you would check a box which would then force users to log in as in the example screenshot.

  • Filter results for category: Installation and configuration Installation and configuration

The development of this proposal has finished

  • It is funded by Esquerra Republicana de Catalunya.
  • Has been reviewed by Decidim Product and complies with the Social Contract.

List of Endorsements

Avatar: Virgile Deville Virgile Deville
Avatar: agustibr ☂️ agustibr ☂️ verified-badge
Avatar: txema txema verified-badge
Avatar: Oliver Valls Oliver Valls
and 1 more person (see more) (see less)
Endorsements count4
Possibility to force login before accessing the platform Comments 20

Reference: MDC-PROP-2018-09-13132
Version number 3 (of 3) see other versions
Check fingerprint

Fingerprint

The piece of text below is a shortened, hashed representation of this content. It's useful to ensure the content hasn't been tampered with, as a single modification would result in a totally different value.

Value: 7a15ce44e3923fc97e55cd6432fc2c5e95e586517ccbf9f9527a348a4bb9e97e

Source: {"body":{"en":"May be against the \"open democracy\" ideology and all but we have modified a Decidim instance which requires users to log in before they can access any page in the system.\r\n\r\nThe reason is that the organization wanted to use Decidim's features openly within their organization but they don't want anyone outside of their organization to be able to access this information. They have e.g. idea collection there that may be a violation to employee's privacy in case that information was public but within that organization, it is OK to be visible for all.\r\n\r\nTherefore, I think this should be a feature in Decidim, it would open up new use cases for the system as an open democracy tool for oranizations like \"Let your employees participate to the decision making inside your organization\".\r\n\r\nThis could be a configuration under the \"system admin\" panel where you would check a box which would then force users to log in as in the example screenshot."},"title":{"en":"Possibility to force login before accessing the platform"}}

This fingerprint is calculated using a SHA256 hashing algorithm. In order to replicate it yourself, you can use an MD5 calculator online and copy-paste the source data.

Share:

link-intact Share link

Share link:

Please paste this code in your page:

<script src="https://meta.decidim.org/processes/roadmap/f/122/proposals/13132/embed.js"></script>
<noscript><iframe src="https://meta.decidim.org/processes/roadmap/f/122/proposals/13132/embed.html" frameborder="0" scrolling="vertical"></iframe></noscript>

Related images

Mockup for the configuration option

Report inappropriate content

Is this content inappropriate?

Reason

Comment details

Order by:
  • Older
    • Best rated
    • Recent
    • Older
    • Most discussed
You are seeing a single comment

View all comments

Conversation with Antti Hukkanen
Avatar: Antti Hukkanen Antti Hukkanen
10/09/2018 10:25
  • Get link Get link

Where can I find the source code for this instance, would be interested to take a look.

They have probably done something similar as what we did (i.e. adding the before action) but we also added a layout modification to hide the menus/other content before the user is logged in.

Avatar: Arnau Arnau
10/09/2018 10:33
  • Get link Get link

https://github.com/ElectricThings/fund_action

Avatar: Antti Hukkanen Antti Hukkanen
10/09/2018 11:10
  • Get link Get link

Thanks!

From that repository I can find the following changes they have done to achieve this:

Added a new before action in application controller as we did as well. But they didn't make it configurable, it is just hard coded for this instance.
Added redirects to the sign_up and profile editing paths to root in the config/routes.rb. We just handled this all on the controller level.
The have made their own Decidim fork to remove the sign in link from the header. We just hid the whole top bar before the user is logged in instance specifically (in case the configuration option is enabled) + removed the "registerable" module from Decidim::User.

The last change is not optimal as it adds a small overhead to their Decidim upgrade process.

Loading comments ...

  • Terms and conditions of use
  • About the community
  • Download Open Data files
  • Metadecidim at Twitter Twitter
  • Metadecidim at Instagram Instagram
  • Metadecidim at YouTube YouTube
  • Metadecidim at GitHub GitHub
Creative Commons License Website made with free software.
Decidim Logo

Confirm

OK Cancel

Please sign in

decidim Sign in with Decidim
Or

Sign up

Forgot your password?