시작하기
설치 단계와 이 플러그인의 전체 마크다운 가이드를 포함한 설정 프롬프트를 복사하세요.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-intune`
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/intune/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.
AI-Assisted Setup을 사용하여 플러그인을 설치할 수 있습니다. AI 도구에 Capgo 스킬을 추가하려면 다음 명령어를 사용하세요:
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins다음 프롬프트를 사용하세요:
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-intune` plugin in my project.만약 Manual Setup을 선호한다면, 플러그인을 설치하기 위해 다음 명령어를 실행하고 아래에 플랫폼에 따라 설명된 지침을 따르세요:
-
패키지를 설치하세요
__CAPGO_KEEP_0__ bun add @capgo/capacitor-intune -
__CAPGO_KEEP_0__
__CAPGO_KEEP_0__ bunx cap sync -
__CAPGO_KEEP_0__ __CAPGO_KEEP_0__ __CAPGO_KEEP_0__ __CAPGO_KEEP_0__ __CAPGO_KEEP_0__ __CAPGO_KEEP_0__
__CAPGO_KEEP_0__
요구 사항- Capacitor 8+
- 안드로이드(Intune) 안드로이드 SDK
12.0.3 - iOS(Intune) iOS SDK
21.5.1 - iOS 배포 대상
17.0+
Ionic의 Intune 문서에서는 현재 Xcode 26로 빌드된 앱에 대해 2026년 1월 19일截止일을 명시하고 있습니다. 따라서 Intune iOS SDK가 필요합니다. 21.1.0+. 이 플러그인은 이미 21.5.1.
기본 사용 방법
복사import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.addListener('appConfigChange', (result) => { console.log('App config changed', result.accountId);});
await IntuneMAM.addListener('policyChange', (result) => { console.log('Policy changed', result.accountId);});
const auth = await IntuneMAM.acquireToken({ scopes: ['https://graph.microsoft.com/.default'], loginHint: 'alex@example.com',});
await IntuneMAM.registerAndEnrollAccount({ accountId: auth.accountId,});
const appConfig = await IntuneMAM.appConfig({ accountId: auth.accountId,});
const policy = await IntuneMAM.getPolicy({ accountId: auth.accountId,});
console.log({ auth, appConfig, policy });인터랙티브 로그인 및 등록
인터랙티브 로그인 및 등록const auth = await IntuneMAM.acquireToken({ scopes: ['https://graph.microsoft.com/.default'],});
await IntuneMAM.registerAndEnrollAccount({ accountId: auth.accountId,});침묵 토큰 갱신
침묵 토큰 갱신const token = await IntuneMAM.acquireTokenSilent({ accountId: 'AAD_OBJECT_ID', scopes: ['https://graph.microsoft.com/.default'], forceRefresh: true,});현재 등록된 계정 읽기
현재 등록된 계정 읽기const user = await IntuneMAM.enrolledAccount();로그아웃 또는 선택적으로 지우기
로그아웃 또는 선택적으로 지우기await IntuneMAM.logoutOfAccount({ accountId: 'AAD_OBJECT_ID' });await IntuneMAM.deRegisterAndUnenrollAccount({ accountId: 'AAD_OBJECT_ID' });API 요약
제목 "API 요약"acquireToken(options): Microsoft 로그인 시작하고 토큰 및 계정 메타데이터 반환.acquireTokenSilent(options): 기존 계정에 대한 캐시된 토큰 읽기.registerAndEnrollAccount(options): Intune과 MSAL 계정 등록하고 등록을 트리거.loginAndEnrollAccount(): Intune이 로그인 및 등록 흐름을 제어.appConfig(user): 계정에 대한 Intune 앱 구성 값을 읽어라.getPolicy(user): 계정에 대한 현재 Intune 앱 보호 정책을 읽어라.groupName(user): 공통 config helper 값이 있는 경우 읽어라.GroupName: Intune 및 MSAL 버전을 패키지된 상태로 검사.sdkVersion()플랫폼 참고 사항
__CAPGO_KEEP_0__ 요약
플랫폼 참고 사항- 웹은 지원되지 않습니다.
- iOS와 Android 모두 native 프로젝트 구성이 필요합니다.
cap sync. - Azure 등록, Intune 정책 assign, 리다이렉트 URI, 권한은 앱별로 유지됩니다.
Getting Started에서 계속하기
Getting Started에서 계속하기이미 사용 중이라면 Getting Started를 사용하여 이동 및 기업 운영을 계획하고 연결하려면 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-intune Using @capgo/capacitor-intune native 기능을 사용하는 @capgo/capacitor-intune Capgo Enterprise Capgo Enterprise 제품 워크플로우에 대해 Ionic Enterprise 플러그인 대안 __CAPGO_KEEP_0__ Enterprise 플러그인 대안에 대해 Capgo 대안 Capgo 대안 제품 워크플로우에 대해, 및 Capgo 컨설팅 Capgo 컨설팅 제품 워크플로우에 대해