HackerTrans
TopNewTrendsCommentsPastAskShowJobs

Adding Identity to Docusaurus(slashid.dev)

4 points·by gk1·قبل 3 سنوات·2 comments
slashid.dev
Adding Identity to Docusaurus

https://www.slashid.dev/blog/docusaurus-identity/

2 comments

andreacavagna·قبل 3 سنوات
It also can prevent some documentation pages to be under login only?
snagg·قبل 3 سنوات
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.