iOS Communities SDK
Prerequisites
Before integrating the SDK, ensure your development environment meets the following requirements:
- iOS minimum deployment target:
15.0 - Xcode:
16or later - Swift:
5.9+
Adding the SDK to your project
Required app integration steps
Initialization
Create an IDmeConfiguration with your client credentials and desired settings, then instantiate IDmeAuth:
Configuration reference
Available scopes
Common usage patterns
Starting the verification flow
Call login(from:) from an async context, passing a UIWindow as the presentation anchor. The SDK opens a system browser sheet (ASWebAuthenticationSession) for the user to verify their community membership. The sheet dismisses automatically when verification completes.
Retrieving community attributes
Token management
The SDK stores credentials in the Keychain and handles token refresh automatically:
Fetching available policies
Discover which verification policies your organization supports:
Logout
Clears all stored credentials and tokens from the Keychain.
Error handling
All errors are thrown as IDmeAuthError, a Swift enum conforming to LocalizedError: