# Connect Dokobit

> Setting up Dokobit's Identity Gateway as the login provider of Oktul eID SSO, with its API access token, login methods, countries and page language.
>
> Documentation for Oktul eID SSO for Jira, for Jira Cloud, by Oktul: https://oktul.com/docs/plugins/eid-sso/dokobit/

[Dokobit](https://www.dokobit.com/eids), a Signicat company, authenticates people through its
Identity Gateway. Through Dokobit the app accepts **Smart-ID, Mobile-ID, ID cards and eParaksts
Mobile**, for Estonia, Latvia and Lithuania. It is the provider that offers the Latvian and
Lithuanian ID cards.

We have not yet tested the Latvian and Lithuanian ID cards or eParaksts Mobile ourselves. Try
them in Dokobit's sandbox before you rely on them.

The Identity Gateway is Dokobit's own API. You register no client ID and no redirect URL, because
the app sends the return address with each login.

## What you need

- An **Identity Gateway API access token** from Dokobit. A sandbox token is requested with
  Dokobit's [developer token request](https://www.dokobit.com/developers/request-token). For
  production, get a production token after Dokobit's integration review and contract.
- To know which login methods your token allows

## In the app

1. **On the Login providers tab, select Add a provider and choose Dokobit**
2. **Choose the Environment** Sandbox or Production. Dokobit issues a separate token for each.
3. **Tick the Login methods and the Countries** Smart-ID, Mobile-ID, ID-card and eParaksts Mobile; Estonia, Latvia and Lithuania. All are ticked for a new provider, and at least one of each is required.
4. **Choose the Page language** The user's browser language, or one language for every login.
5. **Enter the API access token, then select Save and connect** Atlassian's dialog names https://id-sandbox.dokobit.com for the sandbox, or https://id.dokobit.com for production.

<Aside type="caution" title="Tick only methods your token allows">
Dokobit refuses the whole request when it lists a method the token does not allow. Every login
then fails, not only logins with that method. If logins stop after you saved the form, untick the
methods your token lacks.
</Aside>

## The settings

| Setting | What it does |
|---|---|
| **Environment** | **Sandbox** calls `id-sandbox.dokobit.com`, **Production** `id.dokobit.com`. Changing it needs the other environment's token |
| **Login methods** | Dokobit's page offers only the ticked methods, and the app refuses a login made with any other |
| **Countries** | Dokobit's country list shows only the ticked countries, and the app refuses a person from any other |
| **Page language** | The language of Dokobit's page. With the browser's language, a person whose browser prefers none of Dokobit's languages sees Dokobit's default |
| **API access token** | Write-only, like a client secret. See [secrets are write-only](../providers/#secrets-are-write-only) |

## What the app sends and reads

- **To start a login**, the app asks Dokobit for a session with the return address, the ticked
  methods and the ticked countries. It sends nothing about the person and prefills nothing.
- **When the person returns**, the app asks Dokobit for the session's result and accepts it only
  for the session this login started. It reads the method, the country, the personal code and the
  time of authentication.
- **The name, the surname and the certificate** in Dokobit's answer are never read.
- **The token travels in the request address**, as Dokobit's API requires. The app's logs show at
  most a host, never the address.

Dokobit reports no level of assurance. The methods you tick are the control.

## What differs from the other providers

- **Cancelling stays at Dokobit.** A person who cancels sees Dokobit's own message with a way to
  try again, and nothing returns to the app. The app's *Login cancelled* page does not appear.
- **The look of Dokobit's page is Dokobit's.** According to
  [Dokobit's API documentation](https://id-sandbox.dokobit.com/api/doc), it restyles the page
  with a CSS file and a logo it attaches to your token on request. The app's
  [text, logo and CSS](../login-page/) do not reach it.
- **The health check cannot test the token.** It shows that Dokobit's host is reachable and
  approved. Whether the token is valid shows at the first login.

## Related

- [Login providers](../providers/)
- [Health check](../health-check/)
- [Troubleshooting](../troubleshooting/)

---

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