# Gitbook

#### **Integrating GitBook with JFW for Authentication**

GitBook is a popular documentation platform. To provide secure access to your documentation, you can integrate **JFW** for authentication.

<details>

<summary>GitBook</summary>

{% hint style="danger" %}
Waiting for the approve from GitBook (Mar 2025)
{% endhint %}

#### **Why Use JFW with GitBook?**

✔ **SSO (Single Sign-On):** Let users log in with their **Google, Microsoft, GitHub, etc.**\
✔ **Role-Based Access Control (RBAC):** Restrict access to certain users.\
✔ **Multi-Factor Authentication (MFA):** Enhance security with OTP codes.\
✔ **User Management:** Manage users in Auth0 and sync with GitBook.

#### **Authentication Methods**

GitBook supports **SSO via OpenID Connect (OIDC)**, which JFW fully supports.\
You can integrate JFW using the following:\
1️⃣ **OAuth 2.0 & OpenID Connect (OIDC)** (Recommended)\
2️⃣ **SAML 2.0** (For enterprise accounts) <mark style="color:red;">(updating)</mark>

</details>

### **Setting Up JFW with GitBook (OIDC)**

Visit [guide.jframework.io](https://guide.jframework.io) to learn how to integrate with GitBook.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jframework.gitbook.io/help/services/integration/gitbook.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
