> For the complete documentation index, see [llms.txt](https://docs.openiam.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openiam.com/administration-guide/security/openiam-authenticator-app.md).

# OpenIAM Authenticator app

Enroll a phone in the OpenIAM Authenticator app from My Devices, approve a push sign-in from it and audit how each answer was checked, use it for TOTP codes, remove it, and keep device-manager's Fireb

**Applies to:** OpenIAM 2026.11.1

## What this is, and when you need it

The OpenIAM Authenticator is OpenIAM's own app for iOS and Android, and it does two things. Enrolled against your OpenIAM server, it receives a push notification when a sign-in reaches a `PUSH_AUTH` step and lets the user approve or reject that sign-in on the phone. And, like any authenticator app, it holds `otpauth://` enrolments and shows a six-digit time-based one-time password (TOTP) that changes every 30 seconds.

Use this page to put the app in front of users: what the server needs before the first phone can enrol, how a phone is enrolled from the **My Devices** page, what a sign-in request looks like on the phone in each state the app can be in, and how a device is removed. The server side of TOTP — the provider checkbox, the rule, the issuer label — is [Add TOTP as a second factor](https://docs.openiam.com/administration-guide/security/totp.md), and that factor works with any RFC 6238 app, so you do not need this page to roll out TOTP with Google or Microsoft Authenticator. A push approval through a Duo tenant you already run is [Add Duo as a second factor](https://docs.openiam.com/administration-guide/security/duo.md), and a phishing-resistant factor is [FIDO2 and WebAuthn](https://docs.openiam.com/administration-guide/security/fido2-and-webauthn.md). Still choosing? Start at [Authentication providers and MFA](https://docs.openiam.com/administration-guide/security/authentication-providers-and-mfa.md).

## At a glance

|                                     |                                                                                                                                                                                                                                                                                                                                                                                         |
| ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **You will end up with**            | A test identity's phone listed as **Active** on **My Devices**, receiving a sign-in request on one protected URL and able to approve it, with `SEND_PUSH_NOTIFICATION` and `AUTH_PUSH_DECISION` audit records to prove it                                                                                                                                                               |
| **Where**                           | The user enrols in SelfService, account menu → **Devices & Privacy → My Devices → Register New Device**. You demand the factor at **Policy → Authentication Rule** (`/webconsole/authentication-rule-list`) with a `PUSH_AUTH` step, and you see a user's devices on their record in the Webconsole under **Devices** (`/webconsole/user-devices?id=<USER_ID>`)                         |
| **Supported phones**                | iOS 16.4 or later; Android 7.0 (API level 24) or later. The phone needs a camera to scan the enrolment code, and a screen lock once it holds an account                                                                                                                                                                                                                                 |
| **What the app keeps on the phone** | For each enrolment, the server's hostname, the username, the device ID and the enrolment date; for each TOTP account, the issuer, the account name and the secret. Nothing is synced to any cloud, the app opts out of Android Auto Backup, and a push enrolment is bound to the installation's Firebase token — so a new phone, a reinstall or a restored backup means enrolling again |
| **What the server needs**           | `device-manager` running with the Firebase service-account key at `org.openiam.firebase.json.location`; outbound HTTPS from that service to Firebase Cloud Messaging; Redis, where a pending sign-in request is held; and a SelfService host the phone can reach, because the enrolment code names it                                                                                   |
| **Takes**                           | 15–30 minutes for one phone once `device-manager` is up, plus the rule work if you are demanding the factor on one URL                                                                                                                                                                                                                                                                  |
| **Reversible**                      | Yes — remove the device on **My Devices** or on the user's record and detach the rule. The server tells the phone to forget the enrolment when the device is removed                                                                                                                                                                                                                    |

## Before you begin

Do [Keep a working way in](https://docs.openiam.com/administration-guide/security/authentication-providers-and-mfa.md#keep-a-working-way-in) first, in a second browser session, and leave it open. A rule that demands a push approval from a population with no enrolled phones is the same lockout as any other factor nobody has.

Then confirm the three things the push path depends on. None of them is a Webconsole setting.

**`device-manager` has its Firebase key.** The service sends every push through Firebase Cloud Messaging (FCM), authenticating with a Google service-account key that it reads from `org.openiam.firebase.json.location`, shipped as `${confpath}/conf/device/firebase-admin.json`. On Kubernetes the file goes in the `.device/` folder of the `openiam-configmap` Helm chart, which embeds it into the `firebase-sa` Secret; on Docker or bare metal, mount or copy it to that path. The file is never in a repository: obtain it out of band from the OpenIAM release owner, or from your own Firebase project if you run a white-labelled build of the app. Without it the service does not start, and its log says `firebaseJsonLocation … not found. Mount this file if you're using docker, or put it in the proper location otherwise`.

**The service can reach Google.** `device-manager` needs outbound HTTPS to `fcm.googleapis.com` and `oauth2.googleapis.com`. Apple's push service is reached by Firebase, not by your server, so there is no APNs egress to arrange.

**A rule demands the factor.** `PUSH_AUTH` is an authentication level like `TOTP_AUTH`, routed to `/idp/auth-push`, and it only ever prompts because an authentication rule step asks for it. Unlike TOTP there is no **Supports …** checkbox on the provider: the level has no capability flag, so the rule step is the only switch. The shape for a second factor is `PASSWORD_AUTH` → `PUSH_AUTH` → `AUTHORIZATION_ACCEPT`, attached first to one narrow URI pattern — the mechanics are [Step-up authentication](https://docs.openiam.com/administration-guide/security/step-up-authentication.md). On current releases `DEF_ANY_AUTH_RULE` carries a `PUSH_AUTH` root among its alternatives, which is why an enrolled phone can be offered instead of a password on an any-of path; open the rule in the editor to confirm it for yours. For TOTP, the enrolment, the checkbox and the rule are on [Add TOTP as a second factor](https://docs.openiam.com/administration-guide/security/totp.md).

## Enrol a phone

Enrolment pairs one installation of the app with one OpenIAM identity. It is a three-way exchange — the browser shows a code, the phone scans it and receives a PIN, the browser accepts the PIN — so have both in front of you. The audit records are `GENERATE_DEVICE_REGISTRATION_QR_CODE`, `ADD_NEW_DEVICE` and `REGISTER_DEVICE`, in that order.

{% stepper %}
{% step %}

### Install the app and allow notifications

Install the OpenIAM Authenticator app on the phone; on the home screen and in permission prompts it is called `OpeniamAuthenticatorApp`. On first launch it asks for permission to show notifications. Allow it: a push sign-in request *is* a notification, and a phone that declines can still hold TOTP accounts but never shows a sign-in request. A user who declined turns notifications back on in the phone's settings for the app.
{% endstep %}

{% step %}

### Open the registration page in SelfService

Sign in to SelfService as the user and open the account menu → **Devices & Privacy → My Devices → Register New Device**. The page is titled **New Device Registration**, says *Scan the QR code with your mobile device.*, and shows a QR code with a **Token** field under it.

The code is a pairing URL, `https://<SELFSERVICE_HOST>/<USER_ID>?token=…`, built from the content provider's domain pattern and a one-time token for this session. Two consequences. The phone's camera app can do nothing with it — it must be scanned from inside the OpenIAM Authenticator app. And the host in it is the server the phone talks to from now on, so a content provider whose domain pattern is reachable only from the office network produces a phone that cannot enrol, or answer, from anywhere else.
{% endstep %}

{% step %}

### Scan the code from the app

In the app choose **Register Device** from the menu, or **Scan QR code** on the empty account list, allow camera access, and point the phone at the code. The app sends the token and its own Firebase token to `/idp/rest/api/device/register/IOS` or `…/ANDROID` on the host in the code. OpenIAM creates the device record inactive, audits `ADD_NEW_DEVICE`, and pushes a six-digit personal identification number (PIN) back to the phone, which shows it under *Please Enter the following PIN on the verification screen*.

`Error Contacting Server` at this point means the phone could not reach the host in the code. `Cannot contact Notification Service` means the app has no Firebase token — on a real phone, no network or notifications blocked for the app.
{% endstep %}

{% step %}

### Type the PIN into the browser

Enter the PIN in the **Token** field and confirm. OpenIAM finds the device by the PIN, marks it active, audits `REGISTER_DEVICE`, and pushes the result to the phone. The browser reports *Device Registered Successfully* and the device appears on **My Devices** with its **Manufacturer**, **Brand**, **Model** and **Active** columns; the phone shows *Device Registered Successfully* and lists the account with the hostname, the username and the enrolment date.

From now on the app asks for the phone's biometric or passcode before it shows anything. It relies on the phone's own lock: a phone with no screen lock set cannot open the app once it holds an account, and shows `Error Unlocking Device` until one is set.
{% endstep %}
{% endstepper %}

## Approve or reject a sign-in

{% stepper %}
{% step %}

### The browser sends the request

When a sign-in reaches the `PUSH_AUTH` step the browser lands on `/idp/auth-push`, titled **Step-Up Authentication**, with *Select a device to continue...* above a drop-down of the user's active devices — each labelled with its manufacturer, brand and model — and the button **Send Request to Selected Device**. Sending it opens a WebSocket on `/idp/openiam-socket`, creates a transaction in Redis that the phone has **five minutes** to answer, audits `SEND_PUSH_NOTIFICATION` against the user, and hands the message to `device-manager`.

A user with no active device sees *No devices registered* instead of the drop-down, and there is no way past it on this page: enrol first, on a path that does not demand the factor.
{% endstep %}

{% step %}

### The phone shows the request

The phone receives a notification titled *Please verify the following login attempt*. Opening it shows the **User Name**, the **IP Address** the browser connected from and the **Date**, with **Accept** and **Reject** buttons. The decision is posted to `/idp/rest/api/auth/public/auth-push-decision` with a hash of the transaction and the phone's Firebase token, the token hash — which is why only the enrolled phone can answer — and audited `AUTH_PUSH_DECISION`.

What the user sees depends on the state the app was in when the push arrived:

| App state                              | What happens                                                                                                                                                                                                                                                                    |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Open on screen                         | The request screen opens at once, and a notification is posted as well                                                                                                                                                                                                          |
| In the background, or the phone locked | A notification. Tapping it opens the request screen                                                                                                                                                                                                                             |
| Swiped away from recent apps, Android  | The same notification. The message carries no display payload of its own — the app builds the notification — and `device-manager` sends it at high priority so Android starts the app in the background to do so. Tapping the notification starts the app on the request screen |
| Force-quit, iOS                        | **Nothing.** iOS does not wake a force-quit app for a background push, and the request is not queued for later. The user opens the app, then sends the request again from the browser. This is a platform limit, not a defect                                                   |

Before 2026.11.1 `device-manager` sent the message at normal priority and without the APNs background headers, so an app that was not on screen was often not woken on either platform. The table assumes the current server.
{% endstep %}

{% step %}

### The browser completes, or does not

**Accept** reaches the browser over the WebSocket, which calls `/idp/rest/api/auth/public/auth-push-complete` (`AUTH_PUSH_COMPLETE`) and continues to the destination with a `LOGIN` record. **Reject** shows `Access Denied` on the page, and the user starts the sign-in again. The phone shows *Your response was successfully sent to the server* for a rejection as much as for an approval, because a rejection is a successful delivery.

An answer that arrives after the five minutes have passed does not sign the user in. From 2026.11.2 the server refuses it, and the browser stays on the page: see [How the server checks and audits an answer](#how-the-server-checks-and-audits-an-answer). Before 2026.11.2 the phone reported success and the browser showed `Access Denied`.
{% endstep %}
{% endstepper %}

## How the server checks and audits an answer

From 2026.11.2 the identity provider (IdP) holds every answer from a phone to three rules, whichever version of the app sent it.

* **An answer must arrive within five minutes.** An **Accept** or a **Reject** that arrives five minutes or more after the browser sent the request is refused with `REQUEST_EXPIRED`, and the request is not changed.
* **The first answer stands.** The same answer sent again — the app resending after a lost connection — is told it succeeded and changes nothing. A different later answer is refused with `REQUEST_EXPIRED`.
* **A signed approval must verify.** The push now carries a one-time challenge. A phone registered with device keys signs its approval over the challenge, the request and the device, with a key that never leaves the phone, and the enterprise service bus (ESB) checks the signature against the public key the phone registered. An approval whose signature does not verify is refused with `INVALID_SIGNATURE`. An approval with no signature is accepted, as before 2026.11.2: no setting requires one yet.

Signing arrives with an upcoming release of the OpenIAM Authenticator app, for phones registered with that release or a later one. Until then every approval is unsigned, so the first two rules are the change you will see.

A refusal reaches the phone only. The browser is told nothing and stays on **Step-Up Authentication**, so the user starts the sign-in again.

| Error               | Code   | Message the phone shows                                                          |
| ------------------- | ------ | -------------------------------------------------------------------------------- |
| `REQUEST_EXPIRED`   | `9400` | `This sign-in request has expired. Start signing in again.`                      |
| `INVALID_SIGNATURE` | `9401` | `This approval couldn't be verified. Register this phone again from My Devices.` |

### What `AUTH_PUSH_DECISION` records

From 2026.11.2 each answer's `AUTH_PUSH_DECISION` event names the device and, as its target, the user who owns it. The request body the event keeps no longer includes the token hash, and never includes the signature.

| Attribute                 | When                                                         | Value                                                                                                                                                                                                                                                                                       |
| ------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `DEVICE_ID`               | Once the request is found                                    | The device the request was sent to                                                                                                                                                                                                                                                          |
| `PUSH_VERIFICATION_LEVEL` | Every accepted answer except a repeat (see `SUCCESS_REASON`) | How the phone showed the answer was its own, below                                                                                                                                                                                                                                          |
| `FAILURE_REASON`          | Every refusal                                                | The error the phone was given: `REQUEST_EXPIRED`, `INVALID_SIGNATURE`, `INVALID_TOKEN` (the token hash did not match), `DEVICE_IS_INVALID` (the device is deactivated or deleted), `ACCESS_DENIED` (no such request), `INTERNAL_ERROR`, or an account-status error such as `ACCOUNT_LOCKED` |
| `PUSH_REFUSAL_DETAIL`     | A refusal once the token hash has matched                    | Why, below                                                                                                                                                                                                                                                                                  |
| `SUCCESS_REASON`          | The same answer sent again                                   | `REPEATED_DECISION`. Nothing was changed, and the event has no `PUSH_VERIFICATION_LEVEL`: the first answer's event has it                                                                                                                                                                   |

| `PUSH_VERIFICATION_LEVEL` | Meaning                                                                                                                                                                                   |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `BIOMETRIC`               | Signed with the phone's biometric key, which the phone uses only after a strong biometric check: a fingerprint or a face                                                                  |
| `USER_VERIFIED`           | Signed with a key the phone uses only after its screen lock or a strong biometric check                                                                                                   |
| `DEVICE_BOUND`            | Signed with a key bound to the phone that needs no check of the user. The app makes one only on a phone with no screen lock                                                               |
| `LEGACY`                  | Not signed. Only the token hash, made from the request and the phone's Firebase token, shows that the answer came from the registered phone. Every unsigned approval and every **Reject** |

| `PUSH_REFUSAL_DETAIL`                   | The answer was refused because                                                                                       | Error               |
| --------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | ------------------- |
| `EXPIRED`                               | It arrived five minutes or more after the request was sent                                                           | `REQUEST_EXPIRED`   |
| `ALREADY_DECIDED`                       | The request already had a different answer                                                                           | `REQUEST_EXPIRED`   |
| `NO_NONCE`                              | The approval was signed, but the request was created without a challenge, by an IdP node still on an earlier release | `INVALID_SIGNATURE` |
| `MALFORMED`                             | The signed approval is not in the expected form                                                                      | `INVALID_SIGNATURE` |
| `KEY_LEVEL_NOT_ALLOWED`                 | The approval names no key, or a key that may not sign approvals                                                      | `INVALID_SIGNATURE` |
| `NO_DEVICE_KEYS`                        | The device was registered without device keys                                                                        | `INVALID_SIGNATURE` |
| `KEY_NOT_REGISTERED`                    | The device has no key of the kind the approval names                                                                 | `INVALID_SIGNATURE` |
| `SIGNATURE_MISMATCH`                    | The signature does not match this request and this device's key                                                      | `INVALID_SIGNATURE` |
| `DEVICE_NOT_FOUND`, `DEVICE_NOT_ACTIVE` | The device was deleted or deactivated before the signature was checked                                               | `DEVICE_IS_INVALID` |
| `VERIFICATION_UNAVAILABLE`              | The ESB did not answer the check. The request stays open, so the phone can answer again within the five minutes      | `INTERNAL_ERROR`    |

## Use a TOTP code

The app is also an ordinary TOTP authenticator. Scan any `otpauth://totp/` code — the one OpenIAM shows on `/idp/auth-totp` at first enrolment, or one from another service — with **Register Device** or **Scan QR code**, exactly as for a pairing code; the app tells the two apart by the scheme. The account is listed by issuer and account name, and tapping it shows the current code with a countdown ring that turns red for the last six seconds of each period.

The app generates SHA-1, six-digit codes on a **30-second** period and ignores the `period` in the scanned URI. That matches what OpenIAM validates from 2026.9.1; against an older server, which used a 60-second step, every code is rejected — see [Add TOTP as a second factor](https://docs.openiam.com/administration-guide/security/totp.md). A code of any other `otpauth://` type, or one whose secret is not valid base32, is refused at scan time.

TOTP accounts are independent of push enrolments: removing the device on the server does not touch them, and they need no server at all.

## Remove a device

Removing is two-sided, and the order matters. Remove the device **on the server first**: that revokes the phone's ability to approve anything and sends the phone a message to forget the enrolment, so the row in the app disappears on its own. Swiping the row away on the phone first only forgets it locally — the server still lists the device as active, still offers it on the sign-in page, and still sends requests to it, which the app then reports as `Device does not exist`.

| Who                                    | Where                                                                                                                                        | What happens                                                                                                                                                                    |
| -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The user                               | Account menu → **Devices & Privacy → My Devices**, select the device, delete, confirm *Are you sure you want to delete the selected device?* | `REMOVE_DEVICE` is audited, the record is deleted, and the phone is told to forget the enrolment — *Device Successfully Deleted* in the app                                     |
| The user, temporarily                  | The same page, **Deactivate**                                                                                                                | The device stays listed but is left out of the drop-down on the sign-in page and cannot be pushed to; **Activate** restores it. Right for a mislaid phone that is expected back |
| An administrator or help-desk operator | The user's record in the Webconsole → **Devices** (`/webconsole/user-devices?id=<USER_ID>`), delete                                          | The same as the user's delete, audited `REMOVE_DEVICE`                                                                                                                          |
| The user, on the phone                 | Swipe the account row to the left and tap the delete icon                                                                                    | Local only. Do this after the server-side removal, or on a phone that is being wiped                                                                                            |

A lost or stolen phone is deactivated or deleted **immediately**, and then the user changes their password: the phone can approve sign-ins for as long as it is active, and its own screen lock is the only thing in the way.

## Verification

| What to check                   | How                                                                                                                                                                                                                                                                                                                                                                                                              |
| ------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The phone is enrolled           | **My Devices** lists it with **Active** ticked, and the app lists the account with the server's hostname and the username. In the audit log, `ADD_NEW_DEVICE` followed by `REGISTER_DEVICE` for the user; `ADD_NEW_DEVICE` alone means the PIN step was never completed                                                                                                                                          |
| `device-manager` can send       | `SEND_PUSH_NOTIFICATION` succeeds for the user, and `device-manager.log` has no `Cannot send message to device` after it                                                                                                                                                                                                                                                                                         |
| A push arrives                  | The notification appears on the phone within a few seconds of **Send Request to Selected Device**, in each of the app states in the table above that the platform allows                                                                                                                                                                                                                                         |
| The decision reaches the server | `AUTH_PUSH_DECISION` for the user, then — for an approval — `AUTH_PUSH_COMPLETE` and `LOGIN`, and the browser is at its destination. From 2026.11.2 the `AUTH_PUSH_DECISION` event names the device and carries `PUSH_VERIFICATION_LEVEL`, `LEGACY` until phones sign their approvals. See [Audit actions and retention](https://docs.openiam.com/administration-guide/reference/audit-actions-and-retention.md) |
| A TOTP code matches             | The code is accepted on `/idp/auth-totp`. Independently, on a machine whose clock is right, generate the code for the secret behind the test identity's enrolment code and compare it with the phone in the same 30-second window                                                                                                                                                                                |

{% code overflow="wrap" %}

```bash
oathtool --totp -b <BASE32_SECRET>
```

{% endcode %}

Use a test identity's secret for that, never a real user's.

## When it goes wrong

| Symptom                                                                                                                                                                                                     | Cause                                                                                                                                                                   | Fix                                                                                                                                                                        |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `device-manager` does not start; its log ends with `firebaseJsonLocation … not found. Mount this file if you're using docker, or put it in the proper location otherwise`                                   | No service-account key at `org.openiam.firebase.json.location`                                                                                                          | Put `firebase-admin.json` at `${confpath}/conf/device/`, or in the Helm chart's `.device/` folder, and restart the service                                                 |
| No phone receives anything; `SEND_PUSH_NOTIFICATION` fails, or `device-manager.log` says `Cannot send message to device`                                                                                    | The key was revoked or rotated away (Google answers `invalid_grant`), or the service has no outbound HTTPS to `fcm.googleapis.com`                                      | Install the current key, open the egress, restart `device-manager`                                                                                                         |
| The **Register New Device** page shows a spinner and never a code                                                                                                                                           | The page waits for the session's OAuth token, issued by the OAuth provider on the content provider that serves SelfService                                              | Confirm that content provider references an OAuth provider; the newer shell reports *Could not load the QR code*                                                           |
| The phone's camera app treats the code as a link and opens a browser                                                                                                                                        | By design: the code is a pairing URL meant for the OpenIAM Authenticator app                                                                                            | Scan it from inside the app                                                                                                                                                |
| `Error Contacting Server` on the phone after scanning                                                                                                                                                       | The phone cannot reach the host in the code — the content provider's domain pattern, over HTTPS                                                                         | Enrol from a network that reaches it, or serve SelfService on a domain phones can reach                                                                                    |
| The phone shows the PIN but the browser does not accept it                                                                                                                                                  | The PIN belongs to the user whose session showed the code, and was typed into another user's session                                                                    | Type it in the session that showed the code; if in doubt, scan again                                                                                                       |
| **My Devices** lists the device with **Active** clear, and the sign-in page says *No devices registered*                                                                                                    | The PIN step was never completed                                                                                                                                        | Delete the record and enrol again                                                                                                                                          |
| Notifications never appear, yet the request screen opens if the app is already on screen                                                                                                                    | Notification permission declined on the phone, or notifications for the app blocked in its settings                                                                     | Turn notifications on for `OpeniamAuthenticatorApp` in the phone's settings                                                                                                |
| Nothing arrives while the app is closed, Android                                                                                                                                                            | The server is older than 2026.11.1 and sends at normal priority, or the phone's battery optimization restricts the app                                                  | Upgrade the server; exempt the app from battery optimization                                                                                                               |
| Nothing arrives while the app is closed, iOS                                                                                                                                                                | The app was force-quit. iOS does not wake a force-quit app for a background push                                                                                        | Open the app, then send the request again. There is no server-side fix on this release                                                                                     |
| `Device does not exist` on the phone when a request arrives                                                                                                                                                 | The enrolment was swiped away on the phone, but the device is still on the server                                                                                       | Delete the device on **My Devices** or on the user's record, then enrol again                                                                                              |
| The phone shows `This sign-in request has expired. Start signing in again.` and the browser stays on the sign-in page; before 2026.11.2, `Access Denied` in the browser although the user tapped **Accept** | The answer came five minutes or more after the request was sent, or the request already had a different answer: `PUSH_REFUSAL_DETAIL` is `EXPIRED` or `ALREADY_DECIDED` | Start the sign-in again and answer within five minutes                                                                                                                     |
| The phone shows `This approval couldn't be verified. Register this phone again from My Devices.`                                                                                                            | The phone signed the approval and the signature did not verify. `PUSH_REFUSAL_DETAIL` on the `AUTH_PUSH_DECISION` event says why                                        | Delete the device on **My Devices** or on the user's record, then register the phone again                                                                                 |
| The phone shows `An unknown error has occurred. Please contact your administrator to investigate further.` on **Accept**, and `PUSH_REFUSAL_DETAIL` is `VERIFICATION_UNAVAILABLE`                           | The IdP got no answer from the ESB when it checked the signature, for example from an ESB node still on an earlier release during an upgrade                            | Answer again within the five minutes; finish upgrading the ESB                                                                                                             |
| The browser never leaves the sign-in page after **Send Request to Selected Device**, with no error and no `SEND_PUSH_NOTIFICATION` record                                                                   | The WebSocket on `/idp/openiam-socket` is not passing through the reverse proxy, or Redis — where the pending request is held — is unavailable                          | Confirm the proxy forwards WebSocket upgrades to the IdP, then check Redis. A deployment fix — [Installation Guide](https://docs.openiam.com/installation/installation.md) |
| TOTP codes rejected consistently                                                                                                                                                                            | The phone's clock is off, or the server is older than 2026.9.1                                                                                                          | Set the phone to automatic date and time; upgrade. Codes are computed from the clock on both sides, and the app has no time-correction setting of its own                  |
| Accounts gone after a new phone, a reinstall or a restore from backup                                                                                                                                       | By design: the app opts out of Android Auto Backup, and a push enrolment is bound to the installation's Firebase token, which a restore does not carry                  | Delete the old device on **My Devices**, enrol the new installation, and scan the TOTP codes again                                                                         |
| The app will not open: `Error Unlocking Device` with **Retry**                                                                                                                                              | The phone has no screen lock, and the app gates itself behind the phone's lock once it holds an account                                                                 | Set a passcode or a biometric on the phone                                                                                                                                 |

## Rotate the Firebase service-account key

The key in `firebase-admin.json` is a credential like the ones in [Rotate service credentials](https://docs.openiam.com/administration-guide/security/rotate-service-credentials.md), and the order is the same: new key in, prove it, old key out. Keep to it, because a deleted key stops every push in every environment that still uses it.

1. In the Firebase console, **Project settings → Service accounts → Generate new private key**, and download the file.
2. Replace the file in every location: `${confpath}/conf/device/firebase-admin.json` on each `device-manager` host, and the `.device/` folder of the `openiam-configmap` chart, then roll the `firebase-sa` Secret.
3. Restart `device-manager` and confirm a push is delivered — enrol a phone, or send a sign-in request to one.
4. Only then delete the old key, in the Google Cloud console under **IAM & Admin → Service accounts → Keys**. Its id is the `private_key_id` field of the file you replaced.

Never commit the key, paste it into a ticket or a chat, or print it in a log. If OpenIAM issued your key rather than you generating it in a Firebase project of your own, you cannot create the replacement yourself: ask OpenIAM for a new key, install it as above, confirm a push, and then tell OpenIAM which key id to revoke.

## Related

* [Add TOTP as a second factor](https://docs.openiam.com/administration-guide/security/totp.md) — the server side of TOTP, which this app and any other RFC 6238 app satisfy
* [Authentication providers and MFA](https://docs.openiam.com/administration-guide/security/authentication-providers-and-mfa.md) — choosing between the factors, and the break-glass recovery
* [Authentication levels, rules and capability flags](https://docs.openiam.com/administration-guide/security/authentication-providers-and-mfa/authentication-provider-reference.md) — `PUSH_AUTH` among every level, and the shipped rules
* [Step-up authentication](https://docs.openiam.com/administration-guide/security/step-up-authentication.md) — demanding the push approval on one URL only
* [My devices](https://docs.openiam.com/end-user-guide-for-selfservice/my-devices.md) — the same page, written for the end user
* [Audit actions and retention](https://docs.openiam.com/administration-guide/reference/audit-actions-and-retention.md) — the device and push events named here
* [Rotate service credentials](https://docs.openiam.com/administration-guide/security/rotate-service-credentials.md) — the other secrets a deployment rotates


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.openiam.com/administration-guide/security/openiam-authenticator-app.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
