Skip to main content
プラグインに戻る
@capgo/capacitor-intune
チュートリアル
@capgo/capacitor-intune

Intune

Microsoft Intune MAM、App Protection Policy、App Config、MSAL 認証用の Capacitor

ガイド

Intuneのチュートリアル

Using @capgo/capacitor-intune

Capacitor plugin for Microsoft Intune MAM enrollment, app protection policies, app config, and MSAL authentication.

このプラグインが提供するもの

bun add @capgo/capacitor-intune
bunx cap sync

- Microsoftのサインインフローを提示し、トークンとアカウントメタデータを返します。

  • acquireToken - MSALキャッシュから以前サインインしたユーザーのトークンを取得します。
  • acquireTokenSilent - Intuneに以前認証されたアカウントを登録し、エンロールを開始します。
  • registerAndEnrollAccount __CAPGO_KEEP_0__プラグインはMicrosoft Intune MAMエンロール、App Protection Policies、App Config、およびMSAL認証のために使用されます。
  • loginAndEnrollAccount - 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 におけるユーザーの認証とエンロールを要求するようにします。

import { IntuneMAM } from '@capgo/capacitor-intune';

await IntuneMAM.loginAndEnrollAccount();

Full Reference

Keep going from Using @capgo/capacitor-intune

If you are using Using @capgo/capacitor-intune 認証とアカウントフローの計画、Cloudflareの接続 @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.