메인 콘텐츠로 건너뛰기
플러그인으로 돌아가기
@capgo/capacitor-intune
튜토리얼
@capgo/capacitor-intune

Intune

Capacitor에서 Microsoft Intune MAM, 앱 보호 정책, 앱 구성 및 MSAL 인증을 사용합니다.

가이드

인튜브(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

이 플러그인이 제공하는 것

  • acquireToken - Microsoft 로그인 흐름을 제공하고 액세스 토큰 및 계정 메타데이터를 반환합니다.
  • acquireTokenSilent - 이전에 로그인 한 사용자의 MSAL 캐시에서 토큰을 획득합니다.
  • registerAndEnrollAccount - 이전에 인증 된 계정을 인튜브(Intune)와 등록하고 등록을 시작합니다.
  • loginAndEnrollAccount - 사용자 인증 및 등록을 위해 Intune에 앱 토큰을 요청하기 전에 사용자를 인증하고 등록하도록 요청하세요.

예시 사용

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에 요청하세요.

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

await IntuneMAM.loginAndEnrollAccount();

전체 참조

Using @capgo/capacitor-intune에서 계속하세요.

Capacitor Intune 플러그인을 사용 중이라면 Using @capgo/capacitor-intune 인증 및 계정 흐름을 계획하고 @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-intune과 연결합니다. @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.