News for hackers. Stuff that matters.
Re:Adding Identity to Docusaurus by andreacavagna on Monday July 31, 2023 @09:35AM (#36942235)
It also can prevent some documentation pages to be under login only?
Re:Adding Identity to Docusaurus by snagg on Monday August 07, 2023 @11:23AM (#37035723)
Hi,

sorry for the late reply, just saw this. Do you mean to have certain pages public while others are private?

If so, yes. You can make login optional (using the slashID.forceLogin parameter. See here: https://github.com/slashid/docusaurus-slashid-login/blob/mai...) and restrict certain pages to only logged-in users. You can also use user groups/roles to further segment access to pages (https://www.slashid.dev/blog/groups-react/).

To get the slashID.orgID parameter for the theme you can sign-up here: https://console.slashid.dev/signup

If you send me an email at [email protected] and we can add you to our Slack in case you have any issues with it.