Skip to content

@capgo/capacitor-intune

Launch Persona identity verification inquiries with native iOS and Android SDKs

Launch Persona identity verification inquiries with native iOS and Android SDKs

Start with startInquiry() and the other core methods listed below.

PlatformSupportNotes
iOSYesNative
AndroidYesNative
WebNoGuard with Capacitor.getPlatform()
  • 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.
MethodDescription
acquireTokenPresent the Microsoft sign-in flow and return an access token plus the account metadata.
acquireTokenSilentAcquire a token from the MSAL cache for a previously signed-in user.
registerAndEnrollAccountRegister a previously authenticated account with Intune and start enrollment.
loginAndEnrollAccountAsk Intune to authenticate and enroll a user without first requesting an app token.
enrolledAccountReturn the currently enrolled Intune account, if one is available.
deRegisterAndUnenrollAccountDeregister the account from Intune and trigger selective wipe when applicable.
logoutOfAccountSign the user out of MSAL without unenrolling the Intune account.
appConfigFetch the remote Intune app configuration for a managed account.
getPolicyFetch the currently effective Intune app protection policy for a managed account.
groupNameConvenience helper that resolves the GroupName app configuration value when present.
sdkVersionReturn the native Intune and MSAL SDK versions bundled by this plugin.
displayDiagnosticConsoleShow the native Intune diagnostics UI.
addListenerListen for remote app configuration refreshes.
addListenerListen for remote app protection policy refreshes.
removeAllListenersRemove all registered listeners for this plugin instance.

This reference is synced from src/definitions.ts in capacitor-persona.

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.