# 身份认证 OIDC

### Authing

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

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

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

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

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

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

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

<figure><img src="/files/1SzOpvnmyBwXNbrpIEIl" alt=""><figcaption></figcaption></figure>

### Auth0

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

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

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

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

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

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

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

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

### 自部署Casdoor

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

![image](/files/Jp3a2BcnGzsTjNGAAL1q)

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

![image](/files/mQJTPHOOz725nKHpdbMQ)

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

![image](/files/NbIE9LVOhbTvo9P6xqCw)

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

![image](/files/c8z8mufqB0nOuodmbgUg)

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

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

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

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


---

# 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://docs.fireboom.io/v1.0/huan-jing-zhun-bei/shen-fen-ren-zheng-oidc.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.
