# Connect Signicat

> Setting up Signicat's eID Hub as the login provider of Oktul eID SSO, with the Dashboard settings a login depends on and the key the app signs with.
>
> Documentation for Oktul eID SSO for Jira, for Jira Cloud, by Oktul: https://oktul.com/docs/plugins/eid-sso/signicat/

[Signicat](https://www.signicat.com/) offers the Baltic eIDs through its eID and Wallet Hub, on an
enterprise contract with a free sandbox. Through Signicat the app accepts **Smart-ID, Mobile-ID,
the Estonian ID card and eParaksts Mobile**.

With Signicat, the app signs its token requests with a key pair it makes itself. There is no
client secret.

## What you need

- A Signicat account with the eID and Wallet Hub, and its domain: one ending in
  `.sandbox.signicat.com`, one ending in `.app.signicat.com`, or your own custom domain
- The login methods you want, switched on in the eID Hub
- The redirect URL from the app's admin page

## 1. Create the OIDC client in the Signicat Dashboard

Go to **Products**, **eID and Wallet Hub**, **OIDC clients**, **Add client**.

| Setting | Value |
|---|---|
| Primary grant type | `AuthorizationCode` |
| Redirect URI | The redirect URL in the Signicat row on the app's **Login providers** tab. It ends in `/cb` |
| Scopes | `openid` and `nin`. Do not add `profile`: the app needs only the personal code |

Then edit the client. Under **Advanced**, **Security**:

| Setting | Value | Why |
|---|---|---|
| **ID Token user data** | **All** | Required. With the default, `StandardScopes`, the personal code is left out of the ID token and every login ends with *Login failed* |
| **Requires PKCE** | On | The app always uses PKCE |
| **Force Login (Disable SSO)** | On | Without it, Signicat can reuse the session of whoever authenticated last in that browser. The app refuses such a login, and users see *Login failed* |

Leave the other settings as they are.

## 2. Add Signicat in the app

1. **On the Login providers tab, select Add a provider and choose Signicat**
2. **Enter the Signicat domain and the Client ID** A pasted address with https:// or /auth/open is accepted.
3. **Select Save and connect, and approve Atlassian's dialog** It names your Signicat domain. The app can call no other host.

## 3. Import the app's public key at Signicat

After the first save, the row shows a **Public key (JWK)**.

1. **In the Signicat Dashboard, open the OIDC client**
2. **Go to Advanced, Public keys, Import public key**
3. **Paste the key and set its usage to Signing**

The private half of the key never leaves the app. The key stays the same on later saves, even
when the client ID changes, and is deleted when you remove the provider. Adding Signicat again
makes a new key, which you import again.

## 4. Use it for login, and test

1. Check that the Signicat row says **Active**. With another provider also in use, users see the
   [chooser](../providers/#several-providers).
2. Log in as a user whose personal code the app holds. They should land in Jira.
3. A person whose code no user holds gets *Account not found*.

## Which methods work

Users see the methods that are active in your Signicat eID Hub at the level of assurance high.
The app lets a person in only with an Estonian, Latvian or Lithuanian personal code at that level.

- **Smart-ID, Mobile-ID, the Estonian ID card and eParaksts Mobile** give one.
- **Other methods**, such as BankID or FTN, are refused after the person has authenticated at
  Signicat, with *This login method cannot be used*. If your Signicat account has them active for
  other services, limit this client's `acr_values` in the Signicat Dashboard so users do not see
  them.
- **The Latvian and Lithuanian ID cards**: Signicat does not document what they return. Test
  them before you rely on them.

A production domain refuses a token that Signicat marks as a sandbox token.

## If a login fails

| The user sees | Cause | What to do |
|---|---|---|
| *Login failed*, after authenticating | **ID Token user data** is not **All**, or the client lacks the `nin` scope | Correct the client (step 1) |
| *Login failed*, right after choosing Signicat | Signicat reused an earlier session | Turn on **Force Login (Disable SSO)** (step 1) |
| *Login is not set up correctly* | The public key is not imported, or the domain is not approved | Import the key (step 3), or select **Approve egress** in the row |
| *Account not found* | No user holds this personal code | Check the user in [Entra ID's provisioning](../entra-provisioning/) |
| *Login cancelled* | The person cancelled at Signicat | Nothing. They can try again |

## Related

- [Login providers](../providers/)
- [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).
