🌐
Gitbook
developer.gitbook.com › visitor-authentication › guides › custom-backend › implement-visitor-authentication-using-node
Implement Visitor Authentication using Node | GitBook Developer Documentation
May 23, 2024 - Your authentication server can now check the value of this field, and handle it accordingly: ... app.get('/', (req, res) => { const customerInfo = req.query.space === 'customer-a' ? CUSTOMER_A : CUSTOMER_B; const token = jwt.sign({}, customerInfo.jwtSigningKey, { expiresIn: '1h' }); const redirectURL = `${customerInfo.url}/${req.query.location || ''}?jwt_token=${token}`; res.redirect(redirectURL); }); Visitor Authentication works well with custom domains.
🌐
GitBook
gitbook.com › docs › publishing-documentation › embedding › using-with-authenticated-docs
Authentication | GitBook Documentation
December 5, 2025 - If your GitBook documentation requires authentication (e.g., visitor authentication via OIDC, Auth0, or a custom backend), the embed cannot access your docs content unless the user's authentication token is provided.
🌐
GitHub
github.com › swisstxt › gitbook-visitor-authenticator
GitHub - swisstxt/gitbook-visitor-authenticator
Used to authenticate and authorize AzureAD users to GitBook Spaces with the Visitor Authenticator Feature. User enters GitBook documentation site. GitBook redirects to this service via the "Fallback URL".
Author: swisstxt
🌐
GitBook
gitbook.com › docs › publishing-documentation › visitor-authentication › setting-up-a-custom-backend
Setting up a custom backend | GitBook Documentation
April 10, 2025 - Validate user credentials and authenticate them. Generate and sign a JSON Web Token (JWT) upon successful authentication.
🌐
GitBook
gitbook.com › features › authenticated-access
GitBook Visitor Auth – Publish protected docs for authorized users only
Once enabled, you can set up your custom backend that creates and signs a JSON Web Token (JWT) upon successful authentication and redirects users back to GitBook. Find out more about setting up a custom authentication backend in our docs.
🌐
Gitbook
developer.gitbook.com › getting-started › guides › implement-visitor-authentication-using-node
Implement Visitor Authentication using Node - GitBook Integration Platform
Once you've created the key, you need to include it as the value of a query parameter named jwt_token the URL of the GitBook content you wish the user to have access to (see redirectURL) Here's a very simple Express application for signing keys and redirecting users: ... Finally, within link and domain settings in the visibility menu, you can configure a fallback URL. When someone directly accesses your space without the necessary token, GitBook uses the fallback URL to redirect the visitor to a custom URL so that you can authenticate them.
🌐
GitHub
github.com › GitbookIO › va-nextjs-clerk
GitHub - GitbookIO/va-nextjs-clerk: Demo application using Next.js, Clerk and implementing Visitor Authentication with GitBook · GitHub
It allows to define the secret key used to sign the token so that GitBook can verify the validity of JWT tokens. ... Go to your Clerk dashboard. In your Clerk application, go to JWT templates.
Forked by 2 users
Languages: TypeScript 75.7% | CSS 14.1% | JavaScript 10.2%
🌐
GitHub
github.com › GitbookIO › example-visitor-authentication › blob › master › README.md
example-visitor-authentication/README.md at master · GitbookIO/example-visitor-authentication
This repository is a small example of an application implementing the GitBook "Visitor authentication". ... yarn GITBOOK_URL=https://mycompany.gitbook.io/myspace/ GITBOOK_JWT_KEY=<key from your repository> node ./server.js
Author: GitbookIO
🌐
GitHub
github.com › GitbookIO › example-visitor-authentication
GitHub - GitbookIO/example-visitor-authentication: Minimalist NodeJS application for "Visitor Authentication"
This repository is a small example of an application implementing the GitBook "Visitor authentication". ... yarn GITBOOK_URL=https://mycompany.gitbook.io/myspace/ GITBOOK_JWT_KEY=<key from your repository> node ./server.js
Starred by 10 users
Forked by 3 users
Languages: JavaScript 100.0% | JavaScript 100.0%
Find elsewhere
🌐
GitBook
gitbook.com › docs › guides › docs-personalization-and-authentication › how-to-personalize-your-gitbook-site-using-auth0-and-adaptive-content
How to personalize your GitBook site using Auth0 and adaptive content | Guides | GitBook Documentation
December 17, 2025 - Back in GitBook, enable the toggle labeled Include claims in JWT token, then click Save. Finally, head to the Audience tab in your site settings. Under Access, choose Authenticated Access, and select Auth0 from the dropdown.
🌐
GitHub
github.com › go-siris › gitbook › blob › master › jwt.md
gitbook/jwt.md at master · go-siris/gitbook
You only get this message if you're authenticated"} // get the *jwt.Token which contains user information using: // user := myJwtMiddleware.Get(ctx) or context.Get("jwt").(*jwt.Token) ctx.JSON(iris.StatusOK, response) }
Author: go-siris
🌐
Gitbook
iothentix.gitbook.io › developer-guide › json-web-token-jwt › authentication-jwt
Authentication JWT | Developer Guide - IoThentix
JSON Web Token (JWT) Authentication JWT · Update Public Key JWT · Proof of Possession (PoP) Proof of PossessionPowered by GitBook · On this page · For the complete documentation index, see llms.txt. This page is also available as Markdown. CopyOn this page ·
🌐
GitBook
gitbook.com › docs › developers › gitbook-api › authentication
Authentication | Developers | GitBook Documentation
March 20, 2025 - You can view and manage your access tokens in the Developer settings of your GitBook user account. API requests are authenticated using the Bearer Auth scheme.
🌐
GitBook
gitbook.com › docs › publishing-documentation › visitor-authentication › setting-up-oidc
Setting up OIDC | GitBook Documentation
March 25, 2025 - So, entering the least permissive scope is the best security recommendation. ... Now, in GitBook, close the integrations modal and click on the Manage site button. Navigate to Audience, select Visitor Authentication, and choose OIDC as the backend.
🌐
GitHub
github.com › vaquarkhan › authorization-recipes-a-free-gitbook › blob › main › README.md
authorization-recipes-a-free-gitbook/README.md at main · vaquarkhan/authorization-recipes-a-free-gitbook
API key should send in the ... :JWT Tokens are actually a full JSON Object that has been base64 encoded and then signed with either a symmetric shared key or using a public/private key pair....
Author: vaquarkhan
🌐
GitBook
gitbook.com › docs › guides › docs-personalization-and-authentication › setting-up-adaptive-content
How to personalize your GitBook site using cookies and adaptive content | Guides | GitBook Documentation
December 17, 2025 - In order to pass data securely through a cookie, you’ll need to send the data as a JSON Web Token from your application in a cookie named gitbook-visitor-token tied to your domain.
🌐
GitBook
gitbook.com › docs › site-access › authenticated-access
Authenticated access | GitBook Documentation
April 23, 2026 - Authenticated access allows you to publish your content while requiring authentication from any visitors who want to view it.