Hacker News new | past | comments | ask | show | jobs | submit login
Adding Identity to Docusaurus (slashid.dev)
4 points by gk1 10 months ago | hide | past | favorite | 2 comments



It also can prevent some documentation pages to be under login only?


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 vincenzo@slashid.dev and we can add you to our Slack in case you have any issues with it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: