wiki-v1 icon indicating copy to clipboard operation
wiki-v1 copied to clipboard

Allow guest without login

Open mdanetzky opened this issue 7 years ago • 8 comments

Wiki.js always prompts for user login

There should be a way to allow everyone to see wiki pages without the need to log in

in config.yml set

public: true 
auth:
  defaultReadAccess: true
  local:
    enabled: true

observe login still popping up.

mdanetzky avatar Jan 22 '18 07:01 mdanetzky

Setting public: true will allow guest viewing. Have you restarted Wiki.js after making the change?

NGPixel avatar Jan 23 '18 05:01 NGPixel

Yes, I did restart it. I even upgraded the wiki.js (and lost all the pages in the process).

mdanetzky avatar Jan 23 '18 06:01 mdanetzky

All content is stored in /repo folder, which is kept in sync with your remote git. The only way to loose your pages is that you delete the repo folder AND didn't configure the remote git sync.

NGPixel avatar Jan 27 '18 16:01 NGPixel

We know that now! We assumed, that the wiki/tools/docker-compose.yml creates all mutable volumes automatically. This is not true. We have learned our lesson the hard way and will not trust these files in the future. Back to main topic - public wiki is not working - so we decided to publish markdown using other means.

mdanetzky avatar Jan 27 '18 17:01 mdanetzky

Nobody else has this issue so you must be doing something wrong.

  • Can you share your docker-compose.yml and config.yml with private info removed?
  • In the wiki, under Account > Users, is the Guest account listed? What are the access rights of that user?

NGPixel avatar Jan 27 '18 19:01 NGPixel

It is https://github.com/Requarks/wiki/blob/master/tools/docker-compose.yml It was the default Guest user, we haven't change it.

mdanetzky avatar Jan 28 '18 02:01 mdanetzky

I have the same (or similar?) problem.

public: true

auth:
  defaultReadAccess: false
  local:
    enabled: true

When entering the top URL in the browser I get the "Forbidden" sign:

bild

mbitsnbites avatar Nov 09 '18 11:11 mbitsnbites

Related to issue #143

If you set "public: true" after first starting the site / container, you'll need to edit / wipe the MongoDB database to remove the guest account. It needs to be recreated with the public permission.

unquietwiki avatar Dec 28 '18 10:12 unquietwiki