Authentication
Set up API key or OAuth authentication for SmartSpectra SDK across all platforms.
1. Create an Account
- Navigate to the Presage Developer Admin Service Portal
- Click Register and fill in your email, password, and other required fields.
- Check your email for a confirmation link and follow it to activate your account.
2. Log In
- Go to the Presage Developer Admin Portal Login
- Enter your email and password, then click Submit.
- After successful login you will be redirected to your Portal page, where you can manage your API key and Apps registered for OAuth Authentication.
3a. API Key
⚠️ Warning: API Keys are intended for quick testing and local development. For production workloads, use the OAuth 2.0 flow with short-lived tokens.
How to include your API Key
- In your Dashboard, copy the Active API Key and then follow your platform's documentation:
3b. Register an OAuth App
Note: OAuth is currently only supported for iOS and Android. If you are using a different platform, please use the API Key method.
On your Account → Registered App for OAuth section:
-
Select your platform:
- Apple
- Android
-
Enter your App ID (bundle identifier or package name).
-
Provide your Org ID if you're registering an Apple App or your Signing Key SHA-256 fingerprint if registering an Android App:
- Apple: Org ID (e.g.
AB12CDE34F) - Android: Certificate SHA-256 fingerprint
-
Android OAuth is currently documented for Play Store releases
-
To get the SHA-256 fingerprint from your release keystore, run:
keytool -list -v -keystore <path-to-keystore> -alias <key-alias> -storepass <store-password> | grep SHA256For example, for the debug keystore:
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android | grep SHA256
-
- Apple: Org ID (e.g.
-
Click Register App ID.
4. Download Your Configuration File
Once your app appears in the Registered App(s) for OAuth table:
-
Apple Click Download .plist to fetch a
PresageService-Info.plistfile and store it in the root of your App's repo. No additional code/configuration for authentication is needed. -
Android Click Download .xml to fetch a
presage_services.xmlfile and store it at/src/main/res/xml/presage_services.xml. No additional code/configuration for authentication is needed.