# Recovery

> What to do when eID logins to Atlassian Cloud fail with Oktul eID SSO, starting from a break-glass admin, by symptom and by cause.
>
> Documentation for Oktul eID SSO for Jira, for Jira Cloud, by Oktul: https://oktul.com/docs/plugins/eid-sso/recovery/

When logins fail, a [break-glass admin](../configure/#1-keep-two-admins-outside-single-sign-on)
logs in first, with their password and two-step verification, and works from there.

1. **Log in as a break-glass admin**
2. **Open the app's Health tab** It names most causes: an inactive licence, no provider in use, a missing egress approval, a provider that is down, missing Guard values, a changed address, the certificate, the SCIM token.
3. **If the cause will take long to remove, move users off single sign-on** In Atlassian Administration, move them to the authentication policy without single sign-on. They then log in with an Atlassian password and two-step verification, and set a password with Can't log in? if they have none.
4. **Move them back once a test user can log in with eID again**

## By symptom

| Symptom | Likely cause | What to do |
|---|---|---|
| Every login: *Login is not set up correctly* | No provider is used for login; its egress approval was removed or is out of date; the Guard values are missing; or the provider refuses the client secret | On the **Login providers** tab, check that one provider is **Active** and none says **Egress not approved**. Check the **Atlassian Guard** tab. Enter the current client secret. Each takes effect at once |
| Every login: *The eID service is not available*, or the provider's own page is down | The provider has an outage, or TARA's token relay is unreachable | Check the provider's status and, for TARA, **Check relay**. For a long outage, move users off single sign-on |
| Atlassian shows an error before the provider's page, or after the login | Guard's SAML settings no longer match the app, for example right after **Switch now** | Compare Guard's Entity ID, SSO URL and certificate with the **Atlassian Guard** tab and correct Guard. Right after a certificate switch, paste the new certificate into Guard, or **Switch back** |
| Every login: *Login is paused* | The app's licence is inactive: a trial ended without a purchase, or the subscription ended or was cancelled | Renew the subscription. Logins work again as soon as the licence is active. See [licensing](../install/#licensing-and-what-happens-when-it-lapses) |
| Every login: *Login request rejected* | The two values saved from Guard do not match what Guard sends | Copy the service provider entity URL and the assertion consumer service URL from Guard into the **Atlassian Guard** tab again |
| One user: *Account not found* | The user's personal code did not reach the app: not assigned, not mapped, or not yet sent | In Entra ID, check the assignment and the provisioning log of the app that feeds eID SSO, then **Provision on demand** |
| One user: *Account is not active* | The user is disabled or unassigned in Entra ID | Correct it in Entra ID and provision on demand |
| One user: *Start the login again* | The login returned to a different browser | Start again in the browser that should be logged in |
| A user logs in and sees **Join your team** | The Atlassian account has no access to the product | Grant access in Atlassian Administration, or through the Atlassian Cloud app in Entra ID |

[Troubleshooting](../troubleshooting/) lists every message.

## The eID provider is down

Nobody on the single sign-on policy can log in until the provider is back. People who are
already logged in keep their session until it ends.

- **A second provider helps only if it is already set up.** With two providers used for login,
  users pick the one that works on the chooser.
- **Otherwise move users off single sign-on**, as above, until the provider is back.

## Atlassian Forge or the app is down

The same as a provider outage: move users to the policy without single sign-on until it is back.

## The licence is inactive

Every login ends with *Login is paused* before the eID provider's page, and the admin page shows
the banner *The licence is inactive*. Renew the subscription as a break-glass admin. Nothing in
the app needs changing, and Entra ID keeps sending users meanwhile.

If the renewal will take time, move users off single sign-on, as above.

## The SCIM token is lost or leaked

On the **SCIM** tab, select **Replace SCIM token**. The old token stops working at once. Paste
the new one as the **Secret Token** of the Entra ID enterprise app. Entra ID sends no users until
it has the new token; logins are not affected.

## A client secret was replaced at the provider

Enter the new secret in the provider's row and save. Until then every login through that
provider ends with *Login is not set up correctly*.

## The signing key may have leaked

See [replace the signing certificate](../signing-certificate/#if-the-key-may-have-leaked).

## The app was uninstalled or reinstalled

A reinstalled app is a new installation: new addresses, a new certificate, and no settings,
users or token.

1. **Log in as a break-glass admin, and move users off single sign-on**
2. **Add the login provider again** Register the new redirect URL at the provider, enter the credentials and approve the egress.
3. **Give Guard the new values** The new Entity ID, SSO URL and certificate, then save the two values Guard shows back.
4. **Give Entra ID the new Tenant URL and a new SCIM token** Then select Restart provisioning in the enterprise app, so Entra ID sends every user again.
5. **Log in as a test user, then move users back**

According to Atlassian's documentation, a request made within 21 days of the uninstall can
relink the old installation's storage to the new one. If you need that, open a request in the
[Help Center](https://support.oktul.com) straight away, and we ask Atlassian for it.

## What Oktul can see

We cannot log in to your site, and we cannot see your settings, your users or your audit log. By
default Atlassian shares the app's technical logs with us. They hold the reason a login was
refused, and no personal code, email address or secret. Send the time of a failed login with your
support request, and we can find that reason.

## Related

- [Health check](../health-check/)
- [Troubleshooting](../troubleshooting/)
- [Set up eID login](../configure/)

---

A problem or a question? Write to [support@oktul.com](mailto:support@oktul.com) or open a request in the [Help Center](https://support.oktul.com).
