# Set up eID login

> The setup of Oktul eID SSO in order, from break-glass admins to rollout, so that someone can always still log in to your Atlassian organisation.
>
> Documentation for Oktul eID SSO for Jira, for Jira Cloud, by Oktul: https://oktul.com/docs/plugins/eid-sso/configure/

Set eID login up in this order. Single sign-on in Atlassian Guard applies to the whole
organisation, and the order keeps someone able to log in at every step.

| Step | Where | Who |
|---|---|---|
| [1. Keep two admins outside single sign-on](#1-keep-two-admins-outside-single-sign-on) | Atlassian Administration | Organization admin |
| [2. Check who is a Jira admin](#2-check-who-is-a-jira-admin) | Jira | Organization admin |
| [3. Add a login provider](#3-add-a-login-provider) | The eID provider, then the app | Jira admin |
| [4. Connect Atlassian Guard](#4-connect-atlassian-guard) | Atlassian Administration, then the app | Organization admin |
| [5. Provision users from Entra ID](#5-provision-users-from-entra-id) | Microsoft Entra admin center | Entra ID admin |
| [6. Log in with one test user](#6-log-in-with-one-test-user) | A private browser window | Anyone |
| [7. Roll out](#7-roll-out) | Atlassian Administration | Organization admin |

## 1. Keep two admins outside single sign-on

Do this before any user is put on single sign-on. These admins are the way back in when the app,
your eID provider or Atlassian Forge is down, or the app's licence has lapsed.

1. **Pick at least two organization admins who will never log in through the app** Give each a strong password and two-step verification.
2. **Keep an authentication policy without single sign-on** In Atlassian Administration, open Security, then Authentication policies. Keep or create a policy that does not enforce single sign-on and requires two-step verification, and put these admins in it.
3. **Log in as each of them once** Use a private window, and write down where their credentials are kept.
4. **Never move them to the single sign-on policy, and never delete this policy**

Users who have no Estonian, Latvian or Lithuanian personal code, such as contractors from other
countries, also stay on a policy without single sign-on.

## 2. Check who is a Jira admin

A Jira admin can configure the app, and so can log in as any user on the single sign-on policy,
organization admins included. In Jira, check who holds the global permission **Administer Jira**,
and keep it to the people who are organization admins anyway. See
[security](../security/#a-jira-admin-controls-single-sign-on).

## 3. Add a login provider

1. **Open Jira settings, Apps, Oktul eID SSO, and the Login providers tab**
2. **Select Add a provider and choose yours** The row lists what to do at the provider, and the redirect URL to register there.
3. **Fill in the form and select Save and connect** Atlassian asks you to approve the app's calls to the provider's host. Approve it.
4. **Check that the row says Active** The first provider is used for login at once. Nobody logs in through it before Atlassian Guard points at the app.

Each provider has its own page: [eeID](../eeid/), [Signicat](../signicat/),
[Dokobit](../dokobit/), [TARA](../tara/) and [another OIDC provider](../custom-oidc/).
[Login providers](../providers/) compares them.

## 4. Connect Atlassian Guard

1. **Add an identity provider directory in Atlassian Administration** Choose Other provider, and set up SAML single sign-on with the three values on the app's Atlassian Guard tab.
2. **Copy the two values Guard shows back into the app** The service provider entity URL and the assertion consumer service URL. Until they are saved, the app refuses every login.
3. **Link your verified domain to the directory, and set up user provisioning in it**
4. **Create an authentication policy that enforces single sign-on** Leave it empty for now. Users move to it in steps 6 and 7.

[Connect Atlassian Guard](../atlassian-guard/) has every field.

## 5. Provision users from Entra ID

Two enterprise apps in Entra ID send the same users to two places:

- **Atlassian Cloud**, from Entra ID's gallery, creates the Atlassian accounts and their groups.
- **A second app of your own** sends each user's email, permanent ID, active flag and personal
  code to Oktul eID SSO, at the **Tenant URL** and with the **Secret token** from the app's
  **SCIM** tab.

[Provision users from Entra ID](../entra-provisioning/) has the attribute mapping.

## 6. Log in with one test user

1. **Pick one user both Entra ID apps have provisioned, with a personal code** Add only that user to the single sign-on policy.
2. **In a private window, open your Jira site and enter the user's email** Atlassian sends the browser to the app, the app to your eID provider, and the user lands in Jira.
3. **Check the refusals once** Cancelling at the provider shows Login cancelled. A person whose personal code no user holds gets Account not found.
4. **Open the Health tab** It should say that everything a login needs is in place.

## 7. Roll out

Move users to the single sign-on policy in batches. Keep the policy without single sign-on, and
its admins, as they are.

Before you later change the app, the provider or Guard's settings, check that a break-glass admin
can still log in.

## What stops every login at once

Do these only with a break-glass admin at hand:

- uninstalling, reinstalling or downgrading the app;
- **Remove approval**, **Stop using for login** or **Remove provider** for the provider in use;
- changing the provider's environment or client, or replacing its client secret at the provider;
- changing the directory's SAML settings in Atlassian Guard;
- **Switch now** or **Switch back** of the signing certificate, until Guard has the certificate
  the **Atlassian Guard** tab shows.

A licence that lapses stops every login too, with no grace period. See
[licensing](../install/#licensing-and-what-happens-when-it-lapses).

[Recovery](../recovery/) says what to do when logins fail.

## Common questions

**In which order should eID login be set up?**

Break-glass admins first, then a login provider, Atlassian Guard, Entra ID provisioning, one test user, and only then the rest of your users. The order keeps someone able to log in at every step.

**How long until a new user can log in with eID?**

As soon as Entra ID has sent the user to the app and Atlassian has the account. Entra ID sends changes on its own fixed cycle; **Provision on demand** sends one user at once.

**Can some users stay on passwords?**

Yes. Single sign-on applies to the users on the authentication policy that enforces it. Users without a supported personal code, such as contractors from other countries, stay on a policy without it.

## Related

- [Login providers](../providers/)
- [Connect Atlassian Guard](../atlassian-guard/)
- [Provision users from Entra ID](../entra-provisioning/)
- [Recovery](../recovery/)

---

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).
