ラーク
注
これはラーク OAuthプロバイダーを設定する例です。
ステップ1:ラークアプリケーションを作成する
まず、ラークオープンプラットフォームで新しいアプリケーションを作成し、有効にする必要があります。 App IDとApp Secretはアプリケーションの基本情報で見つけることができます。

次に、アプリケーションのセキュリティ設定にリダイレクトURL <your-casdoor-domain>/callback(例:http://localhost:7001/callback)を追加します。

ステップ2:ラークOAuthプロバイダーを作成する
これでCasdoorにラークOAuthプロバイダーを作成できます。 必要な情報を入力してください。
| 名前 | ラーク内の名前 |
|---|---|
| Category | Choose OAuth |
| Type | Choose Lark |
| Client ID | App ID obtained from Step 1 |
| Client secret | App Secret obtained from Step 1 |

これで、サードパーティのサービスとしてラークを使用して認証を完了することができます。
Username Handling
Casdoor uses a fallback mechanism to ensure user accounts are created successfully even when Lark's OAuth response has incomplete data. The username field follows this priority:
- UserId - Primary identifier used when available
- UnionId - Links users across multiple Lark organizations
- OpenId - Always present, used as final fallback
This ensures authentication succeeds reliably since OpenId is guaranteed in Lark's OAuth response.