시작하기
설치 단계와 이 플러그인의 전체 마크다운 가이드를 포함한 설정 명령어를 복사하세요.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-intune`, `@capgo/capacitor-persona`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/persona/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
bun add @capgo/capacitor-intunebunx cap syncImport
__CAPGO_KEEP_0__ importimport { IntuneMAM } from '@capgo/capacitor-intune';API 개요
API 개요acquireToken
__CAPGO_KEEP_1__Microsoft 로그인 흐름을 보여주고 접근 토큰 및 계정 메타데이터를 반환합니다.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.acquireToken({} as AcquireTokenOptions);acquireTokenSilent
__CAPGO_KEEP_1__로그인 한 사용자의 이전에 로그인 한 사용자에 대한 토큰을 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을 요청합니다.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.loginAndEnrollAccount();enrolledAccount
등록된 계정현재 등록된 Intune 계정을 반환합니다.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.enrolledAccount();deRegisterAndUnenrollAccount
등록 해제 및 등록 해제 계정Intune에서 계정을 등록 해제하고 선택적 삭제를 트리거합니다.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.deRegisterAndUnenrollAccount({} as IntuneMAMUser);logoutOfAccount
로그아웃MSAL에서 사용자를 로그아웃합니다. Intune 계정은 등록되지 않습니다.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.logoutOfAccount({} as IntuneMAMUser);appConfig
앱 설정관리 계정의远程 Intune 앱 구성 정보를 가져옵니다.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.appConfig({} as IntuneMAMUser);getPolicy
정책 가져오기관리 계정의 현재 유효한 Intune 앱 보호 정책을 가져옵니다.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.getPolicy({} as IntuneMAMUser);groupName
그룹 이름관리 계정의 app 구성 정보가 있는 경우 app 구성 정보를 해독하는 편의 함수입니다. GroupName 클립보드에 복사
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.groupName({} as IntuneMAMUser);sdkVersion
sdkVersion 섹션이 플러그인은 native Intune 및 MSAL SDK 버전을 번들로 제공합니다.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.sdkVersion();displayDiagnosticConsole
displayDiagnosticConsole 섹션native Intune 진단 UI를 표시합니다.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.displayDiagnosticConsole();타입 참조
타입 참조 섹션AcquireTokenOptions
AcquireTokenOptions 섹션인터랙티브 토큰 취득 옵션
export interface AcquireTokenOptions { /** * Scopes to request, for example `https://graph.microsoft.com/.default`. */ scopes: string[];
/** * When true, always show the Microsoft account picker or sign-in UI. * * @default false */ forcePrompt?: boolean;
/** * Optional login hint for the interactive sign-in flow. */ loginHint?: string;}IntuneMAMAcquireToken
IntuneMAMAcquireTokenexport interface IntuneMAMAcquireToken { accountId: string; accessToken: string; accountIdentifier: string; idToken?: string; username?: string; tenantId?: string; authority?: string;}AcquireTokenSilentOptions
AcquireTokenSilentOptions침묵 토큰 취득 옵션입니다.
export interface AcquireTokenSilentOptions { /** * Scopes to request, for example `https://graph.microsoft.com/.default`. */ scopes: string[];
/** * Microsoft Entra object ID returned by `acquireToken` or `enrolledAccount`. */ accountId: string;
/** * When true, bypass the cached access token and request a fresh one. * * @default false */ forceRefresh?: boolean;}RegisterAndEnrollAccountOptions
RegisterAndEnrollAccountOptionsexport interface RegisterAndEnrollAccountOptions { /** * Microsoft Entra object ID returned by `acquireToken`. */ accountId: string;}IntuneMAMUser
IntuneMAMUserexport interface IntuneMAMUser { accountId: string; accountIdentifier?: string; username?: string; tenantId?: string; authority?: string;}IntuneMAMAppConfig
IntuneMAMAppConfigexport interface IntuneMAMAppConfig { accountId: string; fullData: Record<string, string>[]; values: Record<string, string>; conflicts: string[];}IntuneMAMPolicy
IntuneMAMPolicyexport interface IntuneMAMPolicy { accountId: string; isPinRequired?: boolean; isManagedBrowserRequired?: boolean; isScreenCaptureAllowed?: boolean; isContactSyncAllowed?: boolean; isAppSharingAllowed?: boolean; isFileEncryptionRequired?: boolean; notificationPolicy?: string;}IntuneMAMGroupName
Intune MAM 그룹 이름 섹션export interface IntuneMAMGroupName { accountId: string; groupName?: string;}IntuneMAMVersionInfo
Intune MAM 버전 정보 섹션export interface IntuneMAMVersionInfo { platform: 'ios' | 'android'; intuneSdkVersion: string; msalVersion?: string;}IntuneMAMChangeEvent
Intune MAM 이벤트 변경 섹션export interface IntuneMAMChangeEvent { accountId?: string;}실제 데이터 원천
실제 데이터 원천 섹션이 페이지는 플러그인의 src/definitions.ts업스트림에서 pubic API이 변경되면 다시 싱크를 실행하세요.