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

Casdoor Authenticator アプリの使用

このガイドでは、Casdoor Authenticator のインストール方法、Casdoor インスタンスへの接続方法、および他の認証アプリからのアカウント移行手順を解説します。


学習目標​

  • Android でアプリをインストールするか、iOS 向けにビルドします。
  • アプリを Casdoor に接続し、アカウントを同期します。
  • Google Authenticator や Microsoft Authenticator からアカウントをインポートします。

必要なもの​

  • Android または iOS デバイス
  • アカウントを同期する場合: Casdoor インスタンスとその上のアカウント

Casdoor Authenticator について​

Casdoor Authenticator は、Google Authenticator や Microsoft Authenticator と同様に、時間ベースのワンタイムパスワード (TOTP) を生成するオープンソースアプリ (ソースコード) です。多要素認証 (MFA) の第2要素として使用されます。

TOTP コードは、アプリとサービス間で共有されるシークレットと現在時刻から計算されます (RFC 6238)。コードの有効期間は30秒で、生成にはネットワーク接続が必要です。

FeatureDescription
MFAGenerates TOTP codes for any service that supports them
Offline useGenerates codes without an internet connection
SyncSyncs accounts between devices through Casdoor
PrivacyEncrypts the stored data
AndroidiOS
androidios

アプリのインストール​

Casdoor でアカウントストレージを有効にする​

このステップはオプションです。アプリの TOTP アカウントを Casdoor に保存し、デバイス間で同期するには、Casdoor 管理コンソールの組織設定にある Account items に MFA accounts を追加してください。

MFA accounts setting in Casdoor

アプリを Casdoor に接続する​

アプリを開き、次の3つのいずれかの方法で接続します:

メソッドSteps
ManualTap Enter Server Manually, enter server URL, client ID, and organization name, then sign in.
QR codeTap Scan QR Code, scan the QR from My Account → MFA accounts on the Casdoor server.
DemoTap Try Demo Server to use the preconfigured demo instance.

Connection options in the app

アプリに TOTP コードが表示され、アカウントの追加や管理が可能になります。

他のアプリからアカウントをインポートする​

Google Authenticator からのインポート​

  1. Google Authenticator でメニューを開き、Transfer accounts をタップします。

  2. アカウントを選択し、Export をタップします。Google Authenticator に QR コードが表示されます。

    Export screen of Google Authenticator

  3. Casdoor Authenticator でその QR コードをスキャンします。

    Recording of the import from Google Authenticator

Microsoft Authenticator からのインポート​

このインポートは Android のみで動作し、root 権限が必要です。これは Microsoft Authenticator のデータがプライベートディレクトリ /data/data/com.azure.authenticator/databases/ にあるためです。

  1. Microsoft Authenticator がインストールされているデバイスで、そのディレクトリから PhoneFactor データベースファイルをコピーします。

  2. Casdoor Authenticator でインポートメニューを開き、Import from Microsoft Authenticator をタップします。

  3. PhoneFactor ファイルを選択します。アプリが TOTP アカウントをインポートします。

    Recording of the import from Microsoft Authenticator

関連項目​