# Login providers

> The eID providers Oktul eID SSO connects to, how to add one, how its host is approved, and what users see when more than one is in use.
>
> Documentation for Oktul eID SSO for Jira, for Jira Cloud, by Oktul: https://oktul.com/docs/plugins/eid-sso/providers/

A login provider is the eID service that authenticates the person. Your organisation has its own
contract or account with it, and the app connects to it with the credentials you enter.

## The providers

| Provider | Who can use it | Methods | Connects with |
|---|---|---|---|
| [**eeID**](../eeid/), Estonian Internet Foundation | Any organisation. Self-service, with a free test service and a price per login | Smart-ID, Mobile-ID and the Estonian ID card, for Estonia, Latvia and Lithuania | A client ID and client secret |
| [**Signicat**](../signicat/) | An enterprise contract, with a free sandbox | Smart-ID, Mobile-ID, the Estonian ID card and eParaksts Mobile | A client ID and a key pair the app makes. No secret |
| [**Dokobit**](../dokobit/) | A contract after Dokobit's integration review, with a sandbox | Smart-ID, Mobile-ID, ID cards (Latvian and Lithuanian too) and eParaksts Mobile | An API access token |
| [**TARA**](../tara/), Estonian Information System Authority | Estonian public-sector institutions only | The Estonian ID card, Mobile-ID and Smart-ID | A client ID and client secret. The live service also needs your own token relay |
| [**Custom OIDC**](../custom-oidc/) | Whoever the provider serves | Whatever the provider offers | A client ID and client secret, and the claims you name |

Whichever you choose, the app accepts a login only with an Estonian, Latvian or Lithuanian
personal code, and only for a user [Entra ID has sent it](../entra-provisioning/).

One each of eeID, Signicat, Dokobit and TARA can be set up per installation, and any number of
Custom OIDC providers.

## Add a provider

1. **Open the Login providers tab and select Add a provider** The dialog lists every provider type with its countries, its methods and a link to its website. A type that is already set up and allows one is shown but cannot be chosen.
2. **Choose the provider** A new row opens, marked Not saved. It lists what to do at the provider as numbered steps and shows the redirect URL to register there.
3. **Do those steps at the provider, then fill in the form**
4. **Select Save and connect** The app saves the settings, and Atlassian opens its dialog for the provider's host. Approve it.

When no provider is used for login yet, the one you saved is turned on at once. With one
already in use, **Use for login** stays your own choice, because a second provider adds the
[chooser page](#several-providers).

## What a row shows

Each configured provider is one row. Select its header to open it; one row is open at a time.

| Status | Meaning |
|---|---|
| **Active** | Used for login |
| **Inactive** | Saved, and not used for login |
| **Egress not approved** | The app may not call the provider's host. Logins through it fail until an admin selects **Approve egress** |
| **Setup incomplete** | The client secret, the API access token or the signing key is missing |
| **Egress not checked** | The approvals could not be read from Atlassian. Reload the page |
| **Not saved** | A new provider whose form has not been saved yet |

An open row has three parts, top to bottom:

| Part | What is on it |
|---|---|
| **Settings** | The **Redirect URL** to register at the provider, and the provider's form. Signicat's **Public key (JWK)** shows here after the first save |
| **Egress** | Whether the provider's hosts are approved, with **Approve egress** when they are not |
| **Login** | **Use for login** or **Stop using for login**, and **Remove provider** |

TARA's live service adds a **Token relay** part between the settings and the egress.

## Secrets are write-only

The page never receives a client secret or an API access token back. An empty field keeps the
stored one. Its hint shows the first and last 4 characters of the stored secret and the time it
was saved, which tells you which secret is stored. A shorter secret shows less of itself.

Enter a new secret when the environment or the client ID changes.

## Egress approval

The app's Forge manifest names no provider host. Each provider has one egress group, and the app
can call its hosts only after a Jira admin approves the group in Atlassian's own dialog, titled
*Data storage, sharing, receiving and processing*.

| Provider | Hosts in its group |
|---|---|
| eeID | `https://test-auth.eeid.ee` for the test service, or `https://auth.eeid.ee` for production |
| Signicat | `https://` and your Signicat domain |
| Dokobit | `https://id-sandbox.dokobit.com` for the sandbox, or `https://id.dokobit.com` for production |
| TARA | `https://tara-test.ria.ee` for the demo, or `https://tara.ria.ee` for live |
| Custom OIDC | The issuer's origin and any extra hosts you entered |

- **Until the group is approved**, Atlassian blocks every call to the provider, and a login ends
  with *Login is not set up correctly*.
- **If you declined the dialog**, the provider stays saved and off. Select **Approve egress** in
  its row.
- **Egress approval out of date** means the stored group no longer covers the provider's hosts,
  for example after you changed the environment. Approving replaces it.
- **Approvals no provider uses**, such as eeID's test host after a switch to production, are
  listed under the rows with **Remove approval**.
- **Removing a provider** removes its group.

Approving and removing take effect at once. You can also review and delete the groups in
Atlassian Administration, under **Connected apps**, the app, **Data management**. Only the app's
backend calls the provider; the user's browser reaches the provider's login page by an ordinary
redirect.

## Use for login

**Use for login** needs a saved secret or key and an approved egress group. **Stop using for
login** and **Remove provider** ask for confirmation.

<Aside type="caution" title="Stopping the only provider locks users out">
With no provider used for login, every user on the single sign-on policy is locked out of
Atlassian until a provider is in use again. The confirmation says so. Break-glass admins on a
policy without single sign-on can still log in.
</Aside>

**Remove provider** deletes its settings, its secret or signing key and its egress approval.
It cannot be undone.

## Several providers

With one provider used for login, a user goes straight to it. With several, the app first shows
the **provider chooser**: a page that lists the providers by the names shown on their rows.

- A Custom OIDC provider carries the name you give it. Without one, its issuer's host is shown.
- The page remembers the last pick in that browser, lists it first and marks it *last used*.
- Going back and picking another provider works.
- The login is finished only with the provider that was picked, and only while it is still used
  for login.

The chooser cannot pick a provider by the user's group or country, because Atlassian Guard does
not tell the app who the user is before they authenticate.

The **Login page** tab says whether users see the chooser now. See
[style the login pages](../login-page/) for its text, logo and CSS.

## What every provider is held to

- **A new authentication for each login.** Every request asks the provider to authenticate the
  person again, and an answer older than 5 minutes is refused where the provider reports the time.
- **The level of assurance high**, for eeID, Signicat and TARA. It is not a setting. A login that
  reports a lower level ends with *This login method cannot be used*.
- **A method that gives a personal code.** A method that identifies the person by a document
  number or another identifier is refused.
- **An answer within 15 seconds.** A provider that does not answer in time ends the login with
  *The eID service is not available*.

[Security](../security/#how-a-login-is-checked) lists every check.

## Common questions

**Which eID providers does Oktul eID SSO support?**

eeID, Signicat, Dokobit and TARA have a preset each, and any other OpenID Connect provider whose ID token carries the national personal code can be set up as **Custom OIDC**.

**Who holds the contract with the eID provider?**

You do. Your organisation registers with the provider, pays it and enters the credentials on the app's admin page. Oktul is not a party to it and resells no authentication.

**Can users choose between two providers?**

Yes. With more than one provider used for login, the app shows a short page that lists them by the names you gave them and remembers the last choice in that browser.

**What happens if an admin declines the egress approval?**

The provider stays saved and is not used for login. **Approve egress** in its row opens Atlassian's dialog again.

## Related

- [Set up eID login](../configure/)
- [Health check](../health-check/)
- [Style the login pages](../login-page/)
- [Privacy and data handling](../privacy/)

---

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