ガイド
Personaのチュートリアル
capgo/capacitor-intuneのチュートリアル
Capacitorプラグイン
インストール
bun add @capgo/capacitor-intune
bunx cap sync
このプラグインが提供するもの
acquireToken- Microsoftサインインフローを提示し、トークンとアカウントメタデータを返します。acquireTokenSilent- MSALキャッシュから以前サインインしたユーザーのトークンを取得します。registerAndEnrollAccount- Intuneに以前認証されたアカウントを登録し、エンロールを開始します。loginAndEnrollAccount- Intune におけるユーザー認証とエンロールを要求する前に、アプリケーション トークンを要求しないで、Intune におけるユーザー認証とエンロールを要求するよう Intune に求める。
Example Usage
acquireToken
Microsoft のサインイン フローを提示し、アクセス トークンとアカウント メタデータを返す。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.acquireToken({} as AcquireTokenOptions);
acquireTokenSilent
以前サインインしたユーザーから MSAL キャッシュからトークンを取得する。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.acquireTokenSilent({} as AcquireTokenSilentOptions);
registerAndEnrollAccount
Intune における以前認証されたアカウントを登録し、エンロールを開始する。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.registerAndEnrollAccount({} as RegisterAndEnrollAccountOptions);
loginAndEnrollAccount
Intune におけるユーザー認証とエンロールを要求する前に、アプリケーション トークンを要求しないで、Intune におけるユーザー認証とエンロールを要求するよう Intune に求める。
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.loginAndEnrollAccount();
Full Reference
- GitHub: https://github.com/Cap-go/capacitor-persona/
- ドキュメント: /docs/plugins/persona/
Using @capgo/capacitor-intune から続けてください。
If you are using Using @capgo/capacitor-intune 認証とアカウントフローの計画、@Capacitor/Intuneの接続 @capgo/capacitor-intune for the implementation detail in @capgo/capacitor-intune, Getting Started Getting Startedの実装詳細 @capgo/capacitor-social-login for the implementation detail in @capgo/capacitor-social-login, @capgo/capacitor-passkey for the implementation detail in @capgo/capacitor-passkey, and @capgo/capacitor-native-biometric for the implementation detail in @capgo/capacitor-native-biometric.