> For the complete documentation index, see [llms.txt](https://docs.fireboom.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fireboom.io/huan-jing-zhun-bei/shen-fen-ren-zheng-oidc.md).

# 身份认证 OIDC

### Authing

进入Authing官网<https://console.authing.cn/，在应用-自建应用页面，创建一个自建应用>

<figure><img src="/files/z9t8npjPBPpD8JbjVnWD" alt=""><figcaption></figcaption></figure>

查看已创建应用的配置信息

<figure><img src="/files/s8JuDPupdvao7lQhKWUy" alt=""><figcaption></figcaption></figure>

配置登录回调 URL：<http://localhost:9991/auth/cookie/callback/authing（其中auth0可修改为其他）>

<figure><img src="/files/RnLa4KPzh38RMxlhIMJi" alt=""><figcaption></figcaption></figure>

在飞布身份验证模块，进行新增身份验证操作，将Authing中获取的信息填写至对应的输入框中，保存完成即可（新增页面的供应商ID对应登录回调地址中的authing）

<figure><img src="/files/MwAWr2TBE2JaNTKtp3j7" alt=""><figcaption></figcaption></figure>

### Auth0

进入Auth0官网<https://manage.auth0.com/，在Applications页面选择或新建一个应用>

<figure><img src="/files/wJUIR7gOub64tgbcLCUH" alt=""><figcaption></figcaption></figure>

查看已创建应用的配置信息

<figure><img src="/files/PB1KuCnLPBMJ9SRRmrhA" alt=""><figcaption></figcaption></figure>

配置Allowed Callback URLs：<http://localhost:9991/auth/cookie/callback/auth0（其中auth0可修改为其他）>

<figure><img src="/files/c1EX3pJRyZHnRtGmRCAk" alt=""><figcaption></figcaption></figure>

在飞布身份验证模块，进行新增身份验证操作，将Auth0中获取的信息填写至对应的输入框中，保存完成即可（新增页面的供应商ID对应Allowed Callback URLs中的auth0）

<figure><img src="/files/9EMQcPd7SBr4bbhHiXjN" alt=""><figcaption></figcaption></figure>

### 自部署Casdoor

进入casdoor主页，点击应用入口，进行添加应用操作

![image](/files/6VadZLwQ0ZHu4oMUSe88)

在添加应用页面，可以对默认生成的名称等信息进行修改操作，Access Token格式需修改为JWT-Empty，完成注册项的配置后进行保存操作

![image](/files/ig5ZcVaQ2DT2cAPqJbDT)

查看已创建应用的配置信息

![image](/files/ROCgBynWS8bQgoZjjbk9)

在飞布身份验证模块，进行新增身份验证操作，将Casdoor中获取的信息填写至对应的输入框中，保存完成即可（新增页面的供应商ID对应登录回调地址中的casdoortest）

![image](/files/ugdBkFkuZkUumrAJ27yI)

在Casdoor中配置登录回调 URL：<http://localhost:9991/auth/cookie/callback/casdoortest（其中casdoortest对应飞布中的供应商ID）>

![image](https://user-images.githubusercontent.com/31681290/231049076-f35f1a23-de64-4758-8a7a-c72b648a273e.png)

### 自部署Logto

Logoto 作为 Auth0 的开源替代方案，致力于为所有企业和个人提供面向未来的身份认证体系。我们以 Logto 的开源版本为例介绍如何接入 Fireboom。

1. 按照 [Github 中的说明](https://github.com/logto-io/logto#launch-logto)安装好 Logto，打开 <http://localhost:3002> 访问 Logto 后台并初始化一个管理员账号\\

   <figure><img src="/files/7RWqB0Uky0jL76Kugjw4" alt=""><figcaption></figcaption></figure>
2. 登录后点击这里切换下语言\
   ![](/files/WAPoOT4l1ueHzq7RcnJ7)
3. 点击“全部应用”，选择“传统网页应用”创建一个应用\\

   <figure><img src="/files/C3GtmrOrrFpatqUGSKjX" alt=""><figcaption></figcaption></figure>
4. 跳过示例，在应用信息页修改应用名称，并添加“重定向 URIs”，该值可以从 Fireboom 认证源页面获取到（在第5步图中可以看到登录回调地址为 <http://localhost:9991/auth/cookie/callback/logto> ）\\

   <figure><img src="/files/G7Qwm6asQgckQTVfoWoC" alt=""><figcaption></figcaption></figure>
5. 在 Fireboom 中添加一个身份认证源，配置信息如下\\

   <figure><img src="/files/xn5YeupzC8ZgVOVgX9Mi" alt=""><figcaption></figcaption></figure>
