Skip to content

시작하기

GitHub

설치

설치

AI-assisted 설정을 사용하여 플러그인을 설치할 수 있습니다. 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을 선호한다면, 다음 명령어를 실행하고 아래의 플랫폼별 지침을 따르세요:

터미널 창
bun add @capgo/capacitor-intune
bunx cap sync
import { IntuneMAM } from '@capgo/capacitor-intune';

Microsoft 로그인 흐름을 보여주고 액세스 토큰과 계정 메타데이터를 반환합니다.

import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.acquireToken({} as AcquireTokenOptions);

이전으로 로그인 한 사용자의 MSAL 캐시에서 토큰을 획득합니다.

import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.acquireTokenSilent({} as AcquireTokenSilentOptions);

Intune 에서 이전으로 인증 된 계정을 등록하고 등록을 시작합니다.

import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.registerAndEnrollAccount({} as RegisterAndEnrollAccountOptions);

앱 토큰을 요청하지 않고도 사용자를 인증하고 등록하는 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);

관리 계정의 현재 유효한 Intune 앱 보호 정책을 가져옵니다.

import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.getPolicy({} as IntuneMAMUser);

관리 계정의 구성 값을 해결하는 편의 함수입니다. 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();

클립보드에 복사

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

IntuneMAMAcquireToken 섹션
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

RegisterAndEnrollAccountOptions 섹션
export interface RegisterAndEnrollAccountOptions {
/**
* Microsoft Entra object ID returned by `acquireToken`.
*/
accountId: string;
}

IntuneMAMUser

IntuneMAMUser
export interface IntuneMAMUser {
accountId: string;
accountIdentifier?: string;
username?: string;
tenantId?: string;
authority?: string;
}

IntuneMAMAppConfig

IntuneMAMAppConfig
export interface IntuneMAMAppConfig {
accountId: string;
fullData: Record<string, string>[];
values: Record<string, string>;
conflicts: string[];
}

IntuneMAMPolicy

IntuneMAMPolicy
export interface IntuneMAMPolicy {
accountId: string;
isPinRequired?: boolean;
isManagedBrowserRequired?: boolean;
isScreenCaptureAllowed?: boolean;
isContactSyncAllowed?: boolean;
isAppSharingAllowed?: boolean;
isFileEncryptionRequired?: boolean;
notificationPolicy?: string;
}

IntuneMAMGroupName

IntuneMAMGroupName
export interface IntuneMAMGroupName {
accountId: string;
groupName?: string;
}

IntuneMAMVersionInfo

IntuneMAMVersionInfo
export interface IntuneMAMVersionInfo {
platform: 'ios' | 'android';
intuneSdkVersion: string;
msalVersion?: string;
}

IntuneMAMChangeEvent

IntuneMAMChangeEvent
export interface IntuneMAMChangeEvent {
accountId?: string;
}

실질적인 출처

실질적인 출처 섹션

이 페이지는 플러그인의 src/definitions.tsAPI이 업스트림에서 변경될 때마다 다시 싱크를 실행하세요.

Getting Started에서 계속

Getting Started에서 계속

이 플러그인을 사용하는 경우 Getting Started 계획 대시보드 및 API 운영을 위해 Using @capgo/capacitor-intune Using @capgo/capacitor-intune API 개요 API 구현 세부 정보 소개 __CAPGO_KEEP_0__ 구현 세부 정보 API 키 API 구현 세부 정보 및 장치 __CAPGO_KEEP_0__ 구현 세부 정보