Visitor Authentication
Set up custom authentication for your published content
Last updated
Set up custom authentication for your published content
Last updated
This feature is available on the Ultimate site plan.
Visitor authentication allows you to publish your content while requiring authentication from any visitors who want to view it. When enabled, GitBook lets your authentication provider handle who has access to the content.
Common use cases for visitor authentication include:
Publishing sensitive product documentation that should only be accessible to paying customers, sales prospects or partners.
Publishing internal knowledge base content that should only be accessible to employees of your company.
There are two methods you can choose from when setting up visitor authentication:
Installing one of our authentication integrations — we currently support Okta, Azure, and Auth0. We highly recommend this option if you’re using an authentication provider we support.
Create and host your own server to handle the authentication. Many different technologies can be used, but it’s up to you to code and maintain the solution you choose. Read the guides in our developer documentation to learn more.
To publish your docs with visitor authentication, head to the docs site you want to publish, click Publish, and choose the Visitor Authentication option.
If you’re using an external service to authenticate your users, follow the guides below to get up and running.
By default, your site will be indexed by search engines. You can alternatively choose to publish as unlisted — meaning the docs are still available to authorized, but they won’t be indexed by search engines such as Google.
Unlisted spaces can be particularly helpful if you want to publish a beta version of your docs, or do large-scale user testing without impacting your SEO with potentially duplicate content.