Einstieg
Ein Setup-Prompt mit den Installationsanweisungen und der vollständigen Markdown-Dokumentation für diesen Plugin kopieren.
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.
Installieren
Abschnitt mit dem Titel „Installieren“Sie können unsere AI-gestützte Einrichtung verwenden, um das Plugin zu installieren. Fügen Sie die Capgo-Fähigkeiten zu Ihrem KI-Tool hinzu, indem Sie die folgende Befehl ausführen:
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-pluginsDann verwenden Sie die folgende Anfrage:
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-intune` plugin in my project.Wenn Sie eine manuelle Einrichtung bevorzugen, installieren Sie das Plugin, indem Sie die folgenden Befehle ausführen und die unten angegebenen Plattform-spezifischen Anweisungen befolgen:
bun add @capgo/capacitor-intunebunx cap syncImportieren
Abschnitt mit dem Titel „Importieren“import { IntuneMAM } from '@capgo/capacitor-intune';API Übersicht
Abschnitt mit dem Titel „API Übersicht“acquireToken
Abschnitt mit dem Titel „acquireToken“Präsentieren Sie das Microsoft-Anmeldeflow und geben Sie einen Zugriffstoken sowie die Kontoinformationen zurück.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.acquireToken({} as AcquireTokenOptions);acquireTokenSilent
Abschnitt mit dem Titel “acquireTokenSilent”Ein Token aus der MSAL-Cache für einen zuvor angemeldeten Benutzer abrufen.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.acquireTokenSilent({} as AcquireTokenSilentOptions);registerAndEnrollAccount
Abschnitt mit dem Titel “registerAndEnrollAccount”Ein zuvor authentifizierter Account bei Intune registrieren und die Einrichtung starten.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.registerAndEnrollAccount({} as RegisterAndEnrollAccountOptions);loginAndEnrollAccount
Abschnitt mit dem Titel “loginAndEnrollAccount”Intune auffordern, einen Benutzer ohne vorherige Anforderung eines App-Tokens zu authentifizieren und einzurichten.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.loginAndEnrollAccount();enrolledAccount
Abschnitt mit dem Titel “enrolledAccount”Die derzeitige bei Intune angemeldete Einrichtung zurückgeben, wenn eine verfügbar ist.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.enrolledAccount();deRegisterAndUnenrollAccount
Abschnitt mit dem Titel “deRegisterAndUnenrollAccount”Konto von Intune deregistrieren und selektive Wipe auslösen, wenn zutreffend.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.deRegisterAndUnenrollAccount({} as IntuneMAMUser);logoutOfAccount
Abschnitt mit dem Titel “logoutOfAccount”Benutzer ohne Entwirrung des Intune-Kontos aus MSAL ausloggen.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.logoutOfAccount({} as IntuneMAMUser);appConfig
Abschnitt mit dem Titel “appConfig”Remote-Intune-Anwendungs-Konfiguration für ein verwaltetes Konto abrufen.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.appConfig({} as IntuneMAMUser);getPolicy
Abschnitt mit dem Titel “getPolicy”Aktuell wirksame Intune-Anwendungs-Schutzrichtlinie für ein verwaltetes Konto abrufen.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.getPolicy({} as IntuneMAMUser);groupName
Abschnitt mit dem Titel “groupName”Hilfsfunktion, die den GroupName Konfigurationswert der Anwendung auflöst, wenn vorhanden.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.groupName({} as IntuneMAMUser);sdkVersion
Abschnitt mit dem Titel “sdkVersion”Rufen Sie die native Intune- und MSAL SDK-Versionen ab, die durch diesen Plugin aufgebaut werden.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.sdkVersion();displayDiagnosticConsole
Abschnitt mit dem Titel “displayDiagnosticConsole”Zeigen Sie die native Intune-Diagnose-UI an.
import { IntuneMAM } from '@capgo/capacitor-intune';
await IntuneMAM.displayDiagnosticConsole();Typenverweis
Abschnitt mit dem Titel “Typenverweis”AcquireTokenOptions
Abschnitt mit dem Titel „AcquireTokenOptions“Interaktive Token-Acquirierungsoptionen.
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
Abschnitt mit dem Titel „IntuneMAMAcquireToken“export interface IntuneMAMAcquireToken { accountId: string; accessToken: string; accountIdentifier: string; idToken?: string; username?: string; tenantId?: string; authority?: string;}AcquireTokenSilentOptions
Abschnitt mit dem Titel „AcquireTokenSilentOptions“Stille Token-Acquirierungsoptionen.
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
Abschnitt mit dem Titel „RegisterAndEnrollAccountOptions“export interface RegisterAndEnrollAccountOptions { /** * Microsoft Entra object ID returned by `acquireToken`. */ accountId: string;}IntuneMAMUser
Abschnitt mit dem Titel „IntuneMAMUser“export interface IntuneMAMUser { accountId: string; accountIdentifier?: string; username?: string; tenantId?: string; authority?: string;}IntuneMAMAppConfig
Abschnitt mit dem Titel “IntuneMAMAppConfig”export interface IntuneMAMAppConfig { accountId: string; fullData: Record<string, string>[]; values: Record<string, string>; conflicts: string[];}IntuneMAMPolicy
Abschnitt mit dem Titel “IntuneMAMPolicy”export interface IntuneMAMPolicy { accountId: string; isPinRequired?: boolean; isManagedBrowserRequired?: boolean; isScreenCaptureAllowed?: boolean; isContactSyncAllowed?: boolean; isAppSharingAllowed?: boolean; isFileEncryptionRequired?: boolean; notificationPolicy?: string;}IntuneMAMGroupName
Abschnitt mit dem Titel “IntuneMAMGroupName”export interface IntuneMAMGroupName { accountId: string; groupName?: string;}IntuneMAMVersionInfo
Abschnitt mit dem Titel “IntuneMAMVersionInfo”export interface IntuneMAMVersionInfo { platform: 'ios' | 'android'; intuneSdkVersion: string; msalVersion?: string;}IntuneMAMChangeEvent
Abschnitt mit dem Titel “IntuneMAMChangeEvent”export interface IntuneMAMChangeEvent { accountId?: string;}Quelle der Wahrheit
Abschnitt mit dem Titel “Quelle der Wahrheit”Diese Seite wurde aus dem Plugin generiert. src/definitions.tsRe-run die Synchronisierung, wenn die öffentliche API upstream geändert wird.
Weiter von Getting Started
Abschnitt mit dem Titel “Weiter von Getting Started”Wenn Sie " Getting Started " zum Planen von Dashboard und API-Operationen verwenden, verbinden Sie es mit Mit @capgo/capacitor-intune für die native Fähigkeit in Mit @capgo/capacitor-intune, API Übersicht für die Implementierungsdetails in API Übersicht, Einführung für die Implementierungsdetails in Einführung, API Schlüssel für die Implementierungsdetails in API Schlüssel, und Geräte für die Implementierungsdetails in Geräte.