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

Add password protected pages for sensitive links. #42

Open
ajb3932 opened this issue Oct 5, 2022 · 1 comment
Open

Add password protected pages for sensitive links. #42

ajb3932 opened this issue Oct 5, 2022 · 1 comment

Comments

@ajb3932
Copy link

ajb3932 commented Oct 5, 2022

This looks awesome! Thanks for your hard work. This may already be possible so I apologise.

I would like to access hiccup externally but also would like to bookmark internal links.
Would it be possible to create an 'internal links' page with password protection?

Thanks
Alex

@ashwin-pc
Copy link
Owner

Thanks for opening this issue! This is a problem i have come by many times and there are a few ways to solve this. Help me understand your problem a little more so that i can suggest the best solution for you.

  1. How are you using hiccup right now? Are you self hosting it? or are you using https://designedbyashw.in/test/hiccup/ directly?
  2. If you are self hosting it, is the hosted site accessible publicly?
  3. Are you the only one that needs the internal links?

All link information for hiccup is stored in configs. As of 0.4.0 There is now a config manager that lets you manage multiple configs loaded from different sources (hosted, local file and in browser memory).

If its just you that needs to access the links

  • go to the config manager
  • select an empty config
  • Exit the config manager and add your links
    These links stay in your browser and only those who have access to your computer can see them. You can always switch between configs using the config manager

If you need to share these links or more that just you needs access to them:

  • Create your desired config by editing the links
  • Export the config using the "Download Preview" button on the config manager
    • Share the config file with who ever wants the links and ask them to import the file
    • Or host the file internally on a network that only those users have access to.

A password protected page may not be possible given that Hiccup is a static page, there is no real way to add password protection since checking that password would also happen on the browser, which means that the password would also be stored on the browser. That would be security theatre and not really protect your links.

I am working on something that will make this less of an inconvenience while maintaining the projects user privacy goals, but thats not something i will have ready soon. hint: https://solidproject.org/

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

No branches or pull requests

2 participants