Skip to main content

Mobile SSO

Overview

Mobile SSO enables seamless authentication across multiple mobile apps, allowing users to log in once and access linked apps without re-authenticating. Like Web SSO, it stores authentication sessions using shared preferences (Android) or keychain (iOS). It helps identify an active session and automatically retrieve user data to authenticate users in connected apps. Implementing Mobile SSO with LoginRadius enhances user experience, security, and consistency across the mobile ecosystem.

This document guides implementing Mobile SSO with LoginRadius for Android and iOS, covering SSO flow and implementation for seamless authentication across mobile apps.

Common Use Cases for Mobile SSO

  1. Seamless Multi-App Authentication: Businesses with multiple mobile apps (e.g., financial services, social platforms, or e-commerce brands) can enable Mobile SSO to let users switch between apps without re-entering credentials.

  2. Improved User Experience and Engagement: Reducing the number of logins prevents user drop-offs, increasing engagement and retention rates for mobile-first applications.

  3. Enhanced Security & Compliance: Centralized session management helps enforce security policies while reducing password fatigue.

  4. Faster User Onboarding for Subscription & Membership Apps: Subscription-based services (e.g., streaming platforms, digital news, or fitness apps) can implement Mobile SSO to allow users to register once and access multiple apps without repeated logins.

Mobile SSO Visual Flow

The image below shows the Mobile SSO login and logout flow, demonstrating how LoginRadius ensures seamless authentication across multiple mobile apps for a consistent and efficient user experience.

mobile SSO

Integration Guide

This section provides a step-by-step guide and code snippets for integrating Mobile SSO into Android and iOS applications.

With the LoginRadius Android SDK, you can enable Mobile SSO across multiple Android apps, allowing users to log in once and seamlessly switch between apps without re-authenticating.
SSO enables a single identity for each customer, allowing seamless navigation across all your Android apps with one social ID.

Follow the steps to integrate shared authentication sessions and provide a unified, secure login experience.

Add the sharedUserId key and its value to your Android Manifest after the package tag:

android:sharedUserId="com.example"

Best Practices

  • Secure Token Storage: Use Shared Preferences (Android) and Keychain (iOS) for safe authentication token storage.
  • Manage Sessions Properly: Refresh and validate tokens to maintain seamless and secure login.
  • Ensure Cross-App Consistency: Implement a unified SSO approach across all linked apps.
  • Clear Sessions on Logout: Remove tokens from all apps when users log out.
  • Optimize Security & Performance: Enforce token encryption, expiration policies, and fast authentication.