C. Searching SDK Authentications
Authentication search and history are accessed through the Entrupy API from your backend server. The SDK provides individual item access through displayDetailViewForItem(entrupyId).
1. Viewing Individual Items
To display details for a specific authentication, use the Detail View with a known Entrupy ID:
import com.entrupy.sdk.app.EntrupyApp
fun showItemDetails(entrupyId: String) {
val entrupyApp = EntrupyApp.sharedInstance()
if (entrupyApp.isAuthorizationValid()) {
entrupyApp.displayDetailViewForItem(entrupyId)
} else {
Log.e("Search", "User not authorized. Please log in again.")
}
}
The Detail View shows the full authentication result, certificate access, flag status, and support features.
2. Backend Search via Entrupy API
For searching across authentications, filtering by status, brand, date range, or other criteria, use the Entrupy API from your backend server. The API supports:
- Full-text search across all authentications for your organization
- Filtering by result status, brand, date range, and custom fields
- Pagination for large result sets
- Cross-user search (not scoped to a single SDK user)
Your backend can then surface search results in your app's UI and use displayDetailViewForItem(entrupyId) to show details for any selected item.
3. Cleanup on Logout
When a user logs out, call cleanup() to clear the SDK session:
EntrupyApp.sharedInstance().cleanup()
Next Steps
- Learn about Managing Authentication Results for the result lifecycle.
- Review the Detail View Controller for displaying individual items.
- Set up backend integration for search and reporting.