@capgo/capacitor-intune
Capacitor plugin for Microsoft Intune MAM enrollment, app protection policies, app config, and MSAL authentication.
Overview
Section titled “Overview”Capacitor plugin for Microsoft Intune MAM enrollment, app protection policies, app config, and MSAL authentication.
Core Capabilities
Section titled “Core Capabilities”acquireToken- Present the Microsoft sign-in flow and return an access token plus the account metadata.acquireTokenSilent- Acquire a token from the MSAL cache for a previously signed-in user.registerAndEnrollAccount- Register a previously authenticated account with Intune and start enrollment.loginAndEnrollAccount- Ask Intune to authenticate and enroll a user without first requesting an app token.
Public API
Section titled “Public API”| Method | Description |
|---|---|
acquireToken | Present the Microsoft sign-in flow and return an access token plus the account metadata. |
acquireTokenSilent | Acquire a token from the MSAL cache for a previously signed-in user. |
registerAndEnrollAccount | Register a previously authenticated account with Intune and start enrollment. |
loginAndEnrollAccount | Ask Intune to authenticate and enroll a user without first requesting an app token. |
enrolledAccount | Return the currently enrolled Intune account, if one is available. |
deRegisterAndUnenrollAccount | Deregister the account from Intune and trigger selective wipe when applicable. |
logoutOfAccount | Sign the user out of MSAL without unenrolling the Intune account. |
appConfig | Fetch the remote Intune app configuration for a managed account. |
getPolicy | Fetch the currently effective Intune app protection policy for a managed account. |
groupName | Convenience helper that resolves the GroupName app configuration value when present. |
sdkVersion | Return the native Intune and MSAL SDK versions bundled by this plugin. |
displayDiagnosticConsole | Show the native Intune diagnostics UI. |
addListener | Listen for remote app configuration refreshes. |
addListener | Listen for remote app protection policy refreshes. |
removeAllListeners | Remove all registered listeners for this plugin instance. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-persona.