Overview
Section titled “Overview”Launch Persona identity verification inquiries with native iOS and Android SDKs
Start with startInquiry() and the other core methods listed below.
Platform support
Section titled “Platform support”| Platform | Support | Notes |
|---|---|---|
| iOS | Yes | Native |
| Android | Yes | Native |
| Web | No | Guard with Capacitor.getPlatform() |
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.
Keep going from @capgo/capacitor-intune
Section titled “Keep going from @capgo/capacitor-intune”If you are using @capgo/capacitor-intune to plan authentication and account flows, connect it with Using @capgo/capacitor-intune for the native capability in Using @capgo/capacitor-intune, @capgo/capacitor-social-login for the implementation detail in @capgo/capacitor-social-login, @capgo/capacitor-passkey for the implementation detail in @capgo/capacitor-passkey, @capgo/capacitor-native-biometric for the implementation detail in @capgo/capacitor-native-biometric, and Two-factor authentication for the implementation detail in Two-factor authentication.