Getting Started
__CAPGO_KEEP_0__ 설치 단계와 이 플러그인의 전체 마크다운 가이드가 포함된 설정 지시 복사하기
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
import 제목import { IntuneMAM } from '@capgo/capacitor-intune';acquireToken
__CAPGO_KEEP_0__ OverviewacquireToken 제목
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.acquireToken({} as AcquireTokenOptions);acquireTokenSilent
acquireTokenSilent이전으로 로그인 한 사용자의 MSAL 캐시에서 토큰을 가져옵니다.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.acquireTokenSilent({} as AcquireTokenSilentOptions);registerAndEnrollAccount
registerAndEnrollAccount이전으로 인증된 계정을 Intune과 등록하고 등록을 시작합니다.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.registerAndEnrollAccount({} as RegisterAndEnrollAccountOptions);loginAndEnrollAccount
loginAndEnrollAccountIntune에서 사용자 인증 및 등록을 요청하지 않고 앱 토큰을 요청하기 전에 사용자를 등록합니다.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.loginAndEnrollAccount();enrolledAccount
enrolledAccount현재 등록된 Intune 계정을 반환합니다.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.enrolledAccount();deRegisterAndUnenrollAccount
“deRegisterAndUnenrollAccount” 섹션Intune에서 계정을 해지하고 해당하는 경우 선택적 삭제를 트리거합니다.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.deRegisterAndUnenrollAccount({} as IntuneMAMUser);logoutOfAccount
“logoutOfAccount” 섹션MSAL에서 사용자를 로그아웃시키며 Intune 계정을 해지하지 않습니다.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.logoutOfAccount({} as IntuneMAMUser);appConfig
“appConfig” 섹션관리 계정의 Intune 앱 구성 정보를远端에서 가져옵니다.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.appConfig({} as IntuneMAMUser);getPolicy
“getPolicy” 섹션관리 계정의 현재 유효한 Intune 앱 보호 정책을 가져옵니다.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.getPolicy({} as IntuneMAMUser);groupName
그룹 이름 제목앱 구성 값이 존재할 때 해당 값을 해결하는 편리한 도우미입니다. GroupName 클립보드 복사
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.groupName({} as IntuneMAMUser);Return the native Intune and MSAL SDK versions bundled by this plugin.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.sdkVersion();displayDiagnosticConsole
원시 Intune 디아그노스틱 UI를 표시합니다.클립보드 복사
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.displayDiagnosticConsole();protectedTokens
Type ReferenceAcquireTokenOptions
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
Intune MAM 토큰 취득export 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
등록 및 등록 계정 옵션export interface RegisterAndEnrollAccountOptions { /** * Microsoft Entra object ID returned by `acquireToken`. */ accountId: string;}IntuneMAMUser
Intune MAM 사용자export interface IntuneMAMUser { accountId: string; accountIdentifier?: string; username?: string; tenantId?: string; authority?: string;}IntuneMAMAppConfig
__CAPGO_KEEP_1__export interface IntuneMAMAppConfig { accountId: string; fullData: Record<string, string>[]; values: Record<string, string>; conflicts: string[];}IntuneMAMPolicy
__CAPGO_KEEP_2__export interface IntuneMAMPolicy { accountId: string; isPinRequired?: boolean; isManagedBrowserRequired?: boolean; isScreenCaptureAllowed?: boolean; isContactSyncAllowed?: boolean; isAppSharingAllowed?: boolean; isFileEncryptionRequired?: boolean; notificationPolicy?: string;}IntuneMAMGroupName
__CAPGO_KEEP_3__export interface IntuneMAMGroupName { accountId: string; groupName?: string;}IntuneMAMVersionInfo
__CAPGO_KEEP_4__export interface IntuneMAMVersionInfo { platform: 'ios' | 'android'; intuneSdkVersion: string; msalVersion?: string;}IntuneMAMChangeEvent
__CAPGO_KEEP_5__export interface IntuneMAMChangeEvent { accountId?: string;}__CAPGO_KEEP_6__
Section titled “Source Of Truth”이 페이지는 플러그인의 src/definitions.ts. Re-run the sync when the public API changes upstream.
Getting Started에서 계속하기
Section titled “Getting Started에서 계속하기”Capacitor를 사용하는 경우 Getting Started Capacitor를 사용하여 대시보드와 API를 계획하고 운영할 경우, API를 Using @capgo/capacitor-intune Capacitor의 native capability을 사용하는 경우 Using @capgo/capacitor-intune, API Overview API의 implementation detail을 설명하는 API Overview, __CAPGO_KEEP_0__ Introduction API Keys API Keys Devices Edit page