SSO/OIDC with DHIS2 Android Capture, can users log in offline after first online login?

Hi DHIS2 Community,

We are implementing Single Sign-On (SSO) for DHIS2 using OAuth2 / OpenID Connect (OIDC) (e.g., Keycloak, Okta, Azure AD), and we need clarity on how this works with offline login on the DHIS2 Android Capture app in low-connectivity environments.

Our use case is field operations where users can be offline for extended periods, but still must be able to open the app and continue working. Context for our deployment (Android app, offline-first emergency workflows): #ICRC:Transforming Emergency Response Data with DHIS2: Introducing the Pre-Hospital Record Form Android App - Implementation - Implémentation / Mobile - DHIS2 Community

Key question

  • Has anyone implemented a setup where Android Capture authenticates via SSO/OIDC when online, and users can then log in while offline later (after at least one successful online login)?

If you’ve done this, could you share more insights on how you achieved this. Thank you

1 Like

Hi @Kenyuri

I triaged this to the @dhis2-android team and the what I understood so far is that the ‘log out’ settings work the same regardless of the signing method. I will let you know when I have a confirmation.

Please do feel free to add your comments if you do try to test this feature extensively. I’m sure it will be helpful for all.

Thank you!