メインコンテンツにスキップ

ラーク

これはラーク OAuthプロバイダーを設定する例です。

ステップ1:ラークアプリケーションを作成する

まず、ラークオープンプラットフォームで新しいアプリケーションを作成し、有効にする必要があります。 App IDApp Secretはアプリケーションの基本情報で見つけることができます。

新しいアプリを作成する

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

リダイレクトURLを追加する

ステップ2:ラークOAuthプロバイダーを作成する

これでCasdoorにラークOAuthプロバイダーを作成できます。 必要な情報を入力してください。

名前ラーク内の名前
CategoryChoose OAuth
TypeChoose Lark
Client IDApp ID obtained from Step 1
Client secretApp Secret obtained from Step 1

ラークOAuthプロバイダーを作成する

これで、サードパーティのサービスとしてラークを使用して認証を完了することができます。

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:

  1. UserId - Primary identifier used when available
  2. UnionId - Links users across multiple Lark organizations
  3. OpenId - Always present, used as final fallback

This ensures authentication succeeds reliably since OpenId is guaranteed in Lark's OAuth response.